Vulkan-Docs/config/README.md
Jon Leech 9a8314cd41 Restructure the repository to put the specification Makefile and
associated material at the top level, vk.xml and associated material in
xml/, and generated include and source files in include/vulkan/ and
src/ext_loader/, respectively (public issue 436).
2018-04-04 23:08:43 -07:00

26 lines
905 B
Markdown

# Vulkan Asciidoc Configuration Files
## Macros
The macros in `vulkan-macros.rb` and `vulkan-macros/extension.rb` are
described in the "Vulkan Documentation and Extensions: Procedures and
Conventions" document (see the [styleguide](../styleguide.txt)).
## Support for Math
Asciidoctor is customized to insert KaTeX `<script>` tags from
`math.js` for HTML5, and properly pass through math which has
`\begin{}\/end{}` delimiters instead of $$\[\]\(\).
For PDF builds, asciidoctor-mathematical is used to generate
`math-docbook.conf` is heavily conditionalized depending on whether the
final output format (which should be described in the a2x-format variable)
is `pdf` or not, since Docbook passes through math differently to dblatex
vs. the XHTML stylesheets. This could be simplified now that we're only
using Docbook for PDFs.
## Stylesheets
`khronos.css` is the stylesheet used for HTML output.