• Home
Name Date Size #Lines LOC

..--

CI/22-Mar-2025-142136

chunkindex/22-Mar-2025-3,9042,103

extension-highlighter/22-Mar-2025-304169

fonts/22-Mar-2025-

ifdef-mismatch/22-Mar-2025-13078

katex_replace/22-Mar-2025-4529

loadable_html/22-Mar-2025-7352

spec-macros/22-Mar-2025-318236

themes/22-Mar-2025-3619

vu-to-json/22-Mar-2025-222153

vulkan/22-Mar-2025-54

vulkansc/22-Mar-2025-54

README.adocD22-Mar-20252.2 KiB6444

asciidoctor-mathematical-ext.rbD22-Mar-2025686 2415

attribs.adocD22-Mar-20253 KiB127111

attribs.txtD22-Mar-20252.3 KiB10894

copyright-ccby.adocD22-Mar-202579 42

copyright-ccby.txtD22-Mar-202579 42

copyright-spec.adocD22-Mar-20256.8 KiB137116

docinfo-header.htmlD22-Mar-20258.8 KiB54

extension-highlighter.rbD22-Mar-2025319 115

genanchorlinks.rbD22-Mar-2025655 2414

ifdef-mismatch.rbD22-Mar-2025264 104

katex_replace.rbD22-Mar-2025371 124

khronos.cssD22-Mar-202537.2 KiB733465

loadable_html.rbD22-Mar-2025364 124

makeSubmit.pyD22-Mar-20255.8 KiB14576

makedocinfologoD22-Mar-2025721 2412

mathtest.adocD22-Mar-202525.6 KiB954784

mathtest.txtD22-Mar-202525.6 KiB954784

open_listing_block.rbD22-Mar-2025651 2913

optimize-pdfD22-Mar-20253.2 KiB10045

quiet-include-failure.rbD22-Mar-2025769 3113

rouge-extend-css.rbD22-Mar-20251.8 KiB6144

spec-macros.rbD22-Mar-20251.3 KiB4133

tilde_open_block.rbD22-Mar-20252.3 KiB7144

vu-to-json.rbD22-Mar-2025261 104

vuid-expander.rbD22-Mar-20251 KiB3018

README.adoc

1// Copyright 2015-2024 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5= Vulkan Asciidoc Configuration Files
6
7== Macros
8
9The macros in `spec-macros.rb` and `spec-macros/extension.rb` are described
10in the "`Vulkan Documentation and Extensions: Procedures and Conventions`"
11document (see the link:../styleguide.adoc[style guide].
12
13== Support for Math
14
15Asciidoctor is customized to insert KaTeX `<script>` tags from
16`math.js` for HTML5, and properly pass through math which has
17`\begin{}\/end{}` delimiters instead of $$\[\]\(\).
18
19For PDF builds, asciidoctor-mathematical is used to generate
20images.
21
22== Stylesheets
23
24`khronos.css` is the stylesheet used for HTML output.
25It is a slightly tweaked version of the Asciidoctor 'Colony' theme.
26
27== Chunked Spec Index
28
29`chunkindex` contains scripts for building and using a search index for the
30Vulkan chunked HTML specification.
31
32== Title Page Images
33
34Asciidoctor requires use of `docinfo` files to get logos onto the title
35page, and has very restrictive naming conventions forcing the
36subdirectories:
37
38* `vulkan/docinfo-header.html` - Vulkan logo in docinfo HTML form
39* `vulkansc/docinfo-header.html` - Vulkan SC logo in docinfo HTML form
40* `makedocinfologo` - script to convert SVG file to docinfo HTML file
41
42== Asciidoctor Extensions
43
44We use a number of Asciidoctor customizations written in Ruby, described
45briefly below.
46
47* `asciidoctor-mathematical-ext.rb` - make latexmath: blocks work in table cells
48* `extension-highlighter.rb` - one way of constructing a diff HTML document
49* `katex_replace.rb` - substitute KaTeX for MathJax in output HTML
50* `loadable_html.rb` - add some status messages for slow-loading documents
51* `rouge-extend-css.rb` - override parts of the 'rouge' highlighter CSS
52* `spec-macros.rb` - custom asciidoctor macros used in spec markup
53* `open_listing_block.rb` - allow '----' as a nested open block delimiter when tagged by '[open]'
54* `vuid-expander.rb` - add anchors to valid usage ID tags
55* `vu-to-json.rb` - extract valid usage statements to JSON as part of a dummy spec build
56
57== CI support files
58
59These files are auxiliary data supplied to CI scripts
60
61* CI/contractions - disallowed contractions
62* CI/contractions-allowed - regular expressions matching filenames allowed
63  to have contractions
64