./dtcw4 local copyThemes jBakeTheme # copy the microsite theme
./dtcw4 local copyThemes pdfTheme # copy the PDF theme
copyThemes
About This Task
copyThemes copies one of docToolchain’s built-in themes into your project so you can customize it.
Two themes are available:
-
jBakeTheme— the microsite (jBake) theme: GSP templates plus CSS/JS assets used bygenerateSite. -
pdfTheme— the theme used bygeneratePDF.
Once copied, the theme lives in your project under version control, and your changes survive docToolchain upgrades.
Usage
The theme to copy is passed as an argument — there is no interactive prompt, so the task works in CI/CD pipelines and with LLM agents.
Calling the task without a valid argument prints a usage message and exits with a non-zero status.
Where the Theme Is Copied
| Theme | Target location |
|---|---|
|
|
|
|
After copying, the task reminds you to set the matching config property (microsite.siteFolder or pdfThemeDir) if it isn’t set yet, so generateSite / generatePDF pick up your customized theme.
Related Tasks
-
generateSite — uses the
jBakeTheme -
generatePDF — uses the
pdfTheme
Source
View the source of this task: scripts/copyThemes.groovy on GitHub
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.