4747------
4848
4949All packaging setup is done through ``setup.py ``. To create your own package
50- follow the strcuture of the file and change the parameters accordingly.
50+ follow the structure of the file and change the parameters accordingly.
5151
5252Source code
5353-----------
@@ -120,14 +120,14 @@ versions used.
120120Automatically deploying documentation to GitHub pages using Travis CI
121121---------------------------------------------------------------------
122122
123- * First do the steps described above to enable Travis CI integration
124- of your GitHub-hosted project.
125-
126- * If you don't already have GitHub pages for your project: Create and
127- checkout a branch ``gh-pages `` in your repository and put an empty
128- file ``.nojekyll `` in it. (See
129- https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/)::
130- Commit it and push it to GitHub::
123+ * First do the steps described above to enable Travis CI integration
124+ of your GitHub-hosted project.
125+
126+ * If you don't already have GitHub pages for your project: Create and
127+ checkout a branch ``gh-pages `` in your repository and put an empty
128+ file ``.nojekyll `` in it. (See
129+ https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/)::
130+ Commit it and push it to GitHub::
131131
132132 $ git clone --single-branch --depth 1 https://github.com/USER/PROJECT.git gh-pages
133133 $ cd gh-pages
@@ -138,58 +138,58 @@ Automatically deploying documentation to GitHub pages using Travis CI
138138 $ git commit -m "Initial commit"
139139 $ git push -u origin gh-pages
140140 $ cd ..
141-
142- * (Back in your working copy:) Generate a new ssh key pair with an
143- empty passphrase::
141+
142+ * (Back in your working copy:) Generate a new ssh key pair with an
143+ empty passphrase::
144144
145145 $ ssh-keygen -t dsa -f .travis_ci_gh_pages_deploy_key
146146
147- * Add the public ssh key (contents of the file
148- ``.travis_ci_gh_pages_deploy_key.pub ``) to your GitHub repository
149- as a deploy key (Settings/Deploy keys/Add deploy key).
150- Title: Key for deploying documentation to GitHub pages.
151- Check Allow write access.
147+ * Add the public ssh key (contents of the file
148+ ``.travis_ci_gh_pages_deploy_key.pub ``) to your GitHub repository
149+ as a deploy key (Settings/Deploy keys/Add deploy key).
150+ Title: Key for deploying documentation to GitHub pages.
151+ Check Allow write access.
152152
153- * Install the Travis CI command-line client from
154- https://github.com/travis-ci/travis.rb::
153+ * Install the Travis CI command-line client from
154+ https://github.com/travis-ci/travis.rb::
155155
156156 $ gem install travis
157-
158- * Log in to Travis CI using your GitHub credentials::
157+
158+ * Log in to Travis CI using your GitHub credentials::
159159
160160 $ travis login
161-
162- * Encrypt the private ssh key, add the decryption keys
163- as secure environment variables to Travis CI, and
164- add code to ``.travis.yml `` to decrypt it::
161+
162+ * Encrypt the private ssh key, add the decryption keys
163+ as secure environment variables to Travis CI, and
164+ add code to ``.travis.yml `` to decrypt it::
165165
166166 $ travis encrypt-file .travis_ci_gh_pages_deploy_key --add before_script
167167
168- * Add the encrypted private ssh key to the repository::
168+ * Add the encrypted private ssh key to the repository::
169169
170170 $ git add .travis_ci_gh_pages_deploy_key.enc
171171
172- * Have git ignore the other keys (and the gh-pages directory)::
172+ * Have git ignore the other keys (and the gh-pages directory)::
173173
174174 $ echo >> .gitignore
175175 $ echo "/.travis_ci_gh_pages_deploy_key" >> .gitignore
176176 $ echo "/.travis_ci_gh_pages_deploy_key.pub" >> .gitignore
177177 $ echo "/gh-pages" >> .gitignore
178178 $ git add .gitignore
179179
180- * Optionally, edit ``.travis.yml `` to adjust variables ``DEPLOY_DOC_... ``
180+ * Optionally, edit ``.travis.yml `` to adjust variables ``DEPLOY_DOC_... ``
181181
182- * Commit all changes to GitHub. The Travis CI build should then run
183- automatically and deploy it::
182+ * Commit all changes to GitHub. The Travis CI build should then run
183+ automatically and deploy it::
184184
185185 $ git add .travis.yml
186186 $ git commit -m "Deploy built documentation to GitHub"
187187 $ git push
188-
189- * The deployed documentation will be available at:
190- https://USER.github.io/PROJECT/
191- This can be customized by changing ``DEPLOY_DOC_TO_DIRECTORY=/ ``
192- to another directory in ``.travis.yml ``
193- For example, setting ``DEPLOY_DOC_TO_DIRECTORY=doc/html `` will make
194- the deployed documentation available at:
195- https://USER.github.io/PROJECT/doc/html/
188+
189+ * The deployed documentation will be available at:
190+ https://USER.github.io/PROJECT/
191+ This can be customized by changing ``DEPLOY_DOC_TO_DIRECTORY=/ ``
192+ to another directory in ``.travis.yml ``
193+ For example, setting ``DEPLOY_DOC_TO_DIRECTORY=doc/html `` will make
194+ the deployed documentation available at:
195+ https://USER.github.io/PROJECT/doc/html/
0 commit comments