Skip to content
Merged
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
7 changes: 6 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,15 @@ const config: Config = {
items: [
{label: 'Benchmarks', to: '/benchmarks'},
{label: 'GitHub', href: 'https://github.com/kdpisda/kronos'},
// rel="noopener" only (no noreferrer) so the author's own site
// sees KRONOS docs as a traffic source in its analytics.
{label: 'Author — kdpisda.in', href: 'https://kdpisda.in', rel: 'noopener'},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

In Docusaurus, the FooterLinkItem type does not officially support a rel property. Specifying rel directly in the object literal can trigger a TypeScript compilation error (e.g., Object literal may only specify known properties) depending on the compiler strictness.

Additionally, Docusaurus automatically appends noreferrer to external links defined via href. To guarantee that only rel="noopener" is used without being overridden or causing type-checking issues, use the html property to define the link explicitly.

            {
              html: '<a href="https://kdpisda.in" target="_blank" rel="noopener" class="footer__link-item">Author — kdpisda.in</a>',
            },

],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Kuldeep Pisda. Licensed under GPL-3.0. Built with Docusaurus.`,
// The author's name in the copyright also links back, with the same
// referrer-preserving rel. Docusaurus renders `copyright` as HTML.
copyright: `Copyright © ${new Date().getFullYear()} <a href="https://kdpisda.in" target="_blank" rel="noopener">Kuldeep Pisda</a>. Licensed under GPL-3.0. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
Expand Down
Loading