TasksΒΆ
The nmk-doc plugin defines the tasks described below.
This diagram summarizes the available tasks, and how they are ordered in a given nmk project:
Setup tasksΒΆ
All tasks in this chapter are dependencies of the base setup task.
π.π doc.config β doc configuration file generationΒΆ
This tasks generates the sphinx configuration file.
Property |
Value/description |
|---|---|
builder |
|
input |
${docConfigTemplate} template file |
output |
${docConfig} file |
if |
enabled only if ${docIndex} config item is not empty |
π.π doc.rtd β Read The Docs build configuration file generationΒΆ
This tasks generates the Read The Docs automated build configuration file.
Property |
Value/description |
|---|---|
builder |
|
inputs |
${docConfig} doc config file |
output |
${docRTDConfig} file |
if |
enabled only if ${docIndex} config item is not empty |
π.π₯ puml.download β Download the PlantUML runtimeΒΆ
This tasks downloads the PlantUML runtime, needed to generate image files from input diagram files.
Property |
Value/description |
|---|---|
builder |
|
inputs |
|
output |
${plantUmlLocalPath} file |
if |
Builder is called with the following parameters:
Parameter name |
Value |
|---|---|
url |
|
request_function |
Added in version 1.1.0
Build tasksΒΆ
All tasks in this chapter are dependencies of the base build.doc task.
Changed in version 1.2.0 β previous dependency was on main build task.
π.π¨ doc.build β documentation buildΒΆ
This tasks builds the documentation by calling the sphinx tool.
Property |
Value/description |
|---|---|
builder |
|
input |
${docInputs} files |
output |
${docOutput} folder |
if |
enabled only if ${docIndex} config item is not empty |
Builder is called with the following parameters:
Parameter name |
Value |
|---|---|
source_folder |
|
output_folder |
|
version |
${docVersion} |
π.π¨ puml.generate β Generate the PlantUML diagram imagesΒΆ
This tasks calls the PlantUML runtime to generate image files from input diagram files.
Property |
Value/description |
|---|---|
builder |
|
inputs |
${plantUmlDiagrams} files |
output |
${plantUmlOutputFiles} files |
if |
Builder is called with the following parameters:
Parameter name |
Value |
|---|---|
jar |
|
java_runtime |
|
input_folder |
|
output_folder |
|
formats |
|
extra_options |
Added in version 1.1.0
π.π§© doc.snippets β Generate documentation snippetsΒΆ
This tasks generates documentation snippets as defined in the ${docSnippets} config item.
Property |
Value/description |
|---|---|
builder |
|
inputs |
${docSnippetsInputs} files |
output |
|
if |
Builder is called with the following parameters:
Parameter name |
Value |
|---|---|
snippets |
|
output_folder |
Added in version 1.2.0