Reusable Documentation Template

moodle-docs-theme provides a standard bilingual documentation template ready to use across all plugins and repositories of the Moodle by KelsonCM organization.

The template standardizes:

  • Bilingual structure with English (default) in docs/en/ and Brazilian Portuguese in docs/pt-br/.

  • Automatic language router at docs/index.html redirecting users according to browser preferences or stored choice.

  • Standard reStructuredText pages (index.rst, installation.rst, configuration.rst, usage.rst).

  • Python requirements in docs/requirements.txt.

  • Automated GitHub Actions workflow (.github/workflows/docs.yml) for building and deploying to GitHub Pages.

How to Use the Template

Available CLI Options

Option

Description

target_dir

Target repository root path (default: current directory .).

--project-name

Project name (default: directory name).

--repo

GitHub repository path (default: moodle-by-kelsoncm/<dirname>).

--tagline-en

English tagline for documentation header.

--tagline-pt

Portuguese tagline for documentation header.

--version-str

Version string (default: 1.0.0).

--force

Overwrite existing template files.

--single-lang

Generate legacy single-language template directly in docs/.

--no-workflow

Skip generating .github/workflows/docs.yml.