Niraj Tolia 4d02650f99
Add Google Analytics to webpages (#934)
## Description

Add Google Analytics to docs and website

This can only be tested in production for docs but it looks like the HTML does the right thing.

## Type of change

- [x] 🌻 Feature


## Test Plan

- [x] 💪 Manual
2022-09-23 15:37:12 +00:00
..
2022-09-22 22:56:23 +00:00
2022-05-19 13:32:03 -07:00
2022-05-16 22:44:49 -07:00
2022-08-19 16:15:14 +00:00
2022-09-22 01:35:53 +00:00
2022-09-22 01:35:53 +00:00
2022-09-22 22:56:23 +00:00

Corso documentation

Corso documentation uses Docusaurus 2, a modern static website generator. Mermaid provides support for native diagrams in Markdown.

Requirements

Developing documentation for Corso requires the following tools on your machine:

  • make
  • Docker

Installation

make buildimage

Live documentation development

make dev

This command starts a local development server within the Docker container and will expose docs at http://localhost:3000.

Generating Corso CLI docs

make genclidocs

Corso's CLI documents are auto-generated. This command explicitly triggers generating these docs. This step will happen automatically for the other commands where this is relevant.

Building static documentation

make build

This command generates static content into the build directory for integration with any static contents hosting service.

Style and linting

# Lint all docs
make dockercheck
# Lint specific files and/or folders
make dockercheck VALE_TARGET="README.md docs/concepts"

This command will lint all Markdown files and check them for style issues using the Docker container

make check

Same as make dockercheck but runs locally. Requires vale to be installed.

Documentation platform development

make shell

Use this command to interactively (and temporarily!) change the contents or configuration of the live documentation container image (for example, when experimenting with new plugins).