Seasalt.ai documentation is written with Sphinx, in RestructuredText syntax.
It is hosted at https://docs.seasalt.ai
-
install Python and pip
-
install
sphinx:pip install Sphinx -
install
sphinx_rtd_theme:pip install sphinx_rtd_themeFollow the docs to change your
conf.py -
If you start a new project:
sphinx-quickstartWhen asked "> Separate source and build directories (y/n) [n]: y" Please answer "y" to separate
sourceandbuilddirectories.Add
buildto your.gitignorefile. -
make static HTML:
make htmlif using VSCode you can use an extention like Live Server to view the page by right clicking on build/html/index.html and selecting 'Open with Live Server'
-
or if you prefer an auto-refreshing server:
pip install sphinx-autobuild make livehtmlthen the document will be hosted at http://localhost:4002
To publish your changes, make a PR to merge changes to master branch as usual. When your code is merged to master branch, Github Actions for deployment (see .github/workflows/deploy-github.yml) will be triggered to rebuild and publish static files to gh-pages branch. The webpage, docs.seasalt.ai, serves the static files that are pushed to gh-pages directly.
- Use lots of examples, pictures, and videos
- images: use PNG format and center align
- videos:
- if video is long and large, host it on YouTube (ask Xuchen to add you to the Chatflow channel on YouTube; you should already have an invitation in your inbox)
- if video is short and small (file size < 1MB), you can use the
<video>tag and host it statically in this repository - static video please use
.mp4format. I used Handbrake to convert original recorded video to.mp4format, with a click on the checkbox "Web Optimized" before converting
- YouTube videos:
- we prefer YouTube videos than vemo because it enables 1.5x/2x play
- make sure it has good quality: when you first upload the video, it might only show 480p, but after a while it'll show 1080p. If it doesn't show 1080p no matter what, it's probably that the screensize isn't a standard format
http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html