-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Documentation update process
This will require an update/simplification as soon as the documentation is hosted on github-pages.
The MathJax documentation is stored in the docs directory of the MathJax GitHub repository. The docs/source directory contains the master .rst files, and there is a makefile in docs that allows you to convert these to the various formats needed by MathJax.
- First, cd to the docs directory:
cd MathJax/docs
- Remove the current html and .doctrees directories:
rm -rf html .doctrees
- Remake the html documentation:
make html
- Commit the changes to GitHub:
git commit -a -m "(log message about changes)"
To rebuild the documentation for www.mathjax.org
- First, cd to the docs directory:
cd MathJax/docs
- Remove the current html and .doctrees directries:
rm -rf html .doctrees
- Remake the html documentation with headers for www.mathjax.org:
make html-mathjax-site
- Rename the html-mathjax-site directory to the version number for the documentation:
mv html-mathjax-site N.M
- Remove the .buildinfo and objects.inv files:
rm N.M/.buildinfo N.M/objects.inv
- Create a tar archive of the directory:
tar cvfz N.M.tgz N.M
- Move the directory to webfactional:
scp N.M.tgz (user)@dessci.webfactional.com
(fill in the user appropriately). - Log into webfactional:
ssh (user)@dessci.webfactional.com
- Unpack & delete the archive:
tar vfxz N.M.tgz && rm N.M.tgz
- Move to the docs directory:
cd webapps/wp/docs
- If you are replacing an existing documentation directory:
mv N.M N.M-old && mv ~/N.M . && rm -rf N.M-old
- Otherwise (this is documentation for a new version)
- Move the documentation directory:
mv ~/N.M .
- Edit the index.html to point to the new documentation.
- Edit the documentation page (using the Wordpress interface) to include the new documentation directory.
- Move the documentation directory:
- Log out of webfactional:
logout
- Check that the documentation page shows up correctly by loading http://www.mathjax.org/docs/ (you might need to clear the history first).
The version number of the documentation is in html/source/config.py and should be changed when the version of MathJax changes.
The www.mathjax.org header information is stored in html/source/mjtheme/layout.html and should be updated if the theme at www.mathjax.org changes. In particular, if items are added to or removed from the main menu, these need to be added to or removed from layout.html by hand.