Skip to content

Commit ab16808

Browse files
authored
Merge pull request #11 from python-project-templates/tkp/darkcode
Update instructions for action, add yardang's config to the docs
2 parents 8686b91 + bf92827 commit ab16808

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111

1212
[`yardang`](https://www.britannica.com/science/yardang) makes building [Sphinx](https://www.sphinx-doc.org/en/master/) easy.
1313

14+
## Configuration
15+
16+
Here is `yardang`'s own configuration, in `pyproject.toml`
17+
18+
```toml
19+
[tool.yardang]
20+
root = "docs/src/home.md"
21+
cname = "yardang.python-templates.dev"
22+
pages = [
23+
"docs/src/overview.md",
24+
"docs/src/installation.md",
25+
"docs/src/configuration.md",
26+
]
27+
use-autoapi = true
28+
```
29+
1430
## Installation
1531
You can install from PyPI via `pip`:
1632

docs/src/configuration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
Configuration for `yardang` is driven from the `pyproject.toml`, either via standard sections like `project` or from the dedicated `tool.yardang` section.
44
Each option below corresponds to the [Sphinx configuration](https://www.sphinx-doc.org/en/master/usage/configuration.html).
55

6+
Here is `yardang`'s own configuration, in `pyproject.toml`
7+
8+
```toml
9+
[tool.yardang]
10+
root = "docs/src/home.md"
11+
cname = "yardang.python-templates.dev"
12+
pages = [
13+
"docs/src/overview.md",
14+
"docs/src/installation.md",
15+
"docs/src/configuration.md",
16+
]
17+
use-autoapi = true
18+
```
619
## [`name`](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-project)
720

821
The project name is taken from the standard section, or from the `cwd`.

docs/src/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v4
45-
- uses: actions/setup-python@v4
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: 3.11
4648
- run: pip install .
4749
- run: pip install yardang
4850
- run: yardang build

0 commit comments

Comments
 (0)