-
pip install sphinx
-
cd /path/to/project
-
mkdir docs
-
cd docs
-
sphinx-quickstart
-
create new source.rst file
-
edit index.rst:
-
make html
-
now we can find new title is added:
-
now we change the style:
get into the source/conf.py
import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] make html
-
now we have a new style:
-
done
if you want to use markdown:
create a markdown Start.md file
then use this to convert md into h5:
open the command line and input:
myst-docutils-html5 --stylesheet= Start.md
then you get a html file
then include this md into the index.rst
another way:
- do this:
pip install recommonmark
- 然后更改conf.py:
from recommonmark.parser import CommonMarkParser
source_parsers = {
'.md': CommonMarkParser,
}
source_suffix = ['.rst', '.md']
- make html



