Skip to content

Latest commit

 

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README

This is the source code of documentations, you may visit our website for smooth reading:

Build

We are using Sphinx together with the sphinx-multiversion, MyST, and book theme to build the documentations. You may follow the below steps to build locally:

  1. You are suggested to use Conda to setup the toolchain
  2. Creating a new conda environment by importing the environment file
    conda env create -f environment.yml
    conda activate sphinx
  3. Building the Chinese or English doc
    sphinx-multiversion en build/en # the English documentations
    sphinx-multiversion zh build/zh # the Chinese documentations

Note

After activation, you can use which python to check.

If python is not from conda envs 'sphinx', you may activate 'sphinx' from the (base) env.

Deactivate (base) env, and then conda activate sphinx.

If you fail to create conda envs by environment.yml, try following commands.

1. conda create -n sphinx 
2. conda activate sphinx 
3. pip3 install -U Sphinx 
4. pip3 install sphinx-multiversion 
5. pip3 install myst-parser
6. pip3 install sphinx-book-theme
7. pip3 install sphinx_copybutton
8. pip3 install myst-parser[linkify]

Tips

Here are some important tips to help you get started:

  • For any changes, you must commit them before building. Changes that are not committed will not be reflected in the generated HTML files.
  • We are using MyST parser to support Markdown in Sphinx. Furthermore, MyST has a few very useful syntax extensions for better formatting. You may read the syntax guide of MyST.

Deployment

For our docs website (https://openmldb.ai/docs/zh/ and https://openmldb.ai/docs/en/), the building and deployment are automatically triggered by any push events to the docs of this repo. The deployment script currently is maintained in a private repo, if you experience any problems, please contact the repo maintainers.