Skip to article frontmatterSkip to article content
Site not loading correctly?
See More

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

afterpython/ Folder

The afterpython/ folder serves as a centralized location for both your project website content and maintenance tool configurations. It contains:

Content directories:

Configuration files:

Purpose:

This structure serves two goals:

  1. Declutter the root directory - Keeps maintenance-related configuration files separate from package code, making the project structure cleaner

  2. 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 reference

Content Types