forked from containers/nri-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This relies on the myst parser's (new in v0.19) feature of customizing external URL schemes with the "myst_url_schemes" configuration option. We specify new URL schemes "blob" and "tree" which are supposed to be used for references to blobs (files) and trees (directories) in the git repo. This also drops sphinx event hooks ("doctree-resolved" and "missing-reference"), simplifying the conf.py considerably. They were useless anyway as they were totally broken and didn't actually fix any references to repo files. The downside of this is that the affected references are not shown when browsing .md files directly from github (as github dosn't handle our custom 'tree:' and 'blob:' url schemes. However, it should be preferable to have the cross-references working in the official documentation. Signed-off-by: Markus Lehtonen <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters