Releases: primer/doctocat-nextjs
@primer/[email protected]
Minor Changes
-
#18
bfe68b1
Thanks @rezrah! - Upgraded internal framework to Nextra v3.To migrate Doctocat to this release, follow these steps:
- Install the latest version
npm i @primer/[email protected]
- Rename your
next.config.js
to benext.config.mjs
. Addtype="module"
to yourpackage.json
and update the file contents to match the following:
- const withDoctocat = require('@primer/doctocat-nextjs/doctocat.config.js') - module.exports = { - ...withDoctocat({ - }), - } + import withDoctocat from '@primer/doctocat-nextjs/doctocat.config.js' + export default { + ...withDoctocat({ + }), + }
- Install the latest version
@primer/[email protected]
Patch Changes
-
#8
fd7f838
Thanks @rezrah! - Added OpenGraph tags for improved social sharing experience. -
#8
0d0879b
Thanks @rezrah! - Enabled related content navigation usingkeywords
andrelated
properties in Markdown frontmatter.Example:
--- title: Page A keywords: ['keyword', 'another keyword'] --- --- title: Page B keywords: ['keyword', 'another keyword'] ---
The matching keyword values above across both pages, will enable automatic related content navigation between the two pages.
or using the
related
property:--- related: [{title: External link example, href: https://example.com}] ---
-
#8
fd7f838
Thanks @rezrah! - Fixed accessibility violations arising from duplicate landmarks and missing aria labels.
@primer/[email protected]
@primer/[email protected]
Patch Changes
-
#4
4f28982
Thanks @joseph-lozano! - Wrap links with Next's Link component -
6f21970
Thanks @rezrah! - Switch hero image order with description and reduceh2
block start margin -
#6
afd4e17
Thanks @rezrah! - - Add MDX to HTML overrides mechanism and apply to headings and anchors- Added anchor links to headings to match current functionality on primer.style
-
b49f218
Thanks @rezrah! - Removed sidebar links and added skip to main content a11y link -
#2
2742b32
Thanks @rezrah! - Remove code blocks stylesheet, now merged into global.css