GeezerVison is showing github.com — docs(site): refresh the documentation site by dschach · Pull Request #397 · dschach/salesforce-trigger-framework
Conversation
dschach
commented
Nov 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This pull request refreshes the documentation site in docs/ and fixes 3 problems in how the site is built and shown. The class pages and the home page show the current framework, the links to the source code point to each file once, and the links of the table of contents jump to headings that stay visible.
Changes
Documentation site:
-
The class pages show the bypass permission, the hasBypassPermission() method, and the hideAllDebug() and showAllDebug() methods, with their ApexDoc.
-
A new page documents TriggerHandlerBypassPermissionTest, and the navigation of every page links to it.
-
The home page shows the current README, with the How run() Works section, and both Mermaid diagrams are drawn as inline SVG.
-
The sample page is built from the sample handler README.
-
The home, changelog, deploy, and sample pages are regenerated with the prepareApexDox script, so each heading has an id.
Build and styling:
-
apexdox.yml sets the source URL to the repository root.
-
The new script scripts/add-heading-ids.mjs adds the heading ids, and prepareApexDox.sh runs it after each marked step.
-
The stylesheet gives each heading with an id a scroll margin, so a table of contents link does not leave its heading under the sticky scoping panel.
-
The deploy workflow runs add-heading-ids.mjs on the changelog page after it rebuilds the page from the release tag, because marked writes no heading ids.
Behavior notes
-
The live site changes only with a release, because the deploy workflow publishes it from each release tag.
-
The deploy rebuilds the changelog page content from the release tag, and now adds its heading ids, so the deployed page keeps the same ids as the committed page.
-
Before the next release, Pages must use GitHub Actions as its source.
Test plan
-
Every link in the changed HTML pages was checked: 219 in-page anchors, 254 links to repository files, and 207 local links resolve.
-
No page has a doubled source path, a local machine path, or a duplicate id.
-
The regenerated home, changelog, deploy, and sample pages differ from their previous versions only by ids and line breaks.
-
Clicking a table of contents link on the home page shows its heading.
-
The deploy steps were run on a copy of the changelog page with a test release added to CHANGELOG.md: all 80 committed heading ids were present after the rebuild, and no heading was left without an id.
-
actionlint and the Prettier check pass.
BEGIN_NESTED_COMMIT
fix(apexdox): link each source file from the repository root
ApexDox added the path of each file to the source URL, so the source links repeated the folder. Both source URLs now end at the repository root, so each link points to its file once.
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix(apexdox): add ids to the headings of the site pages
marked 18 writes headings without ids, so the links of the table of contents did not jump to their headings. The new script adds GitHub-style ids to the headings of the home, changelog, deploy, and sample pages.
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix(site): keep the headings below the sticky panel
A table of contents link scrolled its heading to the top of the window, where the sticky scoping panel covered it. Each heading with an id now has a scroll margin of 80 pixels, so the heading shows after the jump.
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix(site): add heading ids to the deployed changelog page
The deploy workflow rebuilds the changelog page with marked from the release tag, so the deployed page lost its heading ids. The deploy now adds the ids after the rebuild.
END_NESTED_COMMIT
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This commit regenerates the documentation site in docs/ from the current Apex classes, the README, and the sample handler README, so the site shows the changes made since the last refresh. No Apex code changes.
## Changes
### Documentation site
- The class pages show the bypass permission, the `hasBypassPermission()` method, and the `hideAllDebug()` and `showAllDebug()` methods, with their ApexDoc.
- A new page documents `TriggerHandlerBypassPermissionTest`, and the navigation of every page links to it.
- The home page shows the current README, with the How run() Works section, and both Mermaid diagrams are drawn as inline SVG.
- The sample page is built from the sample handler README.
### ApexDox input
- `prepareApexDox.sh` runs `scripts/render-mermaid.mjs` on the home page, so the Mermaid blocks appear as SVG instead of code. The script needs Google Chrome.
## Behavior notes
- The changelog page content is not rebuilt here. The deploy workflow rebuilds it from the release tag.
- The live site does not change until the next release, because the workflow deploys the site from each release tag.
## Test plan
- Each regenerated page was checked for local machine paths: none found.
- The new page `TriggerHandlerBypassPermissionTest.html` was read in full before it was staged.
- The Prettier check passes on the committed tree.
Co-Authored-By: Claude <[email protected]>
ApexDox adds the path of each file to the sourceUrl, so the source links doubled the folder, such as tree/main/force-app/main/default/classes/force-app/main/default/classes/TriggerHandler.cls. Both sourceUrl values now end at tree/main, so each link points to the file once.
Co-Authored-By: Claude <[email protected]>
The regenerated class pages point each source link to its file, now that apexdox.yml sets the source URL to the repository root. Only the source links change; no text on the pages changes.
Co-Authored-By: Claude <[email protected]>
marked 18 writes headings without ids, so the links of the README table of contents, such as the link to the Credit heading, did not jump to their heading on the site. A new script, add-heading-ids.mjs, adds a GitHub-style id to each heading of the home, changelog, deploy, and sample pages, and prepareApexDox runs it after each marked step. A repeated heading gets a suffix, as GitHub gives it.
Co-Authored-By: Claude <[email protected]>
The home, changelog, deploy, and sample pages are regenerated with the prepareApexDox script, so each heading has the id that the table of contents links use. The text of the pages does not change, only their ids and line breaks.
Co-Authored-By: Claude <[email protected]>
A table of contents link scrolls its heading to the top of the window, where the sticky scoping panel covers it. Each heading with an id now has a scroll margin of 80 pixels, so the heading shows after the jump.
Co-Authored-By: Claude <[email protected]>
The deploy workflow rebuilds the content of the changelog page with marked from the release tag, and marked writes no heading ids, so the deployed page lost the ids that the site build adds. The deploy now runs add-heading-ids.mjs on the page after the rebuild.
Co-Authored-By: Claude <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|