• Stars
    star
    250
  • Rank 162,397 (Top 4 %)
  • Language
    CSS
  • License
    MIT License
  • Created about 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“– Gatsby theme for api documentation

Gatsby

Greenboard

Greenboard - Generate beautiful static api documentation  | Product Hunt Embed

Create beautiful api documentation with gatsby and greenboard

Features

  • Generate static site from markdown
  • Get all features of gatsby and react
  • Fully customizable
  • Dark Mode
  • Uses same structure of slate docs.

Installation

Setup your folder and install gatsby, react and react-dom

mkdir my-docs
cd my-docs
yarn init

yarn add gatsby react react-dom

Install greenboard

yarn add gatsby-greenboard

Then add gatsby-greenboard to your gatsby-config.js.

module.exports = {
  plugins: [
    {
      resolve: "gatsby-greenboard",
      options: {},
    },
  ],
}

Now create your api documentation in data/index.html.md. You can check a sample format in here

That's it, you can now run your gatsby site using

yarn gatsby develop

Build the production files

yarn gatsby build

Customization

To get more customization fork this repo.

Clone the repo

https://github.com/shamin/greenboard.git

Travese to the folder

cd greenboard

Install dependencies

yarn

To run example locally

yarn workspace example develop

To build example

yarn workspace example build

To run the build files locally with serve

npm install -g serve

cd example/build
serve

To deploy example to github pages

yarn workspace example deploy

FAQs

How can I deploy the docs to a non root path

Add the pathPrefix to gatsby-config.js in your docs folder

module.exports = {
  pathPrefix: `/docs`,
}

Run build command

yarn workspace example build

For more information visit https://www.gatsbyjs.org/docs/path-prefix/

Help

If you need some help you can contact me on my email [email protected]

More Repositories

1

webpack-sass-bootstrap-boilerplate

Sass, Babel & Bootstrap boilerplate with Webpack building, Dev Server and Live Loading
JavaScript
96
star
2

react-fullscreen-loading

Minimal fullscreen loading for react
JavaScript
9
star
3

detector

πŸ€–: πŸš€ A github bot to notify if there is any change in a set of files in a pull request.
JavaScript
8
star
4

share-ride

TypeScript
8
star
5

redis-realtime

Build realtime services on top of Redis.
TypeScript
7
star
6

figma-react-icons

CLI to generate react icon component files from figma
JavaScript
7
star
7

chrome-extension-starter

Chrome extension boilerplate with vuejs and babel
JavaScript
6
star
8

react-flow

Create flow charts in ReactJS
TypeScript
3
star
9

alfred-whats-new-workflow

Google whats.new in alfred workflow
JavaScript
3
star
10

space-kit

Yet another component library for React.
TypeScript
2
star
11

space

Minimal React UI component library built with emotion πŸ‘©β€πŸŽ€
JavaScript
1
star
12

vite-react-custom-starter

Custom vite + react advanced starter template
JavaScript
1
star
13

cx-sessions

CSS
1
star
14

reframe-viewer

JavaScript
1
star
15

shop

PHP
1
star
16

Issue-Finder

Chrome extension to view issues with language and labels
JavaScript
1
star
17

darkroom

Simple photo editor
TypeScript
1
star
18

js-playground

Created with CodeSandbox
JavaScript
1
star
19

docker-compose

Spawn up a service locally in 2 steps
Shell
1
star
20

shamin.github.io

Personal website
TypeScript
1
star
21

wasm-playground

Me trying to learn web assembly
HTML
1
star
22

cljs-project

Clojure
1
star
23

pi

Python
1
star
24

js-dnd

Drag and Drop in vanila js
TypeScript
1
star
25

js-monorepo

React monorepo with lerna
TypeScript
1
star
26

React-Starter

React starter boiler plate
JavaScript
1
star
27

data-viz

https://shaminmeerankutty.github.io/data-viz/
JavaScript
1
star
28

eve

My Instagram Manager
JavaScript
1
star