Skip to content

Commit 121143d

Browse files
authored
docs: generate config value reference (scikit-build#1052)
This would make it easier to cross-reference. I was debating going for an auto-generated one and integrating with sphinx directly or going with the `nox -t gen` files, and I think I prefer the latter because it makes it more obvious to review the generated text in all the places, wdyt? I also want to unlock usage of sphinx roles in it, but the readme generation gets in the way. My opinion is that if we have this, we could either move the readme part to the generated page, or truncate it to only display the first summary sentence similar to how `click` does it. Depends-on: scikit-build#1051 Closes scikit-build#999 --------- Signed-off-by: Cristian Le <git@lecris.dev>
1 parent 824019a commit 121143d

File tree

9 files changed

+601
-6
lines changed

9 files changed

+601
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ as environment variables. `tool.scikit-build` is used in toml, `skbuild.` for
144144
below:
145145

146146
<!-- [[[cog
147-
from scikit_build_core.settings.skbuild_docs import mk_skbuild_docs
147+
from scikit_build_core.settings.skbuild_docs_readme import mk_skbuild_docs
148148
149149
print("\n```toml\n[tool.scikit-build]")
150150
print(mk_skbuild_docs())

docs/api/scikit_build_core.settings.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ scikit\_build\_core.settings.json\_schema module
4141
:show-inheritance:
4242
:undoc-members:
4343

44-
scikit\_build\_core.settings.skbuild\_docs module
45-
-------------------------------------------------
44+
scikit\_build\_core.settings.skbuild\_docs\_readme module
45+
---------------------------------------------------------
46+
47+
.. automodule:: scikit_build_core.settings.skbuild_docs_readme
48+
:members:
49+
:show-inheritance:
50+
:undoc-members:
51+
52+
scikit\_build\_core.settings.skbuild\_docs\_sphinx module
53+
---------------------------------------------------------
4654

47-
.. automodule:: scikit_build_core.settings.skbuild_docs
55+
.. automodule:: scikit_build_core.settings.skbuild_docs_sphinx
4856
:members:
4957
:show-inheritance:
5058
:undoc-members:

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ about/changelog
7373
7474
api/scikit_build_core
7575
schema
76+
reference/configs
7677
```
7778

7879
## Indices and tables

0 commit comments

Comments
 (0)