Skip to content

docs: comprehensive narrative documentation#7

Merged
ztane merged 2 commits into
masterfrom
docs/narrative-guide
Jun 16, 2026
Merged

docs: comprehensive narrative documentation#7
ztane merged 2 commits into
masterfrom
docs/narrative-guide

Conversation

@ztane

@ztane ztane commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Comprehensive narrative documentation for the Tet framework, grounded in the actual source APIs.

New guides (previously undocumented subsystems)

  • Services / Dependency Injectiontet.services, request-scoped services, autowired, ServiceViews.
  • Request & Response — the extended request/response surface and how the request is augmented (i18n helpers).
  • Views & Controllers — Tet's view_config, class-based controllers, the expose decorator.
  • Viewlets — composable template fragments and the before-render event.
  • Templating (Tonnikala) — enabling the renderer and the $/${...}/$literal syntax.
  • Internationalization (i18n)configure_i18n, request.translate/pluralize, template globals.
  • Static assets — cache-breaking static views.
  • Decoratorsdeprecated and reify_attr.

Audited & corrected existing pages

Verified configuration, json, sqlalchemy, security, utilities, and testing against the real code. utilities and testing were largely rewritten — the originals documented many APIs that don't exist. Refreshed the introduction (0.5.0 / Python 3.8+) and reorganized the narrative index into logical sections.

Housekeeping

  • Normalized RST heading underlines, fixed a malformed i18n table, and switched intentionally-broken XSS-demo code-blocks off the HTML lexer.
  • sphinx-build completes with no warnings/errors for the narrative and tutorial docs.

Scope

Documents the framework as it exists on master. The auth/MFA security subsystem (PR #6) will be documented once it merges.

Add narrative guides for the previously-undocumented subsystems: services
(dependency injection), request/response, views & controllers, viewlets,
Tonnikala templating, i18n, static assets, and decorators. Each page is
grounded in the actual source APIs.

Audit and correct the existing narrative pages (configuration, json,
sqlalchemy, security, utilities, testing) against the real code -- utilities
and testing were largely rewritten as the originals documented many
nonexistent APIs. Refresh the introduction (0.5.0 / Python 3.8+) and
reorganize the narrative index into logical sections.

Normalize RST heading underlines and fix an i18n table / XSS-demo code-block
so the Sphinx build is warning-free for the narrative and tutorial docs.
Add the rstcheck hook (pinned v6.2.5, rstcheck[sphinx,toml]) to validate RST.
Configure [tool.rstcheck] to ignore Sphinx autodoc directives (used in the
auto-generated docs/api stubs) and report at WARNING level. Fix a genuine
error it caught: a 'def __getitem__' example in views.rst was written as
'class __getitem__'.
@ztane ztane requested a review from mikkojala June 16, 2026 08:14

@mikkojala mikkojala left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ztane ztane merged commit 58e4eb5 into master Jun 16, 2026
8 checks passed
@ztane ztane deleted the docs/narrative-guide branch June 16, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants