The readme should include instructions to run the docs site so that people don't have to go searching for the contributing.md file if they are stumbling upon the docs in their code editor instead of via the docs.dev.to website.
1.2 KiB
1.2 KiB
| title |
|---|
| Contributing to Docs |
Contributing to Docs
The documentation you are reading is powered by GitDocs.
Where The Docs Are Located
This documentation is located in the DEV.to codebase within the /docs directory.
The docs are a collection of Markdown files that also utilize FrontMatter.
For more information on how to use GitDocs read the GitDocs guide
Running the Docs Locally
Install the GitDocs NodeJS library:
npm install gitdocs -g
Specifying -g will install the library globally, which is what you want to do.
If you use yarn you can instead issue:
yarn global add gitdocs
Once installed, you can run gitdocs serve from the root of the dev.to project or from the /docs directory.
gitdocs serve
This will start a server where you can browse the documentation: http://localhost:8000/
When you add new markdown pages or rename existing ones, you'll have to restart the server before you notice any changes.