Skip to content

docs: Edit and cleanup pass#300

Draft
crandmck wants to merge 2 commits into
mainfrom
docs/github-only-class
Draft

docs: Edit and cleanup pass#300
crandmck wants to merge 2 commits into
mainfrom
docs/github-only-class

Conversation

@crandmck

Copy link
Copy Markdown
Collaborator
  • Use github-only CSS class instead of inline display:none style to hide content in Docusaurus but still display in the GitHub web interface.

Switches the GitHub-only content divs to class="github-only" (already
defined in opensource.contentauth.org's custom.css) instead of the
style={{display: 'none'}} JSX trick, which only works because it's
invalid CSS on GitHub. The class-based approach is plain HTML and
renders correctly everywhere.
@crandmck
crandmck marked this pull request as draft July 23, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant