[book] title = "Pan Docs" description = "The single, most comprehensive technical reference to Game Boy available to the public." language = "en" src = "src" [build] build-dir = "docs" create-missing = true # This is kept for convenience, but CI sets it to false use-default-preprocessors = false [preprocessor.graph_gen] command = "src/imgs/src/preproc.py" before = [ "links" ] # This generates some of the files that get `{{#include}}`d # `{{#include }}` etc. resolution [preprocessor.links] # Custom preprocessor for internal links processing and other custom markup [preprocessor.pandocs] command = "cargo run -p pandocs-preproc --locked --release --" after = [ "links" ] # Our custom renderer post-processes the built-in HTML renderer's output. [output.html] additional-css = [ "custom/style.css", ] # rgbasm.min.js gets injected into highlight.js by the renderer smart-punctuation = true print = { enable = true } fold = { enable = true, level = 0 } git-repository-url = "https://github.com/gbdev/pandocs" edit-url-template = "https://github.com/gbdev/pandocs/edit/master/{path}" site-url = "/pandocs/" sidebar-header-nav = false # Custom back-end to generate the single-file version and scrub off some generated files. # Kept after the `output.html` configuration so that it runs after, # so that it can rely on the files that were generated then. [output.pandocs] command = "cargo run -p pandocs-renderer --locked --release --" [output.linkcheck2] follow-web-links = false traverse-parent-directories = false optional = true warning-policy = "warn" exclude = [ 'https://github\.com/gbdev/pandocs/tree/', # Do not check the "this was generated from commit N" link, as the commit may not have been pushed yet 'print.html', # Do not check the print page, as it is generated separately 'single.html', # Do not check the single page, as it is generated separately 'http[s]*://problemkaputt\.de', # Skip checking problemkaputt.de, as connection to this domain is generally unreliable 'http[s]*://tcrf\.net', # Skip checking tcrf.net, as it returns 403 (https://blog.xkeeper.net/uncategorized/tcrf-has-been-getting-ddosed/) ]