This repo contains the MkDocs source files of the hIPPYlib website.
The markdown sources for the hIPPYlib webpages are located in the src
subfolder. Simply edit online the file you would like to update and commit. TravisCI will automatically build the html pages with mkdocs
and push them to https://github.com/hippylib/hippylib.github.io.
NOTE: This workflow is the easiest, however it will not allow you to preview changes in the website.
This will require installing some software on your computer, but it has the advantage that you'll be able to see the final results before publishing it on the web.
- Install MkDocs
#!sh
sudo pip install mkdocs==0.17.2
- Install bootstrap and bootswatch themes
#!sh
sudo pip install mkdocs-bootstrap==0.2.0
sudo pip install mkdocs-bootswatch==0.5.0
- Install MathJax support using python-markdown-math
#!sh
sudo pip install python-markdown-math==0.6
Or, if you have conda installed, simply type
conda-env create --file mkdocs-env.txt
- Clone this repository
#!sh
git clone [email protected]:hippylib/web.git
-
Edit the
.md
files located in thesrc
folder. Note, if you add a new.md
file you'll also need to update themkdocs.yml
config); -
Preview locally
#!sh
mkdocs serve
- Commit your changes and push them on GitHub
#!sh
git add <files I want to commit>
git commit -m "Explain changes"
git push origin master:master
TravisCI integration will automatically call mkdocs build
and push the freshly built html pages to https://github.com/hippylib/hippylib.github.io