Skip to content

Link project pages to GitHub with an icon and drop the README snippet - #59

Merged
alies-dev merged 2 commits into
masterfrom
alies-dev/project-header
Nov 21, 2026
Merged

alies-dev merged 2 commits into
masterfrom
alies-dev/project-header

Conversation

@alies-dev

Copy link
Copy Markdown
Contributor

Context

On a project page the name (e.g. vimeo/psalm) is itself a link to GitHub, so clicking the page title unexpectedly leaves Shepherd. The page also has an "Add to README" block with the badge Markdown, which is clutter now that the badges sit right above it.

Solution

The project name is plain text. Next to it, a GitHub mark (the Primer mark-github octicon, inline SVG) links to the repository. It has aria-label="<owner/repo> on GitHub" and a "Open on GitHub" tooltip. The empty "no reports yet" page shows the same title.

The "Add to README" block is removed, along with its CSS (.readme-details, .snippet*) and copy.js on this page. The home page still loads copy.js for the install commands.

The project name was itself a link to GitHub, which read as a link to
the Shepherd page. It is now plain text, and a GitHub mark next to it
opens the repository. The Add to README block goes away, and so does
copy.js on this page.
@alies-dev alies-dev self-assigned this Nov 21, 2026
@alies-dev
alies-dev merged commit f5f3de0 into master Nov 21, 2026
3 checks passed
@alies-dev
alies-dev deleted the alies-dev/project-header branch November 21, 2026 16:48
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