doc/nrd: add example of multipage rendering

This commit is contained in:
Alejandro Sánchez Medina
2025-05-27 00:29:06 +02:00
committed by Valentin Gagarin
parent 95b6ef496d
commit 4fb8ed7dfe

View File

@@ -75,3 +75,17 @@ In case this identifier is renamed, the mapping would change into:
]
}
```
## Rendering multiple pages
The `include` directive accepts an argument `into-file` to specify the file into which the imported markdown should be rendered to. We can use this argument to set up multipage rendering of the manuals.
For example
~~~
```{=include=} appendix html:into-file=//release-notes.html
release-notes/release-notes.md
```
~~~
will render the release notes into a `release-notes.html` file, instead of making it a section within the default `index.html`.