Skip to content

Releases: primer/doctocat-nextjs

@primer/[email protected]

27 Jan 12:08
064df06
Compare
Choose a tag to compare

Minor Changes

  • #18 bfe68b1 Thanks @rezrah! - Upgraded internal framework to Nextra v3.

    To migrate Doctocat to this release, follow these steps:

    1. Install the latest version npm i @primer/[email protected]
    2. Rename your next.config.js to be next.config.mjs. Add type="module" to your package.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({
    
    +  }),
    +  }
    

@primer/[email protected]

17 Jan 17:13
8ca9c41
Compare
Choose a tag to compare

Patch Changes

  • #8 fd7f838 Thanks @rezrah! - Added OpenGraph tags for improved social sharing experience.

  • #8 0d0879b Thanks @rezrah! - Enabled related content navigation using keywords and related 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]

15 Jan 15:27
43a8685
Compare
Choose a tag to compare

Patch Changes

  • 937f773 Thanks @rezrah! - Redesign index pages to match current Doctocat styles

  • 7703a7b Thanks @rezrah! - Fixed code bg in dark mode and applied fixed width to toc to prevent layout shift

@primer/[email protected]

18 Dec 10:20
98fd255
Compare
Choose a tag to compare

Patch Changes

  • #4 4f28982 Thanks @joseph-lozano! - Wrap links with Next's Link component

  • 6f21970 Thanks @rezrah! - Switch hero image order with description and reduce h2 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