From ea189d91118e19a97de31d7b455d620c870862a2 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sat, 4 Apr 2026 13:46:10 -0400 Subject: [PATCH 1/2] feat(doc-kit): bump version --- components/Footer/footer.json | 62 ----- components/Footer/index.jsx | 6 +- components/Navigation/index.jsx | 20 +- components/Sidebar/index.jsx | 56 +---- doc-kit.config.mjs | 11 +- package-lock.json | 8 +- package.json | 2 +- site.json | 386 ++++++++++++++++++++++++++++++++ template.html | 61 +++++ vercel.json | 13 +- 10 files changed, 478 insertions(+), 147 deletions(-) delete mode 100644 components/Footer/footer.json create mode 100644 site.json create mode 100644 template.html diff --git a/components/Footer/footer.json b/components/Footer/footer.json deleted file mode 100644 index cc1cfa6..0000000 --- a/components/Footer/footer.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "socialLinks": [ - { - "icon": "github", - "link": "https://github.com/nodejs/node", - "alt": "GitHub" - }, - { - "icon": "discord", - "link": "https://discord.gg/nodejs", - "alt": "Discord" - }, - { - "icon": "mastodon", - "link": "https://social.lfx.dev/@nodejs", - "alt": "Mastodon" - }, - { - "icon": "bluesky", - "link": "https://bsky.app/profile/nodejs.org", - "alt": "Bluesky" - }, - { - "icon": "twitter", - "link": "https://twitter.com/nodejs", - "alt": "Twitter" - }, - { - "icon": "slack", - "link": "https://slack-invite.openjsf.org/", - "alt": "Slack" - }, - { - "icon": "linkedin", - "link": "https://www.linkedin.com/company/node-js", - "alt": "LinkedIn" - } - ], - "footerLinks": [ - { "link": "https://openjsf.org/", "text": "OpenJS Foundation" }, - { "link": "https://terms-of-use.openjsf.org/", "text": "Terms of Use" }, - { "link": "https://privacy-policy.openjsf.org/", "text": "Privacy Policy" }, - { "link": "https://bylaws.openjsf.org/", "text": "Bylaws" }, - { - "link": "https://github.com/openjs-foundation/cross-project-council/blob/main/CODE_OF_CONDUCT.md", - "text": "Code of Conduct" - }, - { - "link": "https://trademark-policy.openjsf.org/", - "text": "Trademark Policy" - }, - { "link": "https://trademark-list.openjsf.org/", "text": "Trademark List" }, - { - "link": "https://www.linuxfoundation.org/cookies/", - "text": "Cookie Policy" - }, - { - "link": "https://github.com/nodejs/node/security/policy", - "text": "Security Policy" - } - ] -} diff --git a/components/Footer/index.jsx b/components/Footer/index.jsx index f27d37a..e3f9fe9 100644 --- a/components/Footer/index.jsx +++ b/components/Footer/index.jsx @@ -1,7 +1,7 @@ import Footer from '@node-core/ui-components/Containers/Footer'; import NavItem from '@node-core/ui-components/Containers/NavBar/NavItem'; -import { socialLinks, footerLinks } from './footer.json'; +import { footer } from '../../site.json' with { type: 'json' }; // The Node.js Project is legally obligated to include the following text. // It should not be modified unless explicitly requested by OpenJS staff. @@ -24,7 +24,7 @@ const LegalSlot = (

- {footerLinks.map(({ link, text }) => ( + {footer.links.map(({ link, text }) => ( {text} @@ -39,7 +39,7 @@ const LegalSlot = ( export default ({ metadata }) => (