Repository navigation
Conversation
The generated HTML from 'make clean html' at top level is identical. Adds conversion scripts from Vulkan to rewrite asciidoc <<>>-style xrefs to Antora xref:-style, and supporting Antora framework. Adds Makefile setup_antora and clean_antora targets which rewrite SPIRV spec sources into antora/ using the scripts. Refactors SPIR-V spec files, including the generator tools/spirv/printSpec.cpp that creates binary.adoc, slightly so the script can determine which files are top-level Antora 'pages' and which are just included 'partials'. Also modifies bin/process_versions.py to just emit the version text, and folds the other (static) asciidoc header material into intro.adoc, for the same reason. This is the first stage of conversion, to be followed by cleanups, navigation generation, fixes for some xrefs that are not converting correctly yet, and incorporation into the Vulkan-Site repository build that generates docs.vulkan.org.
Improve Antora conversion scripts and Makefile targets. Add support for binary images and examples. Add component index.adoc and a static nav.adoc for the different specifications.
This was referenced Nov 17, 2026
Each chapter file now starts with a top-level ('= ') header, which
allows Antora to consume it as a separate page, and the other section
headings in those files have been adjusted accordingly. The generator
has been adjusted to do this for binary.adoc as well.
SPIRV.adoc globally moves the section headings down one level on
including the chapter files, so the generated asciidoctor outputs are
unaffected.
The 'clean' target has been split with 'clean_docs', which just removes
the generated HTML and PDF targets but not the generated intermediate
files.
Collaborator
|
Thanks, Jon. The sandbox reads well. A few things I found:
|
* Clean up clean_antora target * Remove Vulkan-specific generated files and comments from Makefile, fix typos * Add intermediate / generated files to .gitignore
they result in ToC inline with the page content. Fix dependencies in Makefile so setup_antora target works correctly after a 'make clean' without needing to build the asciidoctor targets first. Move pageHeaders to the beginning of rewritten files, instead of after the chapter / document title, so they do not result in rendering author / revision information as random text. Vulkan-Site will need to be modified to include this as metadata and/or in the UI template if this information is needed in the generated site.
Contributor
Author
I think these have all been dealt with now. |
which do not start with level 0 headings, if they are appropriately
tagged.
Appropriately tag the SPIR-V specification chapter files.
Modify the {image} path used in the Antora build to reflect updates to
the conversion script.
as a separate page. Will need additional effort if the content in the document header (contributor list, primarily) is to appear in the Antora build.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Staging area with current state of this PR is at https://staging-docs.vulkan.org/sandbox/spirv/spirv/latest/index.html . It just includes the SPIR-V specs, not the other components that are currently published, since it's just to evaluate the WIP conversion.
The generated HTML from the asciidoctor builds via 'make clean html' at top level is identical.
Adds conversion scripts from Vulkan to rewrite asciidoc <<>>-style xrefs to Antora xref:-style, and supporting Antora framework.
Adds Makefile setup_antora and clean_antora targets which rewrite SPIRV spec sources into antora/ using the scripts.
Refactors SPIR-V spec files, including the generator tools/spirv/printSpec.cpp that creates binary.adoc, slightly so the script can determine which files are top-level Antora 'pages' and which are just included 'partials'. Also modifies bin/process_versions.py to just emit the version text, and folds the other (static) asciidoc header material into intro.adoc, for the same reason.
Known issues TBD before ready for deployment: