Skip to content

App name: the documentation and the website read from the values - #1917

Merged
vmillet-dev merged 1 commit into
dev/1.3.3from
app-name-docs
Dec 5, 2026
Merged

vmillet-dev merged 1 commit into
dev/1.3.3from
app-name-docs

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1896 — step 8, the last: the documentation and the site read the application's names from the root Cargo.toml, as the code does since the previous steps.

What changes

  • docs/content writes {{app}}, {{slug}}, {{identifier}}, {{extension}}, {{site}} and {{repository}} where it spelled them. engine::docs fills them (from brand and Cargo's repository) before a page is read; website/scripts/docs.mjs fills them the same way before the site is built. docs/content/README.md lists them for whoever writes a page.
  • The site reads the root manifest, as it already read the version: docs.mjs also writes src/app/core/generated/names.ts (the name, the slug, the address, the repository; ignored by git, like the generated pages). Titles, texts, social tags, structured data, the header and footer, the canonical address (SITE_URL and its define are gone) and the release file names of the download page read it. fetch-release.mjs reads the repository from Cargo.toml.
  • website.yml names its deploy target <owner>/<slug>-website and its commit from the values; ci.yml's e2e job names the binary from the slug.
  • Made neutral, as nobody outside reads them: the site's theme key in localStorage (site-theme; a visitor who had chosen a theme sees the system's once), the nginx sample of the home page's scene (example.org), and the static <title> of index.html (each page writes its own; finish-build.mjs refuses a page without one).
  • By hand at a rename, as the ticket says: website/package.json (name, description) and the prose.
  • scripts/names.mjs gains repository(); D36, « The application's names », « The website » and CLAUDE.md say where the docs and the site read the names.

Checks run

  • cargo test -p engine --lib docs (25, the new a_page_says_the_application_s_names_and_no_placeholder_of_them included), cargo test -p ui docs_quotes (3), cargo clippy -p engine --all-targets --all-features -- -D warnings, cargo fmt --all --check.
  • node --test "scripts/*.test.mjs" (81), node scripts/architecture-links.mjs.
  • website/: npm run test:scripts (39), npm test (34), npm run lint, and npm run build: 29 pages prerendered, every check of finish-build.mjs passes but the download links, which the sandbox's proxy answers 401 (curl too); the 9 links are names of assets of the v1.3.1 release, compared one by one with the release's list.

The sweep (throwaway, not committed)

DevNotes and devnotes, in any case, outside the prose files of step 8 (README.md, CONTRIBUTING.md, docs/architecture/, docs/security.md, docs/releasing.md, CLAUDE.md, .claude/, docs/recette/, docs/release-notes/, CHANGELOG.md):

File Found Why it stays
Cargo.toml the six values, and repository (devnotes-rs) the home of the values
crates/app/Cargo.toml, packaging/devnotes.desktop, packaging/copyright, icons/devnotes.svg, tests/script_host.rs, tests/windows_resources.rs the binary, packages, .desktop, Upstream-Name, CARGO_BIN_EXE_devnotes step 6: Cargo and the files keep them literal; tests/names.rs holds them to the values
14 Rust files, ci.yml, e2e/ DEVNOTES_* variables the prefix stays, your choice
ci.yml sonar.projectKey=devnotes-rust the SonarCloud project's key: outside the repository, like the GitHub repositories (step 12)
website/package.json, package-lock.json name, description, repository by hand at a rename (step 8)
website/src/app/core/release-files.json the files of v1.1.0 data written by fetch-release.mjs from the latest release at each build

Nothing else, in any case.

The rename rehearsal (throwaway, not committed)

Cargo.toml's six values changed (Quill Pad, @someone, quillpad, org.quillpad.app, quill, https://quillpad.example), the names of step 6 edited by hand and git mv-ed, then:

  • cargo test -p brand -p app --test names: green (2). cargo build -p app writes target/debug/quillpad.
  • engine: docs 25, layout 3, user_agent 2, green. ui: state::transfer 19 (the export's name quillpad-<stamp>.quill, its filter), docs_quotes 3, http::tests 42, green.
  • The binary on a fresh profile (Xvfb): the title bar and the gate say « Quill Pad » (« Choose a passphrase. Quill Pad will ask for it once at every launch. »), the log is logs/quillpad_rCURRENT.log, its lines' target quillpad::logging. The tray could not be shown: no D-Bus session in the sandbox.
  • The site (npm run docs && ng build): 29 pages prerendered, all 29 say « Quill Pad »; titles « Quill Pad documentation », « Download Quill Pad 1.1.0 for Windows and Linux »; canonical https://quillpad.example/…; release files quillpad_1.1.0_x64-setup.exe, quillpad-1.1.0.x86_64.rpm… The only old name left in the built pages is the repository's address, devnotes-rs, which changes with the GitHub repository (step 12).
  • The same sweep on the renamed tree finds only the DEVNOTES_* variables, the repository's address, the SonarCloud key, website/package.json and the release data.

Everything undone (git reset --hard to the commit), nothing of it pushed.


Generated by Claude Code

@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Dec 5, 2026 — with Claude
@vmillet-dev vmillet-dev changed the title Docs and site: the application's names read from one place App name: the documentation and the website read from the values Dec 5, 2026
The pages of docs/content write {{app}}, {{slug}}, {{identifier}},
{{extension}}, {{site}} and {{repository}}, filled by engine::docs and by
website/scripts/docs.mjs, which also writes the site's
core/generated/names.ts: its titles, texts, canonical address, release
file names and repository read it. fetch-release.mjs and website.yml read
the repository and the deploy target from the root manifest; the CI's e2e
job names the binary from the slug. The site's theme key and the scene's
nginx sample carry no name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Base automatically changed from architecture-tidy to dev/1.3.3 December 5, 2026 12:00
@vmillet-dev
vmillet-dev merged commit 332a7aa into dev/1.3.3 Dec 5, 2026
11 checks passed
@vmillet-dev
vmillet-dev deleted the app-name-docs branch December 5, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants