@@ -8,105 +8,46 @@ Installation and start
88
99 .. tab :: Linux/macOS
1010
11- .. code-block :: console
12-
13- $ mkdir docs_proj
14- $ cd docs_proj
15- $ python3 -m venv .venv
16-
17- .. tab :: Windows
18-
19- .. code-block :: ps1con
20-
21- C:> mkdir docs_proj
22- C:> cd docs_proj
23- C:> py -m venv .venv
11+ $ uv init --package docs_proj
12+ $ cd docs_proj
2413
2514#. Switch to the virtual environment and install Sphinx there:
2615
27- .. tab :: Linux/macOS
28-
29- .. code-block :: console
30-
31- $ . .venv/bin/activate
32- $ (.venv) python -m pip install sphinx
33- Creating a virtualenv for this project…
34- …
35-
36- .. tab :: Windows
37-
38- .. code-block :: ps1con
16+ .. code-block :: console
3917
40- C:> .venv\Scripts\activate.bat
41- C:> (.venv) python -m pip install sphinx
42- Creating a virtualenv for this project…
43- …
18+ $ uv add --group docs sphinx
4419
4520 #. Create your Sphinx documentation project:
4621
47- .. tab :: Linux/macOS
22+ .. code-block :: console
4823
49- .. code-block :: console
50-
51- $ sphinx-quickstart docs
52- Selected root path: docs
53- > Separate source and build directories (y/n) [n]:
54- > Name prefix for templates and static dir [_]:
55- > Project name: my.package
56- > Author name(s): Veit Schiele
57- > Project release []: 1.0
58- > Project language [en]:
59- > Source file suffix [.rst]:
60- > Name of your master document (without suffix) [index]:
61- > autodoc: automatically insert docstrings from modules (y/n) [n]: y
62- > doctest: automatically test code snippets in doctest blocks (y/n) [n]: y
63- > intersphinx: link between Sphinx documentation of different projects (y/n) [n]: y
64- > todo: write "todo" entries that can be shown or hidden on build (y/n) [n]: y
65- > coverage: checks for documentation coverage (y/n) [n]:
66- > imgmath: include math, rendered as PNG or SVG images (y/n) [n]:
67- > mathjax: include math, rendered in the browser by MathJax (y/n) [n]:
68- > ifconfig: conditional inclusion of content based on config values (y/n) [n]:
69- > viewcode: include links to the source code of documented Python objects (y/n) [n]: y
70- > githubpages: create .nojekyll file to publish the document on GitHub pages (y/n) [n]:
71- > Create Makefile? (y/n) [y]:
72- > Create Windows command file? (y/n) [y]:
73-
74- Creating file docs/source/conf.py.
75- Creating file docs/source/index.rst.
76- Creating file docs/Makefile.
77- Creating file docs/make.bat.
78-
79- .. tab :: Windows
80-
81- .. code-block :: ps1con
82-
83- C:> sphinx-quickstart docs
84- Selected root path: docs
85- > Separate source and build directories (y/n) [n]:
86- > Name prefix for templates and static dir [_]:
87- > Project name: my.package
88- > Author name(s): Veit Schiele
89- > Project release []: 1.0
90- > Project language [en]:
91- > Source file suffix [.rst]:
92- > Name of your master document (without suffix) [index]:
93- > autodoc: automatically insert docstrings from modules (y/n) [n]: y
94- > doctest: automatically test code snippets in doctest blocks (y/n) [n]: y
95- > intersphinx: link between Sphinx documentation of different projects (y/n) [n]: y
96- > todo: write "todo" entries that can be shown or hidden on build (y/n) [n]: y
97- > coverage: checks for documentation coverage (y/n) [n]:
98- > imgmath: include math, rendered as PNG or SVG images (y/n) [n]:
99- > mathjax: include math, rendered in the browser by MathJax (y/n) [n]:
100- > ifconfig: conditional inclusion of content based on config values (y/n) [n]:
101- > viewcode: include links to the source code of documented Python objects (y/n) [n]: y
102- > githubpages: create .nojekyll file to publish the document on GitHub pages (y/n) [n]:
103- > Create Makefile? (y/n) [y]:
104- > Create Windows command file? (y/n) [y]:
105-
106- Creating file docs\conf.py.
107- Creating file docs\index.rst.
108- Creating file docs\Makefile.
109- Creating file docs\make.bat.
24+ $ uv run sphinx-quickstart docs
25+ Selected root path: docs
26+ > Separate source and build directories (y/n) [n]:
27+ > Name prefix for templates and static dir [_]:
28+ > Project name: my.package
29+ > Author name(s): Veit Schiele
30+ > Project release []: 1.0
31+ > Project language [en]:
32+ > Source file suffix [.rst]:
33+ > Name of your master document (without suffix) [index]:
34+ > autodoc: automatically insert docstrings from modules (y/n) [n]: y
35+ > doctest: automatically test code snippets in doctest blocks (y/n) [n]: y
36+ > intersphinx: link between Sphinx documentation of different projects (y/n) [n]: y
37+ > todo: write "todo" entries that can be shown or hidden on build (y/n) [n]: y
38+ > coverage: checks for documentation coverage (y/n) [n]:
39+ > imgmath: include math, rendered as PNG or SVG images (y/n) [n]:
40+ > mathjax: include math, rendered in the browser by MathJax (y/n) [n]:
41+ > ifconfig: conditional inclusion of content based on config values (y/n) [n]:
42+ > viewcode: include links to the source code of documented Python objects (y/n) [n]: y
43+ > githubpages: create .nojekyll file to publish the document on GitHub pages (y/n) [n]:
44+ > Create Makefile? (y/n) [y]:
45+ > Create Windows command file? (y/n) [y]:
46+
47+ Creating file docs/source/conf.py.
48+ Creating file docs/source/index.rst.
49+ Creating file docs/Makefile.
50+ Creating file docs/make.bat.
11051
11152 Sphinx layout
11253-------------
0 commit comments