feat: Allow semiliterate to adjust the theme
The mechanism here is to shadow a specified `custom.theme_dir` in the generated docs directory, and then ignore generated files therein (since they will be being used by the theme to render the pages, and are not actually part of the documentation).
This commit is contained in:
parent
86010351b7
commit
b1203327ad
33 changed files with 3180 additions and 9 deletions
4
tests/fixtures/theme-modification/doc_theme/.base.generator
vendored
Normal file
4
tests/fixtures/theme-modification/doc_theme/.base.generator
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{! "\syspath mkdocs/themes/readthedocs/base.html"
|
||||
extract:
|
||||
replace: [ ['([<]body.*$)', '\1\n<p>Kilroy was here.</p>\n'] ]
|
||||
!}
|
Loading…
Add table
Add a link
Reference in a new issue