paradox icon indicating copy to clipboard operation
paradox copied to clipboard

Simplify customization or overriding templates

Open jrudolph opened this issue 8 years ago • 4 comments

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.

jrudolph avatar Oct 18 '16 11:10 jrudolph

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.

jrudolph avatar Oct 18 '16 11:10 jrudolph

#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.

jonas avatar Nov 02 '16 15:11 jonas

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 avatar Jan 30 '17 15:01 Sciss

@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

JohnMurray avatar Mar 24 '17 14:03 JohnMurray