Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions components/MetaBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function MetaBarComponent({ metadata, headings = [], readingTime }) {
.filter(sponsor => sponsor.monthly.tier === 'platinum')
.sort((a, b) => b.monthly.value - a.monthly.value);

// Generated API pages have no editable source, unless they name one.
const editThisPage =
metadata.source ?? editURL.replace('{path}', metadata.path);
metadata.source ?? editURL?.replace('{path}', metadata.path);
const authors = metadata.authors?.split(',').map(id => ({
image: `https://avatars.githubusercontent.com/${id.trim()}`,
url: `https://github.com/${id.trim()}`,
Expand All @@ -36,12 +37,16 @@ function MetaBarComponent({ metadata, headings = [], readingTime }) {
Authors: <AvatarGroup avatars={authors} as="a" limit={5} />,
}
: {}),
Contribute: (
<>
<GitHubIcon className="fill-neutral-700 dark:fill-neutral-100" />
<a href={editThisPage}>Edit this page</a>
</>
),
...(editThisPage
? {
Contribute: (
<>
<GitHubIcon className="fill-neutral-700 dark:fill-neutral-100" />
<a href={editThisPage}>Edit this page</a>
</>
),
}
: {}),
...(platinumSponsors.length
? {
[platinumSponsors.length > 1
Expand Down
131 changes: 118 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@doc-kit/cli": "^1.0.5",
"@doc-kit/generator-react": "^0.5.0",
"@doc-kit/typedoc": "^0.0.0",
"@tailwindcss/vite": "^4.3.3",
"@vercel/analytics": "^2.0.1",
"@vercel/functions": "^3.10.1",
Expand All @@ -35,7 +36,6 @@
"npm-run-all": "^4.1.5",
"semver": "^7.8.5",
"typedoc": "^0.28.20",
"typedoc-plugin-markdown": "^4.14.0",
"webpack": "^5.112.0"
},
"devDependencies": {
Expand Down
46 changes: 0 additions & 46 deletions plugins/processor/exportEquals.mjs

This file was deleted.

117 changes: 0 additions & 117 deletions plugins/processor/extractHooksGroup.mjs

This file was deleted.

Loading
Loading