github-docs-cookiecutter

License

Author: Jared W. Cook
Version: 0.1.1

Overview

Github docs cookiecutter template generation.

Cookiecutter generator for documentation, company, blog, portfolio, and landing-page websites on GitHub Pages with Jekyll. Shared metadata, URLs, dependencies, front matter, and theme capabilities are managed by one central Jinja configuration.

Theme compatibility

The generator only publishes combinations that have the layouts, dependencies, and supporting files needed to build. Selecting an unimplemented theme or an incompatible website type stops generation with a message explaining the limitation.

Theme selection Compatible website types Integration License
just-the-docs/just-the-docs@v0.12.0 Documentation Pinned remote theme MIT
just-the-docs/just-the-docs@v0.11.0 Documentation Legacy pinned remote theme MIT
pmarsceill/just-the-docs Documentation Legacy alias normalized to the pinned canonical theme MIT
carlosperate/jekyll-theme-rtd Documentation Pinned remote theme plus licensed collection-navigation override BSD-2-Clause
mmistakes/minimal-mistakes Documentation, company, blog, portfolio, landing page Pinned remote theme plus generated site-type navigation MIT
raviriley/agency-jekyll-theme Company, portfolio, landing page Commit-pinned remote theme plus generated data and Pages-safe resource overrides MIT

Blocked full-site templates

The selections below are complete starter repositories rather than interchangeable remote themes. They remain visible for migration compatibility and research, but generation is deliberately blocked until their required source trees, build contracts, and attribution files can be maintained as tested resource packs.

Theme selection Limitation Upstream license or status
alshedivat/al-folio Uses al_folio_core and a large pinned plugin and collection contract. MIT
poole/lanyon Requires its complete Poole layouts, includes, public assets, and pagination setup. MIT
zerostaticthemes/jekyll-serif-theme Requires company collections, data, layouts, images, and third-party asset credits. MIT; preserve upstream asset credits
CloudCannon/hydra-jekyll-template Requires its full marketing and blog source tree; upstream marks it legacy and unmaintained. MIT; legacy
emilbaehr/automatic-app-landing-page Requires device assets and application-store metadata. MIT
LeNPaul/Millennial Requires its blog layouts, data settings, feeds, Sass, and static assets. MIT

Project Pages receive a repository baseurl; user or organization Pages use the domain root. A custom domain produces a normalized hostname-only CNAME, but the domain must also be configured in the repository’s GitHub Pages settings. Agency sites show an email contact action unless a current Formspree form path is explicitly configured.


Utilizes:
The github-docs-cookiecutter depends on the following repositories for its documentation and sub-features.

  • cookiecutter-cookiecutter Generates cookiecutter template projects and is able to be queried by generated projects for autogenerated file updates.
  • Github docs via the cookiecutter-cookiecutter this project is used as a sub-template to generate documentation.
  • Nutri-Matic cookiecutter hooks and tools for documentation build. The nutrimatic package has become a .

Maintains:
The github-docs-cookiecutter is used to maintain documentation for the following projects.

Cookiecutter Projects:

Python Projects:

Ansible Projects:

  • jcook3701.docker Ansible Galaxy collection used to install docker packages.
  • jcook3701.flatpak Ansible Galaxy collection used to install flatpak packages.
  • jcook3701.pkgs Ansible Galaxy collection used to install system (Debian, Ubuntu, RHEL) packages.
  • jcook3701.source Ansible Galaxy collection used to install packages from source code.
  • jcook3701.snap Ansible Galaxy collection used to install snap packages.

🛠️ CI/CD Check List:

  • dependency-check
  • format-check
  • lint-check
  • security-audit
  • spellcheck
  • tests
  • typecheck

Usage Examples

Example: Pull from main branch.

  1. Pull Project with cookiecutter command:
    $ cookiecutter git@github.com:cookscodeinc/github-docs-cookiecutter.git
    

    Example: Pull from develop branch.

  2. Pull code from development branch while testing updates.
    $ cookiecutter git@github.com:cookscodeinc/github-docs-cookiecutter.git --checkout develop
    

Advance Examples

Note: The real intention of this project is to call it as a hook within other cookiecutter projects as shown below.
Explanation: ansible-galaxy-cookiecutter template utilizes nutri-matic hooks to pull both this documentation template along with sphinx-cookiecutter template into generated project $(PROJECT_ROOT)/docs/.

Utilization of nutri-matic is the optimal way of integrating this template in projects.


🌱 Getting Started

📚 Documentation

The github-docs-cookiecutter documentation is available at docs.

🤝 Contributing

If you’re interested in contributing to the github-docs-cookiecutter project:


🍹 Authors Notes

  1. This code currently works with cookiecutter (2.6) from PyPi repositories.

⚖️ License

Copyright (c) 2025-2026, Jared W. Cook

This project is licensed under the AGPL-3.0-or-later License.
See the LICENSE file for the full license text.

SPDX-License-Identifier: AGPL-3.0-or-later

Local development

With Docker and the Compose plugin installed, run from the repository root:

make -C docs/jekyll run

Open http://localhost:4000/github-docs-cookiecutter/. The preview uses Ruby 3.3 in a container, mounts the site source read-only, and reloads the browser when files change. No host Ruby is required. The container uses your local user and group IDs to read private checkouts without changing file permissions. The first image build installs the gems; the pinned remote theme requires network access. Existing Gemfile.lock dependencies are preserved. For a new site without a lockfile, gems are resolved inside the image.

Press Ctrl+C to stop the server, or use make -C docs/jekyll stop to remove its container and network. Stop one preview before starting another on the same ports. For native development with Ruby 3.3, use make -C docs/jekyll ruby-install and make -C docs/jekyll jekyll-serve.

Generator release preparation

The generator repository itself prepares a checksummed source archive from the exact production commit. The read-only Release Preparation workflow retains the archive, manifest and checksums; it does not publish a release.

From a clean numbered feature checkout with development dependencies installed:

export RELEASE_BASELINE="<verified published commit>"
export PUBLISHED_VERSION="<verified published version>"
RELEASE_OUTPUT="$(mktemp -d)/prepared" make release-prepare
RELEASE_OUTPUT="$(mktemp -d)/candidate" make package-source

Review the version patch before applying it. Version metadata in the generator, Makefile, generator input and Jekyll site is synchronized by exact selectors. Direct release, tag, push and version mutation targets are disabled. Publication requires a separate approved workflow.

☕ Support Me

If you enjoy this project, please consider buying me a coffee or making a code contribution.