grantmiller / help-center

Replicated help center

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local development

Before you are able to run this locally you need to have 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
 make serve

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


Languages

Language:HTML 45.0%Language:CSS 27.0%Language:JavaScript 25.5%Language:Makefile 1.1%Language:Shell 1.1%Language:Python 0.2%Language:Dockerfile 0.1%