Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.
It turns markdown files in your
/docs folder (or wherever you choose) into rich, interactive documentation. Out of the box you get helpers like syntax highlighting using Prism or Highlight.js, callouts like Tip, highlight and much more. You can even extend GitDocs to support custom components using libraries like React and Vue.
gitdocs is distributed as a package on npm. It is a cli that you can simply install with
npm install gitdocs -g. You can run
gitdocs serve to preview your docs or
gitdocs build to generate a static site wherever you like.
npm i -g gitdocs
yarn global add gitdocs
You can create an initialize a new project using the following command. You will be prompted to name the project and provide a link to the repository URL.
Assuming you have a folder with markdown files at
/docs, you can automatically preview your docs site by running:
and build your site to any destination with:
gitdocs build --output="docs-dist"
readme.mdin your repo will be used as the default homepage for your docs
docs/docs.jsonallows you to specify your project settings like the version, name and much more
docs.jsonto generate your own navigation. See configuration/sidebar for more info.