-
Notifications
You must be signed in to change notification settings - Fork 97
Deploying to GitHub Pages
James Reeves edited this page Jul 10, 2018
·
14 revisions
The Github Pages feature is an excellent way to share codox documentation with your users.
- Set the
:output-path
in your project file to"codox"
- Add
/codox
to your project's.gitignore
file. - Inside your project directory, run the following commands:
rm -rf codox && mkdir codox
git clone git@github.com:<user-name>/<project-name>.git codox
cd codox
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
cd ..
- Build your documentation with
lein codox
. - To publish your docs to Github Pages, run the following commands:
cd codox
git add .
git commit -am "Add project documentation"
git push -u origin gh-pages
cd ..
That's it! Your documentation should appear within minutes at http://<user-name>.github.io/<project-name>
.