Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
/ docs-starter Public archive

Get a docs site up and running fast ๐Ÿš€

Notifications You must be signed in to change notification settings

undone-labs/docs-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Docs Starter

This repo is set up as a GitHub Template, making it easy to spin up your own copy. Click on "Use this template" above. Once you're up and running, you'll need to do a few things to get started:

Base setup

git clone <your_repo_url>
cd docs-starter
npm ci

Self-signed certificate

In order to use the site in local development mode, two files must be added to the repo's root directory. The following set of commands apply to a MacOS system, however, if mkcert is installed by another package manager, this can be run on any flavor of *nix.

cd ~/.ssh
brew install mkcert # replace with another package manager for linux distro
brew install nss # need to install certutil before running `mkcert -install` so the CA can be automatically installed in Firefox
# at this point, open any https website in Firefox before running the below commands
mkcert -install
mkcert -key-file localhost_key.pem -cert-file localhost_cert.pem localhost 127.0.0.1
cat localhost_cert.pem > localhost_fullchain.pem
cat "$(mkcert -CAROOT)/rootCA.pem" >> localhost_fullchain.pem

Now, navigate to your project directory, wherever the repo was cloned to, for example cd ~/Sites/work/website and copy the pem files into the repo root. These keys are .gitignored by default.

cp -v ~/.ssh/localhost_cert.pem ~/.ssh/localhost_key.pem .

.env file

Place the following .env file into the src directory of your repo. This file is .gitignored.

# ---------------------------------------------------------------------- General
NODE_ENV=development
SERVER_ENV=development
# ---------------------------------------------------------------------- Algolia
ALGOLIA_APPLICATION_ID=<application_id>
ALGOLIA_API_KEY=<api_key>
ALGOLIA_INDEX_ID=<index_id>

For more information about the Algolia env variables, read the Algolia docs

About

Get a docs site up and running fast ๐Ÿš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published