GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(site): refresh the documentation site by dschach · Pull Request #397 · dschach/salesforce-trigger-framework

Conversation

@dschach

@dschach dschach commented Nov 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

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.

All reactions
Claude AI and others added 7 commits November 11, 2026 12:11
Claude AI @claude
docs(site): refresh the documentation site
1d28184
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]>
Claude AI @claude
fix(apexdox): link each source file from the repository root
13b99de
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]>
Claude AI @claude
docs(site): link each source file once
383c5ee
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]>
Claude AI @claude
fix(apexdox): add ids to the headings of the site pages
f8ed889
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]>
Claude AI @claude
docs(site): regenerate the site pages with heading ids
540763b
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]>
Claude AI @claude
fix(site): keep the headings below the sticky panel
83ace02
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]>
Claude AI @claude
fix(site): add heading ids to the deployed changelog page
3413e03
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]>
@dschach
dschach merged commit e51cf9e into main Nov 11, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dschach
dschach deleted the docs/refresh-documentation-site branch November 11, 2026 01:39
@dschach dschach mentioned this pull request Nov 10, 2026
chore(main): release 2.1.0 #390
Merged
dschach added a commit that referenced this pull request Nov 11, 2026
@dschach
chore(main): release 2.1.0 (#390)
ec94fb4
🤖 I have created a release *beep* *boop*
---


## [2.1.0](v2.0.0...v2.1.0) (2026-11-11)


### Features

* **handler:** Add hideAllDebug to hide the debug lines of all handlers ([#392](#392)) ([1334dc5](1334dc5))
* **handler:** Bypass all handlers for a user with a custom permission ([#394](#394)) ([2df4eaf](2df4eaf))
* **handler:** Bypass and clear a set of handler names ([1334dc5](1334dc5))
* **handler:** End hideAllDebug with showAllDebug ([1334dc5](1334dc5))
* **handler:** Read the loop count of 1 trigger operation by type ([1334dc5](1334dc5))
* **handler:** Return the handler from clearMaxLoopCount ([1334dc5](1334dc5))


### Bug Fixes

* **apexdox:** Add ids to the headings of the site pages ([e51cf9e](e51cf9e))
* **apexdox:** Link each source file from the repository root ([e51cf9e](e51cf9e))
* **site:** Add heading ids to the deployed changelog page ([e51cf9e](e51cf9e))
* **site:** Keep the headings below the sticky panel ([e51cf9e](e51cf9e))


### Documentation

* **readme:** Add diagrams of the run() flow ([#395](#395)) ([41318c5](41318c5))
* **readme:** Add what is new in version 2.0 ([2f3ceae](2f3ceae))
* **site:** Refresh the documentation site ([#397](#397)) ([e51cf9e](e51cf9e))


### Build System

* **marked:** Update devDependency marked from 18.1.2 to 18.2.0 ([#391](#391)) ([33f4b0a](33f4b0a))


### Continuous Integration

* **release:** Run Release Please only after the checks pass on main ([#393](#393)) ([3bd3b17](3bd3b17))
* **site:** Deploy the documentation site from each release tag ([#396](#396)) ([cf4dfef](cf4dfef))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@dschach
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.