githubEdit

website

This website was created with Docusaurusarrow-up-right.

What's In This Document

Get Started in 5 Minutes

  1. Make sure all the dependencies for the website are installed:

# Install dependencies
$ yarn
  1. Run your dev server:

# Start the site
$ yarn start

Directory Structure

Your project file structure should look something like this

Editing Content

Editing an existing docs page

Edit docs by navigating to docs/ and editing the corresponding document:

docs/doc-to-be-edited.md

For more information about docs, click herearrow-up-right

Editing an existing blog post

Edit blog posts by navigating to website/blog and editing the corresponding post:

website/blog/post-to-be-edited.md

For more information about blog posts, click herearrow-up-right

Adding Content

Adding a new docs page to an existing sidebar

  1. Create the doc as a new markdown file in /docs, example docs/newly-created-doc.md:

  1. Refer to that doc's ID in an existing sidebar in website/sidebar.json:

For more information about adding new docs, click herearrow-up-right

Adding a new blog post

  1. Make sure there is a header link to your blog in website/siteConfig.js:

website/siteConfig.js

  1. Create the blog post with the format YYYY-MM-DD-My-Blog-Post-Title.md in website/blog:

website/blog/2018-05-21-New-Blog-Post.md

For more information about blog posts, click herearrow-up-right

Adding items to your site's top navigation bar

  1. Add links to docs, custom pages or external links by editing the headerLinks field of website/siteConfig.js:

website/siteConfig.js

For more information about the navigation bar, click herearrow-up-right

Adding custom pages

  1. Docusaurus uses React components to build pages. The components are saved as .js files in website/pages/en:

  2. If you want your page to show up in your navigation header, you will need to update website/siteConfig.js to add to the headerLinks element:

website/siteConfig.js

For more information about custom pages, click herearrow-up-right.

Full Documentation

Full documentation can be found on the websitearrow-up-right.

Last updated

Was this helpful?