0.9.3 • Published 5 years ago

@staticfuse/gatsby-theme-docs v0.9.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Gatsby Theme Static Fuse Docs

A simple markdown documentation Gatsby Theme. Optimized for simple integration with the Static Fuse Publisher Gatsby Theme.

Getting Started

Add the following to your gatsby-config.js

  plugins: [
     '@staticfuse/gatsby-theme-docs',
     // more plugins...
  ]

The plugin will create the following directories & files the next time you bootstrap Gatsby:

./config/TOC.yml // Docs menu config
./content/assets/ // Optionally use to store assets when writing markdown
./content/docs/getting-started.md // Starter markdown doc. Place additional docs as children here.

Configuring the "aside" docs menu

Menu configuration is administered by editing the ./config/TOC.yml file.

- label: Getting Started # link text
  path: /docs/getting-started # link href value
  isHeader: false # Am I a header? (not a link at all)

  # Example of a header with child links
- label: Section Three (just a header)
  path: /docs/getting-started
  isHeader: true
  childItems: #child link items.
    - label: child link one
      path: /docs/section-three-article-one
      isHeader: false
    - label: child link two
      path: /docs/section-three-article-two
      isHeader: false