afterpython/ Folder¶
The afterpython/ folder serves as a centralized location for both your project website content and maintenance tool configurations. It contains:
Content directories:
afterpython/doc/- Documentationafterpython/blog/- Blog postsafterpython/tutorial/- Tutorialsafterpython/example/- Examplesafterpython/guide/- How-to Guides
Configuration files:
cz.tomlfor commitizenruff.tomlfor ruff.pre-commit-config.yamlfor pre-commitauthors.ymlfor mystmdafterpython.tomlforafterpythonitself
Purpose:
This structure serves two goals:
Declutter the root directory - Keeps maintenance-related configuration files separate from package code, making the project structure cleaner
Provide sane defaults - Comes pre-configured with sensible defaults for common maintenance tools like commitizen, pre-commit, and ruff, so you can start using them immediately
afterpython.toml¶
afterpython.toml is a configuration file for afterpython. Think of it as an extension of pyproject.toml, storing extra information about your project such as company name, company URL, project website URL, etc. Currently it only supports the following fields:
[company]
name = "Your Company Name"
url = "https://your-company.com"
[website]
url = "https://your-project-website.com"
favicon = "favicon.svg"
logo = "logo.svg"
logo_dark = "logo.svg"
thumbnail = "thumbnail.png"
api_reference = false # set to true to enable the pdoc-generated API referenceContent Types¶
Documentation (
afterpython/doc/) - Conceptual explanations on how the project worksBlog (
afterpython/blog/) - Project updates, announcements, and release notesTutorials (
afterpython/tutorial/) - Step-by-step learning guidesExamples (
afterpython/example/) - Real-world code examples/snippetsGuides (
afterpython/guide/) - Task-oriented how-to instructionsAPI Reference (
afterpython/reference/) - Auto-generated API documentation from docstrings