paradox
paradox copied to clipboard
Simplify customization or overriding templates
or maybe just document how that is possible. It should be a layered approach where some things can be just configured (like footer HTML) while others things would need complete replacements of parts of a template.
For reference, replacing single parts from the template is possible by putting files with the same names as in the template into src/main/paradox/_template
.
#50 documents theming/templates.
The generic theme doesn't separate the footer and header into separate templates, so that might be the quick fix to allow loading additional CSS and JS files.
The infrastructure to allow theme/template customization through settings, e.g. GitHub project URL should already be there. For the generic theme it might make sense to add options for custom CSS/JS files and for example whether to show the right side-bar.
This doesn't seem to work for me. For example I keep default (paradoxTheme := Some(builtinParadoxTheme("generic"))
), and I put a modified version of navigation.st
into src/main/paradox/_template/
, this is simply not picked up. I'm using paradox 0.2.8
@Sciss There is another ticket reporting the same thing, seems like an issue at least with the latest 2 versions https://github.com/lightbend/paradox/issues/101