Skip to content

GraysonNull/help-center

 
 

Repository files navigation

Local development

Before you are able to run this locally you need to have NodeJS v8.x, YARN and Hugo installed on your machine. If you already have Hugo installed, make sure you have the latest version.

  1. Install project dependencies

    make install
  2. Back in the root of the project, run

    make build
  3. And then run the project

    make serve
  4. In your browser navigate to localhost:1313 to view the project.

Staging vs Prod

Help center can be built for either staging or prod via:

Prod

 make build-prod
 make serve-prod

Staging

 make build-staging
 make serve-staging

Indexing Content

Included in this project is the hugo-algolia package, which crawls the /content folder of the site and indexes all the content. If you want to re-index the site and/or send new docs content to Algolia, you can use the following commands:

Index the site

This command indexes the whole site and puts content into a single array.

make index-site

Index the site and send content to Algolia account

This command indexes the whole site and sends the array to Algolia.

make index-and-send

You can index and send content to our staging indices via:

make index-and-send-staging

About

Replicated help center

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 46.0%
  • CSS 26.5%
  • JavaScript 25.0%
  • Makefile 1.1%
  • Shell 1.1%
  • Python 0.2%
  • Dockerfile 0.1%