Skip to content

[DOCS, FEAT, FIX] v2.0.0 stage 6: English docs rebuild and fixes found while writing them - #99

Merged
bnbong merged 1 commit into
devfrom
feat/v2.0.0
Dec 4, 2026
Merged

bnbong merged 1 commit into
devfrom
feat/v2.0.0

Conversation

@bnbong

@bnbong bnbong commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Requesting Merging

Description

Stage 6 of 2.0.0. Rebuilds the English documentation as Start, Learn, How-to, Reference and Contributing. Every command, output and code excerpt in the new pages was captured from a real run of the current code, and running them surfaced product problems that this PR also fixes.

Type of Change

  • BUG FIX
  • ADDING NEW TEMPLATE
  • FEATURE ADDED/UPDATED
  • HOTFIX
  • DELETING UNNECESSARY FEATURES
  • DOCUMENTATION & DEVOPS
  • Etc..

Test Environment

  • macOS, Python 3.12.4, Node 22, Docker 24
  • Full suite: 6471 passed, 36 skipped, coverage 98.25%; diff coverage against dev 96%
  • C locale, encoding-warning and Windows-simulation runs pass
  • Pyodide under Node against the CLI: 26 of 26 option combinations equal
  • mkdocs build --strict and the built-site check pass for all seven languages
  • black, isort, mypy and pre-commit pass
  • Docs samples: real runs, including docker compose up for the production level and a PostgreSQL container for the database switch

Major Changes

Documentation

  • 23 English pages (was 29). The Learn track follows one project, shop, from hello to production and teaches the FastAPI concept at each step.
  • Nine example images under docs/img/2.0/, shared by every locale.
  • Reference tables and --help texts are generated by scripts/docs_blocks.py from the catalog and the CLI; a test fails when a block is stale.
  • Old page addresses redirect through an MkDocs hook; no new dependency.
  • Removed sections that described configuration files and environment variables no code reads.
  • The six locale trees are not changed here: new paths fall back to English until they are translated.

CLI

  • runserver exits with the server's status and a one-line message. Error tracebacks no longer show local variables, which could print environment variables and the secrets in them.
  • init prints the summary, the files it created and the next steps; internal steps appear only with fastkit --debug init, and --debug now takes effect.
  • init and the web generator refuse a project name that equals one of the project's dependencies or development tools.
  • startdemo -y asks only for the project name; list-features lists the deployment options; tables show package extras.

Generated projects

  • single-file, layered and domain ship pytest-cov; pytest and coverage settings live in pyproject.toml, with no pytest.ini and no setup.cfg.
  • addroute writes routes in the style of the example items routes and, in layered projects, adds the dependency to src/api/deps.py.
  • Structured logging writes one access line per request with the request id; a client X-Request-ID is accepted only as a short plain token.
  • fastapi-sqlmodel creates its tables with Alembic by default; ruff is installed wherever it is configured; the domain template's tests are fully typed.

CI

  • The web-generator workflow also runs for changes under docs/**, README.md and CHANGELOG.md, so a docs-only PR gets a strict build; the docs deploy uses --strict.

Screenshots (optional)

Etc

  • Not run: Windows commands shown in the docs; installs from PyPI (2.0.0 is not published, a local wheel was used).
  • Known limit: requests answered by an outer middleware (a CORS preflight, a rate-limit 429) have no access line in structured logs.

@bnbong bnbong self-assigned this Dec 4, 2026
@bnbong bnbong added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request fix Fix or improve source codes labels Dec 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T04:53:49.452371Z e802ad2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the template Add or editing a FastAPI template label Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

✅ Template Inspection Passed

All changed templates have been validated successfully.


Last updated: 2026-12-04T04:52:07.673Z

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bnbong
bnbong merged commit 44942b4 into dev Dec 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request fix Fix or improve source codes template Add or editing a FastAPI template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant