labdao / docs

Powering docs.labdao.xyz. All LabDAO project documentation is deployed via this repository.
https://docs.labdao.xyz
13 stars 8 forks source link

LabDAO Docs

This repository powers docs.labdao.xyz. It pulls together all LabDAO/OpenLab documentation together into a single site using Docusaurus.

Writing documentation

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:

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).

Development

$ 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.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

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!

Misc

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.