- OI Wiki

Dox - Gatsby Theme

A Gatsby theme for creating documentation site.

Documentation made easy with Gatsby. :tada:

Features

  • :open_book: MDX support
  • :nail_care: Theme UI support
  • :art: Syntax Highlighting
  • :bookmark_tabs: Navbar, Sidebar & Footer
  • :iphone: Fully Responsive Design :computer:

Installation

Install the gatsby-theme-dox package:

# with npm:
npm run --save gatsby-theme-dox

# with yarn:
yarn add gatsby-theme-dox

Usage

Add the gatsby-theme-dox pacakge in your gatsby-config.js file:

// gatsby-config.js
module.exports = {
  siteMetadata: {
    title: `Dox - Gatsby Theme`,
    description: 'Documentation made easy with Gatsby',
    author: 'MunifTanjim'
  },
  plugins: [`gatsby-theme-dox`]
}

You can also pass a options object if you want:

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-theme-dox',
      options: {
        basePath: '/',
        contentPath: 'docs'
      }
    }
  ]
}

Theme Options

KeyDefault valueDescription
basePath/Root URL for the documentation site
contentPathcontent/docsLocation of documentation files
mdxtrueConfigure gatsby-plugin-mdx plugin (if your site already is using it, set false)
本页面未记录贡献者
本页面没有标签
本页面最近更新:2020/04/09更新历史
发现错误?想一起完善? 在 GitHub 上编辑此页!
本页面的全部内容在 CC BY-SA 4.0 SATA 协议之条款下提供,附加条款亦可能应用
最近更新: fcbfa0e, 2020-03-27