Skip to content

Conversation

@laveeshb
Copy link
Owner

Summary

Hide the "Browsing on GitHub?" message when viewing on kernel-internals.org, while keeping it visible on GitHub.

Approach:

  • Wrap the message in <div class="github-only" markdown>
  • Add CSS rule .github-only { display: none; } to extra.css
  • GitHub ignores the CSS, so the message shows there
  • The docs site applies the CSS, hiding it

Test plan

Wrap the "Browsing on GitHub?" message in a div with class
github-only, and add CSS to hide it on kernel-internals.org.

This way the message only appears when viewing the README on
GitHub, where users benefit from the site-index.md link.
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.

2 participants