Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/manual/source/development/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ prs: 1238
Here's one or more paragraphs that describe the change.

- It's markdown
- Add references to the manual using @docroot@
- Add references to the manual using [links like this](@_at_docroot@/example.md)
```
<!-- for the raw markdown readers: that means using @docroot@ -->

Significant changes should add the following header, which moves them to the top.

Expand Down
3 changes: 3 additions & 0 deletions doc/manual/substitute.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def recursive_replace(data: dict[str, t.Any], book_root: Path, search_path: Path
).replace(
'@docroot@',
("../" * len(path_to_chapter.parent.parts) or "./")[:-1]
).replace(
'@_at_',
'@'
),
sub_items = [
recursive_replace(sub_item, book_root, search_path)
Expand Down
Loading