47
47
------
48
48
49
49
All 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.
51
51
52
52
Source code
53
53
-----------
@@ -120,14 +120,14 @@ versions used.
120
120
Automatically deploying documentation to GitHub pages using Travis CI
121
121
---------------------------------------------------------------------
122
122
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::
131
131
132
132
$ git clone --single-branch --depth 1 https://github.com/USER/PROJECT.git gh-pages
133
133
$ cd gh-pages
@@ -138,58 +138,58 @@ Automatically deploying documentation to GitHub pages using Travis CI
138
138
$ git commit -m "Initial commit"
139
139
$ git push -u origin gh-pages
140
140
$ 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::
144
144
145
145
$ ssh-keygen -t dsa -f .travis_ci_gh_pages_deploy_key
146
146
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.
152
152
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::
155
155
156
156
$ 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::
159
159
160
160
$ 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::
165
165
166
166
$ travis encrypt-file .travis_ci_gh_pages_deploy_key --add before_script
167
167
168
- * Add the encrypted private ssh key to the repository::
168
+ * Add the encrypted private ssh key to the repository::
169
169
170
170
$ git add .travis_ci_gh_pages_deploy_key.enc
171
171
172
- * Have git ignore the other keys (and the gh-pages directory)::
172
+ * Have git ignore the other keys (and the gh-pages directory)::
173
173
174
174
$ echo >> .gitignore
175
175
$ echo "/.travis_ci_gh_pages_deploy_key" >> .gitignore
176
176
$ echo "/.travis_ci_gh_pages_deploy_key.pub" >> .gitignore
177
177
$ echo "/gh-pages" >> .gitignore
178
178
$ git add .gitignore
179
179
180
- * Optionally, edit ``.travis.yml `` to adjust variables ``DEPLOY_DOC_... ``
180
+ * Optionally, edit ``.travis.yml `` to adjust variables ``DEPLOY_DOC_... ``
181
181
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::
184
184
185
185
$ git add .travis.yml
186
186
$ git commit -m "Deploy built documentation to GitHub"
187
187
$ 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