This repository contains documentation for Hubs and related products such as Hubs Cloud, Spoke, and the Community Edition.
The documentation is under active development. If there are any changes or updates you recommend, feel free to submit a pull request or let us know in our Discord Server.
This website was created with Docusaurus.
- Make sure all the dependencies for the website are installed:
# Navigate to the website directory
$ cd website
# Install dependencies
$ npm ci
- Run your dev server:
# Start the site
$ npm start
Your project file structure should look something like this
my-docusaurus/
docs/
doc-1.md
doc-2.md
doc-3.md
website/
core/
node_modules/
pages/
static/
css/
img/
package.json
sidebar.json
siteConfig.js
Edit docs by navigating to docs/
and editing the corresponding document:
docs/doc-to-be-edited.md
---
id: page-needs-edit
title: This Doc Needs To Be Edited
---
Edit me...
For more information about docs, click here
Edit blog posts by navigating to website/blog
and editing the corresponding post:
website/blog/post-to-be-edited.md
---
id: post-needs-edit
title: This Blog Post Needs To Be Edited
---
Edit me...
For more information about blog posts, click here
- Create the doc as a new markdown file in
/docs
, exampledocs/newly-created-doc.md
:
---
id: newly-created-doc
title: This Doc Needs To Be Edited
---
My new content here..
- Refer to that doc's ID in an existing sidebar in
website/sidebar.json
:
// Add newly-created-doc to the Getting Started category of docs
{
"docs": {
"Getting Started": [
"quick-start",
"newly-created-doc" // new doc here
],
...
},
...
}
For more information about adding new docs, click here
Full documentation can be found on the website.
We welcome contributions from the community! Hereβs how you can help:
Every markdown file should begin with a Docusaurus header block. This is not Markdown, but frontmatter metadata used by Docusaurus.
---
id: my-doc-id
title: My Doc Title
description: A short description of the doc
sidebar_label: My Doc Label
---
Please do not remove or skip this header. The id
should be unique, and the description
is required.
git clone https://github.com/Hubs-Foundation/hubs-docs.git
cd hubs-docs
git checkout -b fix-typos-or-additions
Make changes to .md
files in the docs/
directory. Remember to:
- Add a Docusaurus header at the top
- Write atomic commit messages (see Commit Message Guidelines)
- Follow the Markdown syntax guide
- Push your branch to GitHub
- Open a PR
- Explain:
- What you changed
- Why it matters
- How to test (if applicable)
See our Pull Request Guidelines for details.
To run the site locally:
npm ci
npm run start