Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-docgen

Documentation publishing for Pudu: articles, API references, navigation, search, and static websites

0.1.0Apache-2.01

InstallClose

template.md

Markdown53 lines1.4 KB

GitHub ↗

template


uid: guides.commands.template description: List the built-in templates or export the default template's files for customizing.


Lists the built-in templates or copies the default template into a folder so it can be customized.

docgen template list
docgen template export [folder] [options]

template list

Prints the names of the built-in templates, one per line:

default
modern

modern is another name for default.

template export

Writes the default template's files into a folder:

FileDescription
layout.htmlThe page layout.
partials/*.htmlEvery partial: actions, affix, breadcrumb, footer, head, header, pager, scripts, sidebar.
reference/site.css, reference/site.jsThe default stylesheet and script, for reference. They are not loaded from the template folder.
public/main.css, public/main.jsEmpty files that are loaded after the defaults.
Argument or optionDescription
folderWhere to write the files.
-o, --output <folder>The same, when no folder argument is given. Defaults to _exported_templates/default.

Add the folder to build.template after default, then delete every file you do not change, so that later versions of the default template still apply to them.

Example

pudu run Docgen.pudu template export docs/template
"template": ["default", "template"]