Skip to content

teodorciuraru/docs

 
 

Repository files navigation

Ditto Documentation Website

Installation

Install node https://nodejs.org/en/

npm install

Local Development

npm 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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 76.0%
  • JavaScript 17.3%
  • CSS 6.6%
  • Shell 0.1%