You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store toctree list items as one of:
`GlobItem`, `RefItem`, `UrlItem`,
add glob logic to `append_toctrees`,
add addtional file creation to `create_site_from_toc`.
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,12 @@ The value of the `doc` key will be a path to a file (relative to the `conf.py`)
38
38
Each document can only occur once in the ToC!
39
39
```
40
40
41
-
Documents can then have a `parts` key - denoting a list of individual toctrees for that document - and in-turn each part should have a `sections` key - denoting a list child documents/URLs.
41
+
Document pages can then have a `parts` key - denoting a list of individual toctrees for that document - and in-turn each part should have a `sections` key - denoting a list of children links, that are one of: `doc`, `url` or `glob`:
42
+
43
+
- `doc`: relating to a single document page (as above)
44
+
- `glob`: relating to one or more document pages *via* Unix shell-style wildcards (similar to [`fnmatch`](https://docs.python.org/3/library/fnmatch.html), but single stars don't match slashes.)
45
+
- `url`: relating to an external URL (`http` or `https`)
46
+
42
47
This can proceed recursively to any depth.
43
48
44
49
```yaml
@@ -51,6 +56,7 @@ main:
51
56
- sections:
52
57
- doc: doc2
53
58
- url: https://example.com
59
+
- glob: other*
54
60
```
55
61
56
62
As a shorthand, the `sections` key can be at the same level as the `doc`, which denotes a document with a single `part`.
@@ -64,6 +70,7 @@ main:
64
70
sections:
65
71
- doc: doc2
66
72
- url: https://example.com
73
+
- glob: other*
67
74
```
68
75
69
76
### Titles and Captions
@@ -166,6 +173,20 @@ To build a template site from only a ToC file:
0 commit comments