Some small doc improvements (travis and source info)

This commit is contained in:
Armin Ronacher 2015-12-26 12:35:23 +01:00
parent 7e72742bea
commit 2559b08a55
2 changed files with 24 additions and 0 deletions

View File

@ -118,3 +118,22 @@ cache:
install: "pip install Lektor"
script: "lektor build && lektor deploy ghpages"
```
## Restricting Branches
If you plan on having different branches and contributors you should disable
the deployment to the master branch only. You can do this with the following
config:
```yaml
language: python
python: 2.7
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/lektor/builds
install: "pip install Lektor"
script:
- "lektor build"
- 'test "$TRAVIS_PULL_REQUEST" == false && test "$TRAVIS_BRANCH" == master && lektor deploy ghpages'
```

View File

@ -96,3 +96,8 @@ Lektor. This might be good next steps:
deploy a website to production.
* [Data Modelling :ref](../models/) for everything about how to model your
data.
!!! This website is built on Lektor as well. You can find the sources of it
[on GitHub :ext](https://github.com/lektor/lektor-website/) and you can click
at any point on the source symbol (<i class="fa fa-code"></i>) on the bottom
to see the source for the current page.