This repository powers docs.labdao.xyz
. It pulls together all LabDAO/OpenLab documentation together into a single site using Docusaurus.
We've established some conventions around writing documentation that make it easy to integrate new projects' docs into this repository and deploy those docs to docs.labdao.com
. Here's what you need to know:
docs/
in the root of your repository.title
and description
.sidebar_position: <x>
to the front matter for each document in the directory._category_.json
file in the relevant directory with the contents { "label": "My Label" }
. All the options available via _category_.json
are documented here.To add your repository's documentation to docs.labdao.com
, make a pull request adding your repository as a Git submodule inside of this repository's docs/_projects
folder. The submodule should be referenced in .gitmodules
using an HTTPS repository link, not an SSH link (for Vercel compatibility).
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
This repository is deployed using Vercel, which has a Docusaurus V2 template. Just create a new Vercel project, connect it to this repository, and click deploy, and you're off to the races!
We collect anonymized analytics information from visitors to the documentation site to help us write better docs and understand which documentation is most important to our users.