-
Notifications
You must be signed in to change notification settings - Fork 170
README
Updating the website https://nwchemgit.github.io using mkdocs
The wiki source hosted on the repository https://github.com/nwchemgit/nwchem-wiki (and mirrored in https://github.com/nwchemgit/nwchem/wiki) is used to generated the content of the https://nwchemgit.github.io using mkdocs.
This directory contains scripts to generate the mkdocs content:
- install_mkdocs.sh
- build_website.sh
- commit_changes.sh
This scripts are used by the Github Action https://github.com/nwchemgit/nwchem-wiki/blob/master/.github/workflows/website_update.yml so that every time a new commit is pushed to the NWChem wiki, the content of the website https://nwchemgit.github.io is updated.
IMPORTANT
: The Information below is for reference ONLY, since the wiki source is now automatically uploaded to the https://nwchemgit.github.io by means of the Github Action https://github.com/nwchemgit/nwchem-wiki/blob/master/.github/workflows/website_update.yml
Install mkdocs https://www.mkdocs.org/ (for reference ONLY)
python3 -m pip install --user mkdocs
python3 -m pip install --user mkdocs-material
git clone https://github.com/cmitu/mkdocs-altlink-plugin
cd mkdocs-altlink-plugin
python3 -m pip install --user -e .
python3 -m pip install --user python-markdown-math
mkdocs.yml
https://www.mkdocs.org/#theming-our-documentation
https://www.mkdocs.org/user-guide/plugins/
git clone https://github.com/nwchemgit/nwchem-wiki docs
git clone https://github.com/nwchemgit/archivedforum
rsync -av archivedforum/Special_AWCforum docs/.
The file index.md
is the main file
mkdocs serve
Point your browser to http://127.0.0.1:8000
mkdocs build
git clone https://github.com/nwchemgit.github.io
cd nwchemgit.github.io
rsync -av /path/to/mkdocs/site/* .
git add -A
git commit -m
git push
git clone https://github.com/nwchemgit/nwchemgit.github.io
cd nwchemgit.github.io
mkdocs -v gh-deploy --config-file /path/to/mkdocs/mkdocs.yml --remote-branch master
Browse new web pages at https://nwchemgit.github.io/
- python-markdown-math https://github.com/mitya57/python-markdown-math https://pypi.org/project/python-markdown-math/
python3 -m pip install python-markdown-math
https://github.com/mkdocs/mkdocs/issues/253
- arithmatex from pymdown-extensions
python3 -m pip install pymdown-extensions
https://facelessuser.github.io/pymdown-extensions
Caveat: gets confused by the existing latex2svg embedded images
python3 -m pip install markdown-katex
Not tried yet