nathan-contino-mongo / docs-1

Ditto Documentation

Home Page:https://docs.ditto.live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ditto Documentation Website

Installation

yarn install

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Generate search indexes

Search is provided by Algolia. Every time a change is made to the documentation, you should run the crawler locally which will update the search indexes.

  1. Ensure that your changes have been pushed and deployed to https://docs.ditto.live. The scraper runs on the live version of the website, so they need to be deployed before following the rest of these instructions.
  2. Install and run Docker
  3. Get added to the Ditto Algolia account.
  4. Copy the .env.example file.
cp algolia/.env.example algolia/.env
  1. Add your Algolia API Write Key in .env

  2. Run the Docker script to update the search indexes

npm run search-indexes

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

This website is built using Docusaurus 2, a modern static website generator. If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

About

Ditto Documentation

https://docs.ditto.live


Languages

Language:TypeScript 76.2%Language:JavaScript 17.3%Language:CSS 6.4%Language:Shell 0.1%