Skip to content

Commit 54595ef

Browse files
committed
Fix sphinx warnings
1 parent 431c2e2 commit 54595ef

5 files changed

Lines changed: 14 additions & 56 deletions

File tree

docs/source/amaranth-soc.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/source/amaranth.rst

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
top_path / "vendor/chipflow-lib/chipflow_lib",
7676
]
7777
autoapi_generate_api_docs = True
78-
autoapi_template_dir = "_templates/autoapi"
78+
autoapi_template_dir = "chipflow-lib/_templates/autoapi"
7979
# autoapi_verbose_visibility = 2
8080
autoapi_keep_files = True
8181
autoapi_options = [
@@ -84,11 +84,14 @@
8484
'show-module-summary',
8585
'imported-members',
8686
]
87+
autoapi_root = "chipflow-lib/autoapi"
8788

8889
# Exclude autoapi templates and in-progress stuff
8990
exclude_patterns = [
9091
autoapi_template_dir,
91-
"unfinished",
92+
"chipflow-lib/unfinished",
93+
"amaranth/cover.rst",
94+
"amaranth-soc/cover.rst",
9295
]
9396

9497

@@ -97,18 +100,11 @@
97100
}
98101
intersphinx_disabled_domains = ['std']
99102

100-
exclude_patterns = [
101-
'amaranth/index.rst',
102-
'amaranth/cover.rst',
103-
'amaranth-soc/index.rst',
104-
'amaranth-soc/cover.rst',
105-
]
106-
107103
rediraffe_redirects = {
108104
"simulator.rst": "amaranth/simulator.rst",
109105
}
110106

111-
templates_path = ['_templates']
107+
templates_path = ['chipflow-lib/_templates']
112108

113109
# -- Options for HTML output
114110

@@ -159,12 +155,14 @@
159155
r"^https://github\.com/[^/]+/[^/]+/$",
160156
]
161157

158+
suppress_warnings = [ "ref.python" ]
162159

163160
# Silence the warnings globally; otherwise they may fire on object destruction and crash completely
164161
# unrelated tests.
165162
import amaranth._unused
166163
amaranth._unused.MustUse._MustUse__silence = True
167164

165+
168166
# copy in the doc sources from our repos
169167

170168
copy_docs(repos)

docs/source/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ChipFlow Library Documentation
22
==============================
33

4-
.. image:: _assets/chipflow-logo.svg
4+
.. image:: chipflow-lib/_assets/chipflow-logo.svg
55
:width: 200px
66
:class: sd-m-auto
77
:name: landing-page-logo
@@ -13,16 +13,16 @@ ChipFlow IC Design Platform
1313
ChipFlow is an open-source platform for designing, testing, and manufacturing custom silicon.
1414
It provides a streamlined workflow from design to fabrication using Python and the Amaranth HDL.
1515

16-
.. toctree::
1716
:maxdepth: 2
18-
:caption: User Guide
1917

2018

2119
Contents
2220
--------
2321

2422
.. toctree::
25-
chipflow-lib
26-
amaranth
27-
amaranth-soc
23+
:caption: User Guide
24+
25+
chipflow-lib/index
26+
Amaranth Language and Toolchain <amaranth/index>
27+
Amaranth System-on-a-Chip toolkit <amaranth-soc/index>
2828
support

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ dependencies = [
2828
requires = ["pdm-backend"]
2929
build-backend = "pdm.backend"
3030

31-
[dependency-groups]
32-
dev = [
33-
"-e amaranth@file:///${PROJECT_ROOT}/vendor/amaranth",
34-
"-e amaranth_soc@file:///${PROJECT_ROOT}/vendor/amaranth-soc",
35-
]
36-
3731
[tool.pdm.scripts]
3832
docs.cmd= "sphinx-build docs/source/ docs/build/"
3933
autodocs.cmd= "sphinx-autobuild docs/source/ docs/build/"

0 commit comments

Comments
 (0)