Internals
DocumenterInterLinks.ExtCrossReferences
— TypePipeline step to expand all @extref
cross-references.
This runs before Documenter.Builder.CrossReferences
.
DocumenterInterLinks.InterLinks
— TypePlugin for enabling external links in Documenter.jl.
links = InterLinks(
+Internals · DocumenterInterLinks.jl Internals
DocumenterInterLinks.ExtCrossReferences
— TypePipeline step to expand all @extref
cross-references.
This runs before Documenter.Builder.CrossReferences
.
sourceDocumenterInterLinks.InterLinks
— TypePlugin for enabling external links in Documenter.jl.
links = InterLinks(
"project1" => "https://project1.url/",
"project2" => "https://project2.url/inventory.file",
"project3" => (
@@ -15,4 +15,4 @@
"https://documenter.juliadocs.org/stable/",
"https://documenter.juliadocs.org/stable/inventory.toml.gz",
joinpath(@__DIR__, "src", "interlinks", "Documenter.toml")
-)
The first reachable inventory file will be used. This enables, e.g., to define a local inventory file as a fallback in case the online inventory file location is unreachable, as in the last example.
A DocInventories.Inventory
instance.
Properties
names
: A list of project namesinventories
: A dictionary of project names to DocInventories.Inventory
instancesrx
: a Regex
that matches any valid @extref
expression that can be resolved.
The InterLinks
object also acts as a (read-only) ordered dictionary so that, e.g., links["project1"]
returns the DocInventories.Inventory
for that project.
Search
Free-form search in a particular inventory is possible with, e.g.,
links["Julia"](search)
See the discussion on search in the DocInventories.Inventory
documentation. Such a search returns a list of matching DocInventories.InventoryItem
instances.
In addition,
links(search)
allows to search across all inventories. This returns a list of @extref
strings that could be used to reference the matching items.
Methods
find_in_interlinks(links, extref)
– find the URL for an extref
See also
The InterLinks
mapping is deliberately reminiscent of the intersphinx_mapping
setting in Sphinx.
sourceDocumenterInterLinks.WriteInventory
— TypePipeline step to write the objects.inv
inventory to the build
directory.
This runs after Documenter.Builder.RenderDocument
and only if Documenter was set up for HTML output.
sourceDocumenterInterLinks.find_in_interlinks
— MethodFind an @extref
link in any of the InterLinks
inventories.
url = find_in_interlinks(links, extref)
finds extref
in links
and returns the full URL that resolves the link.
Arguments
links
: the [InterLinks
] instance to resolve the reference inextref
: a string of the form "@extref [inventory] [[:domain][:role]:]name"
sourceSettings
This document was generated with Documenter.jl version 1.2.1 on Thursday 4 January 2024. Using Julia version 1.10.0.
+)
The first reachable inventory file will be used. This enables, e.g., to define a local inventory file as a fallback in case the online inventory file location is unreachable, as in the last example.
A DocInventories.Inventory
instance.
Properties
names
: A list of project namesinventories
: A dictionary of project names toDocInventories.Inventory
instancesrx
: aRegex
that matches any valid@extref
expression that can be resolved.
The InterLinks
object also acts as a (read-only) ordered dictionary so that, e.g., links["project1"]
returns the DocInventories.Inventory
for that project.
Search
Free-form search in a particular inventory is possible with, e.g.,
links["Julia"](search)
See the discussion on search in the DocInventories.Inventory
documentation. Such a search returns a list of matching DocInventories.InventoryItem
instances.
In addition,
links(search)
allows to search across all inventories. This returns a list of @extref
strings that could be used to reference the matching items.
Methods
find_in_interlinks(links, extref)
– find the URL for anextref
See also
The InterLinks
mapping is deliberately reminiscent of the intersphinx_mapping
setting in Sphinx.
DocumenterInterLinks.WriteInventory
— TypePipeline step to write the objects.inv
inventory to the build
directory.
This runs after Documenter.Builder.RenderDocument
and only if Documenter was set up for HTML output.
DocumenterInterLinks.find_in_interlinks
— MethodFind an @extref
link in any of the InterLinks
inventories.
url = find_in_interlinks(links, extref)
finds extref
in links
and returns the full URL that resolves the link.
Arguments
links
: the [InterLinks
] instance to resolve the reference inextref
: a string of the form"@extref [project] [[:domain][:role]:]name"