|
1 | | -# Concepts |
2 | | - |
3 | | -::::{aside} |
4 | | -:::{glossary} |
5 | | -MyST Markdown |
6 | | -: MyST Markdown is a superset of Markdown that adds support for Sphinx-style directives and roles. |
7 | | -::: |
8 | | - |
9 | | -:::{glossary} |
10 | | -Jupyter Notebook |
11 | | -: Jupyter Notebook is an interactive computational environment that allows you to write and execute code in a notebook format. |
12 | | -::: |
13 | | - |
14 | | -:::{glossary} |
15 | | -pre-commit |
16 | | -: pre-commit is a tool that allows you to run checks on your code before you commit it. |
17 | | -::: |
18 | | - |
19 | | -:::{glossary} |
20 | | -GitHub Actions |
21 | | -: GitHub Actions is a CI/CD platform that allows you to automate your workflow. |
22 | | -::: |
23 | | -:::: |
24 | | - |
25 | | - |
26 | | -## How It Works |
27 | | -`afterpython` uses [MyST Document Engine] under the hood so you can write content in [MyST Markdown] and [Jupyter Notebook], then builds a project website using a [template] to display all your content in an organized way. |
| 1 | +[mystmd]: https://mystmd.org |
| 2 | +[commitizen]: https://github.com/commitizen-tools/commitizen |
| 3 | +[pre-commit]: https://github.com/pre-commit/pre-commit |
| 4 | +[ruff]: https://github.com/astral-sh/ruff |
28 | 5 |
|
| 6 | +# Concepts |
29 | 7 |
|
30 | 8 | ## afterpython/ Folder |
31 | | -aim to store everything python project related |
32 | | -provide a structured way |
33 | | - |
34 | | - |
35 | | -## Structure / Content Types |
36 | | -explain each of their definitions |
37 | | -- content |
38 | | - - doc |
39 | | - - blog |
40 | | - - tutorial |
41 | | - - example |
42 | | - - guide |
43 | | -- |
| 9 | +The `afterpython/` folder serves as a centralized location for both your project website content and maintenance tool configurations. It contains: |
| 10 | + |
| 11 | +**Content directories:** |
| 12 | +- `afterpython/doc/` - Documentation |
| 13 | +- `afterpython/blog/` - Blog posts |
| 14 | +- `afterpython/tutorial/` - Tutorials |
| 15 | +- `afterpython/example/` - Examples |
| 16 | +- `afterpython/guide/` - How-to Guides |
| 17 | + |
| 18 | +**Configuration files:** |
| 19 | +- `cz.toml` for [commitizen] |
| 20 | +- `ruff.toml` for [ruff] |
| 21 | +- `.pre-commit-config.yaml` for [pre-commit] |
| 22 | +- `authors.yml` for [mystmd] |
| 23 | +- `afterpython.toml` for `afterpython` itself |
| 24 | + |
| 25 | +**Purpose:** |
| 26 | + |
| 27 | +This structure serves two goals: |
| 28 | + |
| 29 | +1. **Declutter the root directory** - Keeps maintenance-related configuration files separate from package code, making the project structure cleaner |
| 30 | +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 |
| 31 | + |
| 32 | + |
| 33 | +--- |
| 34 | +## afterpython.toml |
| 35 | +`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: |
| 36 | + |
| 37 | +```toml |
| 38 | +[company] |
| 39 | +name = "Your Company Name" |
| 40 | +url = "https://your-company.com" |
| 41 | + |
| 42 | +[website] |
| 43 | +url = "https://your-project-website.com" |
| 44 | +``` |
| 45 | + |
| 46 | +--- |
| 47 | +## Content Types |
| 48 | +- **Documentation** (`afterpython/doc/`) - Conceptual explanations on how the project works |
| 49 | +- **Blog** (`afterpython/blog/`) - Project updates, announcements, and release notes |
| 50 | +- **Tutorials** (`afterpython/tutorial/`) - Step-by-step learning guides |
| 51 | +- **Examples** (`afterpython/example/`) - Real-world code examples/snippets |
| 52 | +- **Guides** (`afterpython/guide/`) - Task-oriented how-to instructions |
| 53 | +- **API Reference** (`afterpython/reference/`) - Auto-generated API documentation from docstrings |
0 commit comments