Documentation scaffold for Plone projects#
The documentation_starter template creates a Sphinx documentation scaffold for Plone projects.
uvx cookieplone documentation_starter
Template ID |
|
Group |
Documentation |
Folder in |
|
Folder generated with the default answers |
|
project, aurora_cmfplone, monorepo_addon, backend_addon, and frontend_addon run this template as the docs/starter sub-template when you ask for documentation.
Requirements#
Before its first question, the template checks for Cookieplone 2.0.0a2 or later.
Questions#
Cookieplone asks these questions in this order.
Field |
Question |
Default |
Choices |
Validation |
|---|---|---|---|---|
|
Title |
|
— |
— |
|
Description |
|
— |
— |
|
Author |
|
— |
— |
|
Author E-mail |
|
— |
— |
|
GitHub Organization |
|
— |
— |
|
Initialize Git Repository |
|
|
— |
What your answers change#
The post-generation hook formats the scaffold, and initializes a git repository when initialize_git is 1.
Generated files#
With the default answers, the template generates these files, three levels deep:
collective.documentationstarter/
├── .cookieplone.json
├── .gitignore
├── .readthedocs.yaml
├── .vale.ini
├── docs/
│ ├── _static/
│ │ ├── favicon.ico
│ │ └── logo.svg
│ ├── _templates/
│ │ └── 404.html
│ ├── concepts/
│ │ └── index.md
│ ├── conf.py
│ ├── glossary.md
│ ├── how-to-guides/
│ │ └── index.md
│ ├── index.md
│ ├── reference/
│ │ └── index.md
│ ├── robots.txt
│ └── tutorials/
│ └── index.md
├── LICENSE.md
├── Makefile
├── pyproject.toml
├── README.md
└── styles/
└── config/
└── vocabularies/
Next steps#
The generated README.md lists uv as a prerequisite.
From the scaffold folder, build the HTML documentation:
make html
make livehtml builds the documentation and shows a live preview while you edit.
make vale checks spelling, grammar, and style, and make help lists the other targets.