Skip to content

Rebuild documentation and READMEs in chapter layout#106

Merged
JE-Chen merged 1 commit intomainfrom
dev
Apr 28, 2026
Merged

Rebuild documentation and READMEs in chapter layout#106
JE-Chen merged 1 commit intomainfrom
dev

Conversation

@JE-Chen
Copy link
Copy Markdown
Member

@JE-Chen JE-Chen commented Apr 28, 2026

Summary

Rebuild the Sphinx manual and the three READMEs (root + Traditional Chinese + Simplified Chinese) into a chapter-organised layout that mirrors the WebRunner reference structure, and add per-feature pages for everything shipped on the recent multi-protocol / observability / MCP wave.

Sphinx manual (En + Zh, 70 rst files total)

  • Chapter 1 — Getting Started: installation (with optional extras matrix), getting_started (with parameter-resolver + assertion examples), create_project.
  • Chapter 2 — Core API: architecture (with mermaid flow), start_test / prepare_env, locust environment.
  • Chapter 3 — Actions: action_executor (full LD_* surface), parameter_resolver, scenarios, assertions, callback, package_manager.
  • Chapter 4 — User Templates: HTTP / FastHttp, WebSocket, gRPC, MQTT, raw TCP/UDP.
  • Chapter 5 — Reporting & Observability: six report formats, Prometheus / InfluxDB / OpenTelemetry exporters, test record store.
  • Chapter 6 — Orchestration: distributed master/worker.
  • Chapter 7 — Recording & Data: HAR record/replay, SQLite persistence.
  • Chapter 8 — Tooling: CLI subcommands, hardened control socket (token / framing / TLS), exception hierarchy.
  • Chapter 9 — Integrations: GUI (with stats panel + JA/KO translations), MCP server for Claude.
  • Chapter 10 — Reference: auto-generated Sphinx autosummary tree.

conf.py now enables autodoc / autosummary / autosectionlabel / napoleon / mermaid and lazy-mocks every optional runtime dep so the RTD build does not need them installed. docs/requirements.txt gains sphinxcontrib-mermaid. The stale scheduler/ doc directory is removed (LoadDensity has no scheduler).

READMEs

Rewritten into the WebRunner-style layout: badge row (PyPI / Python / License / RTD), language switchers, full Table of Contents, Highlights, Installation with extras matrix, ASCII architecture diagram, Quick Start, Core API, Action Executor with LD_* table, per-protocol User Templates, Parameter Resolver, Scenario Modes, Assertions & Extractors, six report formats, three exporters, distributed runners, HAR import, SQLite persistence, MCP server, hardened control socket, GUI, CLI usage, Test Record, Exception hierarchy, Logging, Supported Platforms, License.

Test plan

  • python -c "import importlib.util; spec = importlib.util.spec_from_file_location('conf', 'docs/source/conf.py'); m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m); print(m.project)" loads the new conf.py cleanly.
  • pytest test/ — 84 passed.
  • ReadTheDocs build of the new chapter layout green.

Reorganise the Sphinx manual into a 10-chapter structure that mirrors
the WebRunner reference layout (Getting Started, Core API, Actions,
User Templates, Reporting, Orchestration, Recording & Data, Tooling,
Integrations, Reference) and add per-feature pages for everything
shipped on the recent feature wave:

- New English + Traditional Chinese pages for architecture, start_test
  / prepare_env, locust environment, action executor, parameter
  resolver, scenario modes, assertions, HTTP / WebSocket / gRPC / MQTT
  / socket users, metrics exporters, test record store, distributed
  master/worker, HAR import, SQLite persistence, MCP server, project
  scaffolding, exception hierarchy, and the API reference index.
- Refresh installation, getting_started, cli, socket_server,
  generate_report, and gui pages so they cover the new extras, the
  CLI subcommand surface, the hardened control socket, all six report
  formats, and the live stats panel + JA/KO translations.
- Drop the stale scheduler doc directories (LoadDensity has no
  scheduler; the page never matched real executor commands).
- Upgrade conf.py to enable autodoc / autosummary / autosectionlabel /
  napoleon / mermaid, lazy-mock the optional runtime deps, and bring
  copyright forward; add sphinxcontrib-mermaid to docs/requirements.

Rewrite the three READMEs (root, Traditional Chinese, Simplified
Chinese) into the WebRunner-style layout: badge row, language
switcher, full Table of Contents, Highlights, Installation (with
extras matrix), Architecture diagram, Quick Start, Core API,
Action Executor, User Templates per protocol, Parameter Resolver,
Scenario Modes, Assertions & Extractors, Reports, Observability,
Distributed runners, HAR record/replay, SQLite persistence, MCP
server, Hardened Control Socket, GUI, CLI Usage, Test Record,
Exception Handling, Logging, Supported Platforms, License.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud
Copy link
Copy Markdown

@JE-Chen JE-Chen merged commit be4f0ea into main Apr 28, 2026
14 checks passed
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.

1 participant