From 2559b08a55bafe57c3c01c56a95309fb027ec09a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 26 Dec 2015 12:35:23 +0100 Subject: [PATCH] Some small doc improvements (travis and source info) --- content/docs/deployment/travisci/contents.lr | 19 +++++++++++++++++++ content/docs/quickstart/contents.lr | 5 +++++ 2 files changed, 24 insertions(+) diff --git a/content/docs/deployment/travisci/contents.lr b/content/docs/deployment/travisci/contents.lr index c541ebd0..5da38ee1 100644 --- a/content/docs/deployment/travisci/contents.lr +++ b/content/docs/deployment/travisci/contents.lr @@ -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' +``` diff --git a/content/docs/quickstart/contents.lr b/content/docs/quickstart/contents.lr index 0dbe2bb4..bf5960df 100644 --- a/content/docs/quickstart/contents.lr +++ b/content/docs/quickstart/contents.lr @@ -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 () on the bottom +to see the source for the current page.