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
Framework for adding refpages to docs.vulkan.org (#2553)
* Framework for adding refpages to docs.vulkan.org
Runs the same refpage extraction step, but sourced from the rewritten
spec sources in the Antora spec component, and output to a new refpages
component.
Still need to:
* Generate refpages nav.adoc from refpage list (ideally with some structure)
* Set attributes in refpages antora.yml to refer to the spec component for partials and images
* Rewrite xrefs relative to the spec component, instead of as links into the registry HTML spec (changes to genRef.py needed)
* Add partials / images directories for refpages module and add cross-file-links attribute when building it
* Setup document attributes in refpages module so custom macros know to
link to other refpages, not to the specification.
* checkpoit
* Add module prefix (if specified) during Antora markup conversion
* Refactor parameter passing to collect needed global variables for
xref rewrites, since they need to be passed several levels deep.
Move importFileModule to reflib.py for reuse by several scripts.
Consistently pass around the full path to pageMap.py and xrefMap.py, not
just the directory they're located in.
* Rewrite links correctly for Antora in scripts/genRef.py.
Use more consistent option / variable naming and capitalization when referring to maps.
Pass spec module name correctly when building Antora refpage sources.
* Generate Antora nav.adoc as part of refpages.
This is incomplete - aliases are not included because they are part of the same
page as the API they alias.
Also, extension refpages are not included yet.
* Improve nav.adoc generation.
Remove old apispec.adoc generated file and corresponding Makefile
targets 'manhtml' and 'manpdf', and use a different proxy target when
generating the refpage .adoc markup.
* Remove single page (apispec.adoc) target completely from genRef.py.
Improve refpage nav.adoc generation.
Still needs to handle pages in refpage_other_types and perhaps aliases
need to be handled differently, but much closer.
* Rename the array holding refpage details to 'refpageMap' to distinguish
it from the 'pageMap' of asciidoc anchors to specification filenames.
Use more consistent f'' style for strings with imbedded variables.
* Update Antora nav generation in genRef.py, and remove old HTML TOC
generation, which was never published.
Now includes nav links for aliases which link to the aliased page.
Minor fixes to refpage block markup.
Split diagnostics from warnings in refpage generation log.
Still problematic:
* Generated interface files (e.g. refpage.<extensionname>.adoc) for promoted extensions are not resolving e.g. slink: markup for APIs which are aliased to promoted APIs.
* nav index is very long (3100 lines!) and while it does collapse at the level of first letters, it does not collapse at the level of refpage types (e.g. 'Structures', 'API Core Versions', etc.)
Otherwise this is looking much better.
* Fix typo.
* Minor markup cleanup to proposals to properly link to the specification,
reducing complaints from Antora about unresolved xrefs, and otherwise
improve markup consistency.
* Improve handling of aliases in refpage generation and minor markup fixes.
* Minor markup cleanup
0 commit comments