tree: 3f4ad8daa4bf42e8541b17bb839b26633b784f45 [path history] [tgz]
  1. katex_replace/
  2. rouge/
  3. spec-macros/
  4. attribs.txt
  5. copyright-ccby.txt
  6. docinfo-header.html
  7. katex_replace.rb
  8. khronos.css
  9. opencl.asciidoc
  10. optimize-pdf
  11. README.md
  12. rouge_opencl.rb
  13. sectnumoffset-treeprocessor.rb
  14. spec-macros.rb
  15. version-full-links.asciidoc
  16. version-local-links.asciidoc
config/README.md

OpenCL Asciidoctor Configuration Files

Macros

The macros in spec-macros.rb and spec-macros/extension.rb are described in the “Vulkan Documentation and Extensions: Procedures and Conventions” document (see the Vulkan registry).

Support for Math

katex_replace.rb inserts KaTeX <script> tags from math.js for HTML5, and properly passes through math which has \begin{}\/end{} delimiters instead of $$[]().

For PDF builds, asciidoctor-mathematical is used to generate PNG images which are incorporated into the output.

mathjax-asciidoc.conf, mathjax-docbook.conf, and mathjax.js are still used to support MathJax for documents using the older asciidoc toolchain. mathjax-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.