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
* <2> List of dependencies to be downloaded and extracted. The directory where these dependencies are extracted will be available to all components as an environment variable.
45
-
* <3> The name of the environment variable describing where the path can be found. If this path exists and is a valid directory, it will be used as the source root for the dependency, skipping the download and extraction steps. If this is different from `variable`, the extension will set the value of `variable` to the path where the dependency is already located.
* <2> List of dependencies to be downloaded and extracted.
45
+
The directory where these dependencies are extracted will be available to all components as an environment variable.
46
+
* <3> The name of the environment variable describing where the path can be found.
47
+
If this path exists and is a valid directory, it will be used as the source root for the dependency, skipping the download and extraction steps.
48
+
If this is different from `variable`, the extension will set the value of `variable` to the path where the dependency is already located.
46
49
47
50
Besides the `dependencies` configuration, you can also set the following options:
48
51
@@ -52,20 +55,24 @@ Besides the `dependencies` configuration, you can also set the following options
52
55
| `version` | A semver range that specifies the version of MrDocs to use. | `*`
53
56
| `allow-master` | If `true`, the extension will allow the use of the `master` branch for MrDocs if `version` is `*`. | `true`
54
57
| `allow-develop` | If `true`, the extension will allow the use of the `develop` branch for MrDocs if `version` is `*`. | `true`
58
+
| `module` | Antora module that will receive the generated pages (`modules/<module>/pages`). | `reference`
55
59
|===
56
60
57
61
=== Components
58
62
59
-
Components that will include reference documentation should set the path of the MrDocs configuration file. Append following in your `antora.yaml`:
63
+
Components that will include reference documentation should set the path of the MrDocs configuration file.
64
+
Append following in your `antora.yaml`:
60
65
61
66
[source,yaml]
62
67
----
63
68
ext:
64
69
cpp-reference:
65
70
config: doc/mrdocs.yml # <1>
71
+
module: api-ref # <2>
66
72
----
67
73
68
74
* <1> The path to the MrDocs configuration file relative to the worktree.
75
+
* <2> (Optional) Override the Antora module used for the generated pages. If omitted the component inherits the module set at the playbook level (or `reference` when neither level specifies a value).
69
76
70
77
For more information about MrDocs, see https://www.mrdocs.com/docs
71
78
@@ -80,6 +87,20 @@ You would usually include a link to the main reference page in the component's `
80
87
* xref:reference:index.adoc[Reference]
81
88
----
82
89
90
+
=== Coordinating with the tagfiles extension
91
+
92
+
When the tagfiles extension (https://github.com/cppalliance/antora-cpp-tagfiles-extension) is also listed in your playbook, the reference tagfile is registered automatically and picked up within the same Antora run—even if you change the module name.
0 commit comments