Skip to content

Instantly share code, notes, and snippets.

@colebemis
Last active August 27, 2020 21:38
Show Gist options
  • Save colebemis/0d02912467e388df6c6b39e050839286 to your computer and use it in GitHub Desktop.
Save colebemis/0d02912467e388df6c6b39e050839286 to your computer and use it in GitHub Desktop.

The following updates will be available in Doctocat v0.24.0.

Table of contents

We made updates to the table of contents in Doctocat based on feedback documented in primer/doctocat#137.

Specifically, here's what changed:

  • Reduced the font size of the table of contents items from 16px to 14px
  • Increased the max width of main content area to 960px
  • Limited the depth of the table of contents to h3
  • Collapsed empty table of contents items
  • Updated mobile table of contents based on @ashygee's designs

Here's the PR for the table of contents changes: primer/doctocat#166

Before After

Note component

We added a Note component to Doctocat that people can use to draw attention to specific information in documentation pages.

Here's the PR that implements the Note component: primer/doctocat#167

Here's the documentation for the Note component: https://gatsby-theme-primer-example-git-release-0240.primer.vercel.app/doctocat/components/note

Before After
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment