MyST xref reference#
This page provides serves some reference information about JupyterBook 2 / MyST xref usage in our documentation ecosystem. Specifically, this page includes:
our approach for avoiding circularity of xrefs (e.g., if book 1 and book 2 xref each other, and both have updates, the build order can potentially impact the freshness of the content that shows up in each)
canonical labels and links used for our most common
xrefs.
xref “levels”#
A resource at a given “level” (listed below) should only xref to resources at numerically lower levels. For example, Level 2 resources should only xref to resources in Levels 0 or 1.
This information is used when documentation is rebuilt. Builds are performed in numeric order of the levels - so first all Level 0 resources build, then all Level 1 resources, and so on. This is particularly important for xref-embedded content: it ensures that most recent version of content is embedded in a Level N resource from a Level N-1 resource when the Level N resource is built. An example of this is the glossary, which is embedded in Using QIIME 2 and in amplicon-docs through an xref to content in Rachis News.
Build order within a level is not important.
Level 0: unversioned resources#
Name |
Description |
Target |
URL |
|---|---|---|---|
|
glossary source (and potentially other broadly referenced source content in the future) |
|
|
library |
plugin references |
|
Level 1: framework references#
Name |
Description |
Target |
URL |
|---|---|---|---|
Developing with QIIME 2 |
developer manual |
|
|
Using QIIME 2 |
rachis user manual |
|
Level 2: data-set focused tutorials#
Name |
Description |
Target |
URL |
|---|---|---|---|
Gut-to-soil tutorial |
user-focused QIIME 2 tutorial |
|
|
Moving pictures tutorial |
user-focused QIIME 2 tutorial |
|
Level 3: Examples of distribution and plugin documentation#
At this moment, this is the highest level of xref, so nothing xrefs into these. For that reason, canonical targets aren’t yet defined.
Name |
Description |
Target |
URL |
|---|---|---|---|
amplicon-docs |
QIIME 2 user manual |
no target defined |
|
moshpit docs |
MOSHPIT user manual |
no target defined |
|
genome-sampler docs |
|
no target defined |
|
q2-fmt docs |
|
no target defined |
Miscellaneous notes#
Remember that anchors can be found in the
myst.xref.jsonat the top-level of the target’s URL, for example: https://news.rachis.org/en/latest/myst.xref.json.