From 71e157101ffbc07046beb6b0240676e518db9851 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 10:43:19 +0000 Subject: [PATCH] Follow the rename to docs-insights: base path /docs-insights/ The repository abap2UI5/insights is now abap2UI5/docs-insights, and GitHub Pages publishes the site at https://abap2ui5.github.io/docs-insights/. The build still used base "/insights/", so every stylesheet, font, image and link of the live site pointed at /insights/, which is 404 now. - astro.config.mjs: base "/docs-insights/" - the essays' sister links and diagram paths, the @font-face URLs in global.css, the route comment, test/site.test.mjs (BASE, the diagram regex, the canonical and the search feed URL), AGENTS.md and README.md follow the new base - links to the renamed sites (docs-manager, browser-playground) rewritten scripts/migrate.mjs, the one-off import kept for the record, keeps the /insights/ it wrote at the time. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014YZFmEB7KEQGghQBifvWjp --- .github/workflows/pages.yml | 2 +- AGENTS.md | 17 +++++++++------- README.md | 12 +++++------ astro.config.mjs | 4 ++-- package.json | 2 +- public/fonts/NOTICE-italic.txt | 2 +- src/content/essays/01-the-cost-of-a-screen.md | 10 +++++----- .../essays/02-somewhere-on-the-way-to-ui5.md | 2 +- .../03-one-class-no-programming-model.md | 6 +++--- .../essays/04-no-annotation-in-between.md | 4 ++-- .../essays/05-a-classrun-for-the-browser.md | 2 +- src/content/essays/06-ui5-over-the-wire.md | 2 +- .../essays/07-one-click-one-request.md | 10 +++++----- .../essays/08-the-frontend-knows-nothing.md | 4 ++-- .../essays/09-one-handler-for-every-app.md | 6 +++--- .../essays/10-only-the-changed-part.md | 4 ++-- .../11-a-new-instance-on-every-request.md | 2 +- .../essays/12-swapping-the-view-at-runtime.md | 4 ++-- .../13-where-the-selection-screen-went.md | 4 ++-- .../essays/14-four-verbs-every-control.md | 4 ++-- .../15-where-your-own-javascript-goes.md | 2 +- .../essays/16-no-build-no-deploy-no-cache.md | 10 +++++----- .../essays/17-what-the-client-can-do.md | 2 +- .../essays/18-call-screen-leave-screen.md | 6 +++--- src/content/essays/19-where-the-url-went.md | 14 ++++++------- src/content/essays/20-where-f4-went.md | 4 ++-- src/content/essays/22-where-the-luw-ends.md | 20 +++++++++---------- .../23-the-lock-is-gone-by-the-next-click.md | 8 ++++---- .../24-nothing-runs-between-two-clicks.md | 6 +++--- .../essays/25-who-may-start-which-app.md | 6 +++--- .../26-100-rows-four-hours-one-request.md | 10 +++++----- .../essays/27-abap-unit-for-a-screen.md | 2 +- .../essays/28-when-one-class-is-not-enough.md | 4 ++-- .../essays/29-a-tile-like-any-other.md | 4 ++-- src/content/essays/30-from-its-to-abap2ui5.md | 4 ++-- .../31-one-codebase-702-to-abap-cloud.md | 6 +++--- ...2-cloud-ready-is-a-property-of-your-app.md | 2 +- .../essays/33-when-the-api-is-not-released.md | 6 +++--- .../essays/34-on-stack-or-side-by-side.md | 8 ++++---- src/content/essays/35-one-app-many-systems.md | 10 +++++----- src/content/essays/36-rap-or-abap2ui5.md | 18 ++++++++--------- .../essays/37-freestyle-or-abap2ui5.md | 16 +++++++-------- .../essays/38-what-the-client-can-send.md | 8 ++++---- src/content/essays/39-where-ui5-comes-from.md | 10 +++++----- src/content/essays/40-how-many-users.md | 12 +++++------ .../essays/41-upgrading-the-framework.md | 8 ++++---- src/content/essays/42-written-for-agents.md | 2 +- src/pages/[slug].astro | 2 +- src/styles/global.css | 4 ++-- test/site.test.mjs | 10 +++++----- 50 files changed, 165 insertions(+), 162 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 16ead68..59bf00c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,5 @@ # Build, test and publish the site to GitHub Pages at -# https://abap2ui5.github.io/insights/. +# https://abap2ui5.github.io/docs-insights/. # # On a pull request it builds and tests only. On main it also deploys. # diff --git a/AGENTS.md b/AGENTS.md index 9d524ba..c6087ae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ abap2UI5 Insights: short technical essays about one idea - what happens when the ABAP server sends the *screen* instead of only the data - published at -https://abap2ui5.github.io/insights/ by GitHub Pages. Written for developers +https://abap2ui5.github.io/docs-insights/ by GitHub Pages. Written for developers and architects: the "why it works like this". A standalone site of the abap2UI5 family - its own repository, build and deployment - and nothing in it depends on another repository at build time. @@ -10,6 +10,9 @@ depends on another repository at build time. The essays lived in the manual (abap2UI5/docs, `docs/advanced/insights/`) until 2026-10-31. Since then this repository is their source; the manual keeps a redirect stub for every old address and one sidebar row leading here. +Until 2026-11-17 the repository was abap2UI5/insights and the site was at +`/insights/`; the base path is now `/docs-insights/` (`astro.config.mjs`), +and every local link, the font URLs and the tests use it. ## Layout @@ -33,7 +36,7 @@ keeps a redirect stub for every old address and one sidebar row leading here. ```bash npm ci -npm run dev # dev server, http://localhost:4321/insights/ +npm run dev # dev server, http://localhost:4321/docs-insights/ npm run build # dist/ npm test # the tests, against dist/ - build first npm run check # build + test, what CI runs @@ -42,7 +45,7 @@ npm run report:sentences # sentences over 35 words; a report, not a test ## Rules -- **A slug is an address.** `NN-slug.md` is published at `/insights/NN-slug/`, +- **A slug is an address.** `NN-slug.md` is published at `/docs-insights/NN-slug/`, and abap2UI5/docs redirects every old address (`/docs/advanced/insights/NN-slug`) to exactly that. `ADDRESSES` in `test/site.test.mjs` lists them; a build that loses one fails. Rename an essay @@ -53,19 +56,19 @@ npm run report:sentences # sentences over 35 words; a report, not a test carries the same number (a test holds both). The index, previous/next and the feed follow it. A new essay therefore shifts the essays after it - which changes their slugs, so do it as one change across the family: rename the - files, rewrite the links (`[#N](/insights/NN-slug/)`, link text and target + files, rewrite the links (`[#N](/docs-insights/NN-slug/)`, link text and target together), add every old slug to `src/lib/moved.ts`, update `ADDRESSES`, and repoint the docs' stubs in `docs/public/advanced/insights/` and any link in the sister repositories. Renumbering is expensive on purpose: add essays in batches, not one at a time. - **A part is data.** Its id is in the frontmatter, its title and lead in `src/lib/parts.ts`. A new part is one entry there plus the id in `PART_IDS`. - **The case for using it is not made here.** Cost, who runs it, what an - organization keeps, the decision - that is https://abap2ui5.github.io/why/. An essay links it, it does not repeat it. -- **Links.** A sister essay: `/insights/NN-slug/`. The manual and every other + organization keeps, the decision - that is https://abap2ui5.github.io/docs-manager/. An essay links it, it does not repeat it. +- **Links.** A sister essay: `/docs-insights/NN-slug/`. The manual and every other site of the family: absolute (`https://abap2ui5.github.io/docs/...`). No VitePress syntax - `{target="_self"}` and `:::` containers render as text here; a test holds the first. A diagram goes to `public/` and is referenced - as `/insights/name.svg`. + as `/docs-insights/name.svg`. - **A diagram has a dark variant.** The SVGs share one light palette, and each carries a `