Development
Local Development
To build and test locally:
-
Clone:
-
Install requirements:
-
Install locally:
Debugging
-
Recommend troubleshooting a single file at a time:
-
Compare the temporary files staged for pandoc conversion:
-
To turn on logging during migrating a file:
-
To troubleshoot indexing when scanning a single document:
The index information is sent to standard out (rather than added to a
anchor.txt
file. -
To troubleshoot downloads when scanning a single document:
The download information is sent to standard out (rather than a
download.txt
file.
Pandoc
-
The pandoc plugin settings are in two constants:
-
The pandoc extensions are chosen to align with mkdocs use of markdown extensions, or with post-processing:
markdown extension pandoc extension post processing tables pymdownx.keys pipe_tables post processing pymdownx.superfences backtick_code_blocks post processing admonition fenced_divs post processing -
Language translation depends on conversion to and from html. To troubleshoot just the markdown to html conversion:
mkdocs_translate internal_html docs/contributing/style-guide.md mkdocs_translate internal_markdown build/convert/contributing/style-guide.html diff docs/contributing/style-guide.md build/convert/contributing/style-guide.md
Langauge conversion uses
text/html
to avoid internationalization of content distributing markdown formatting.