GeezerVison is showing github.com — Comparing v2.2.1...v2.2.2 · dschach/salesforce-trigger-framework
Permalink
base repository:
dschach/salesforce-trigger-framework
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
base:
v2.2.1
head repository:
dschach/salesforce-trigger-framework
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
compare:
v2.2.2
-
8
commits
-
33
files changed
-
4
contributors
Commits on Nov 12, 2026
-
docs(site): add markdown copies, llms.txt, and a markdown toolbar to …
…the site (#407)
The documentation site gets a markdown copy of each page, an llms.txt,
and a markdown toolbar at the top of each page, so that people and LLM
tools can read the documentation as markdown. All of it is built in the
deploy job from the release tag, so nothing generated is committed and
the live site always matches the release.
## Changes
- `scripts/build-markdown-site.mjs` (new) runs on the site folder after
the changelog steps. The pages from markdown files (the home page, the
deploy page, the changelog, and the sample handler page) copy their
source, with the links changed to the site. The class pages are
converted from their HTML with turndown and turndown-plugin-gfm:
signatures become Apex code blocks, the parameter tables become lists,
and the links to an anchor go to the HTML page, because a markdown file
has no heading ids. Each copy has the name of its page with `.md` in
place of `.html`, for example `deploy.md`.
- The script writes `llms.txt` in the form of llmstxt.org, with the
package summary, the install line of the release, the main pages, and an
Optional section for the changelog and the sample and test classes. The
script fails if a link in llms.txt has no file.
- The script adds a toolbar to each page, after the start of the page
content: Copy as Markdown, View as Markdown, and a menu with Copy URL to
Markdown, View llms.txt, and Copy URL to llms.txt. It also adds head
links to the markdown copy (`rel="alternate"`) and to llms.txt
(`rel="describedby"`). A page that has the toolbar already is skipped,
so a second run changes nothing.
- `doc-assets/markdown-tools/` (new) holds the toolbar script and
stylesheet. The script copies them to `assets/`; they are not ApexDox
assets. The toolbar loads the markdown with the page and copies inside
the click, with the old copy command first and the Clipboard API second,
because some browsers allow a clipboard write only inside the click.
- `deploy-site.yml` has a new step, "Add the markdown pages, llms.txt,
and the toolbar", before the upload.
- CONTRIBUTING.md tells how to preview the result on a copy of the site
folder.
- turndown and turndown-plugin-gfm are new devDependencies.
## Behavior notes
- The committed `docs/` folder does not change. Only the deployed site
gets the markdown pages, llms.txt, and the toolbar.
- llms.txt is at `/salesforce-trigger-framework/llms.txt`, which the
llmstxt.org form allows. A root robots.txt and a sitemap wait for the
search indexing work, because the host root is served from another
repository.
## Test plan
- Ran the script on a copy of `docs/` and read each markdown copy and
llms.txt.
- Opened the result in a local server: the toolbar shows on each page,
Copy as Markdown and the copy URL actions copy, and the view actions
open the markdown and llms.txt.
- Ran the script a second time on the same folder: no page changed.
- After the next release deploy: check that Safari and Firefox show the
`.md` files and llms.txt in the browser, and that GitHub Pages sends
them as UTF-8.
Co-authored-by: Claude AI <[email protected]>
Co-authored-by: Claude <[email protected]>
3 people
authored
Nov 12, 2026
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
build(site): add a local preview of the deployed site (#410)
Contributors can now build and serve a local copy of the documentation
site that shows what the live site shows after a deploy: the markdown
copies, llms.txt, the markdown toolbar, and the changelog headings with
ids. The preview and the deploy use the same build script, so they
cannot drift apart.
## Changes
- `scripts/build-site.mjs` (new) runs the deploy steps on a site folder,
in order: it rebuilds the changelog page from CHANGELOG.md, adds the
heading ids of the changelog page, and runs
`scripts/build-markdown-site.mjs`.
- The Deploy site workflow runs `node scripts/build-site.mjs docs` in 1
step, "Build the site from the tag's docs/", in place of the 3 steps
that it had. The deployed site does not change.
- `scripts/preview-site.mjs` (new) and the npm script `site:preview`
copy `docs/` to a folder in the temporary folder of the computer, run
the build script on the copy, and serve it at
http://localhost:4000/salesforce-trigger-framework/, the same path as
the live site. The server sends `text/markdown` for the `.md` files, and
it serves no file outside the copy. `PORT` sets another port, and
`--build-only` builds the copy and does not start the server.
- CONTRIBUTING.md has a new "Preview the Live Site" section with the
steps, and a row for `npm run site:preview` in the npm scripts table.
The old one-line preview command is removed.
## Behavior notes
- The preview does not change `docs/`.
- The preview uses the working copy, not a release tag. So the changelog
has no entry for the next release until the release pull request merges.
- The toolbar loads the markdown with `fetch`, so the preview must be
opened from the server, not as a file.
## Test plan
- Ran `npm run site:preview -- --build-only`: it wrote the 9 markdown
pages and llms.txt, and `docs/` did not change.
- Served the preview and requested the pages, a `.md` file, llms.txt,
and the toolbar script: each had the correct media type. A missing page
and a path outside the site got a 404 or a redirect to the site path.
- Opened the class page of TriggerHandler in a browser from the preview:
the toolbar showed, and Copy as Markdown copied.
- Built a copy with `node scripts/build-site.mjs`, as the workflow does:
it had the same files as the preview.
- Prettier and actionlint pass.
Co-authored-by: Claude AI <[email protected]>
Co-authored-by: Claude <[email protected]>
3 people
authored
Nov 12, 2026
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
docs(apexdoc): add since tags with release versions to all members (#411
)
Give every member in the Apex classes a `@since` tag whose value is the release version that first included it, so that the generated docs show when each method, property, and class came into the package.
## Changes
- Version 2 members: add `@since` to the 70 members that are new in version 2 and had no `@since` tag. Most are private fields, inner-class members of `BypassRegistry` and `LoopCounterRegistry`, and test members. No `@author` tags are added to them.
- Version 1 members: add `@since` to the 113 members that are from version 1 and had no `@since` tag. No `@author` tags are added to them.
- Dates to versions: replace the date in each of the 61 existing `@since` tags, in the member and class comments, with a release version. A tag with a change note, such as `Return the handler, so that you can chain calls`, gets the release of that change and keeps its text.
- Inner classes: add the David Schach `@author` tag of the class comments to the 8 inner classes: `BypassRegistry`, `LoopCounterRegistry`, `LoopCounter`, and `TriggerHandlerException` in `TriggerHandler`, `PermissionHandler` in `TriggerHandlerBypassPermissionTest`, and `TestHandlerException`, `TestHandler`, and `UntypedHandler` in `TriggerHandlerTest`. The `@since` values of 7 of them already match the first release of each class. `LoopCounter` now has 2 `@since` tags: 1.0.0, the release that added it as `LoopCount`, and 1.5.1, the release that renamed it to `LoopCounter`. Each tag has a note that says what happened.
- Bypass permission test: add the David Schach `@author` tag to the class comment of `TriggerHandlerBypassPermissionTest`, which had none. Its `@since 2.1.0` is the release that added the class, so it stays.
- Test handler overrides: add an ApexDoc comment with `@since` to the 9 overrides in `TriggerHandlerTest.TestHandler`, which had no comment.
- Sample README: the pre-commit hook copied the new tags of `AccountSampleTriggerHandler` into `sample-handler/README.md`.
## Behavior notes
Only ApexDoc comments change. No code and no signature changes. The only new `@author` tags are on the 8 inner classes and the class comment of `TriggerHandlerBypassPermissionTest`, and no other `@author` tag is added, removed, or changed. The `docs/` site is not regenerated in this PR.
Each version comes from git history: the first release tag whose copy of the file holds the member, by name, parameter types, and enclosing class. A renamed member counts as new in the release that renamed it, so `doShowDebug` and `doShowLimits` get the release of the rename. `LoopCounter` is the exception: it has a tag for the release that added it and a tag for the rename. `getHandlerName()` gets the release in which it became protected.
The Kevin OHara line and the David Schach line in the class comments of `TriggerHandler` and `TriggerHandlerTest` now have the same `@since` value, because both dates are before the first release.
## Test plan
- `npm run prettier:verify` passes.
- `node scripts/sync-sample-code.mjs --check` passes.
- A scan of all 5 classes finds no member without `@since` and no `@since` value that is not a release version.
- Compared with `main`, the diff adds an `@author` line only to the 8 inner classes and to the class comment of `TriggerHandlerBypassPermissionTest`, and it removes none.
- The Apex tests run in CI.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu
Browse the repository at this point in the history
-
docs(site): regenerate the documentation site (#412)
The documentation site is generated again before the next release, so the live site shows the ApexDoc changes of #411.
## Changes
- `npm run prepareApexDox` updated the pages that come from the README, the changelog, and the sample README, and it drew the 2 Mermaid diagrams of the home page again.
- ApexDox generated `docs/` again. The class pages now show the release versions in the `@since` tags, for example `1.1.0 Add andFinally()` in place of a date, and the `@author` tags of the inner classes.
- `npm run prettier` formatted the generated pages.
## Behavior notes
The live site changes only with the next release, which deploys `docs/` from the release tag and adds the markdown copies, llms.txt, and the toolbar.
## Test plan
- `npm run prettier:verify` passes.
- `npm run site:preview -- --build-only` builds the deployed site from this `docs/`: it writes the 9 markdown pages and llms.txt.
- The `TriggerHandler` page lists release versions, not dates, under Since.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.2.1...v2.2.2
Uh oh!
There was an error while loading. Please reload this page.
|