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

init.md

Markdown41 lines1.2 KB

GitHub ↗

init


uid: guides.commands.init description: Create a new documentation project with a configuration, starter pages, and navigation.


Creates a documentation project in a folder.

docgen init [folder] [options]
ArgumentDescription
folderWhere to create the project. Defaults to the current folder.
OptionDescription
-y, --yesAccept every default instead of asking.

Without --yes, the command asks four questions. Press Enter to accept the default shown in brackets.

QuestionDefaultEffect
Site titleThe folder name_appTitle and _appName, and the landing page heading.
Document Pudu sourcesyesAdds a metadata source and an API navigation item.
Source foldersrcThe folder the API reference is generated from.
Enable PDFnoSets pdf in global metadata.

The command prints created <path> for every file it writes, then the command that builds and serves the new project. See the [quick start](../quick-start.md#create-a-documentation-project) for the files it creates.

A folder that already holds a docgen.json is refused with DG501.

Example

pudu run Docgen.pudu init docs --yes
pudu run Docgen.pudu build docs --serve