Skip to content
westonrobotPublic

About

Weston Robot Technical Documentation

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

378 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weston Robot Public Documentation

This repository contains source files for generating documentation using Docusaurus.

The site is published to https://docs.westonrobot.com by the Deploy Docusaurus site to GitHub Pages workflow on every push to main.

Develop with Docker

Make sure you have docker and docker compose set up properly. You can refer to the instructions here. Then you can build and run the app:

docker compose up

You should be able to access the site at: http://localhost:3000

Dependencies are installed inside the container rather than into your working tree, and re-checked on every start, so a git pull that changes package.json needs no extra step from you.

Use the container or the host, not both. Docusaurus writes absolute paths into .docusaurus/, so a cache generated by a host-side npm run build will make the container fail with Module not found, and vice versa. When switching between them, clear the cache first:

rm -rf .docusaurus build

Develop in the host

Set Up Environment

Docusaurus requires Node.js 20.0 or higher. The version this project targets is pinned in .nvmrc, and CI reads that same file, so nvm use gives you exactly what CI runs.

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Install the version pinned in .nvmrc (run from the repository root):
nvm install
nvm use

# Verify:
node -v
npm -v

nvm ships its own npm, so there is no need to apt install npm.

Run the local server

Install dependencies from the lockfile, then start the dev server with hot reload:

cd <this-repository>
npm ci
npm run start

Repository layout

Documentation is split into six independent Docusaurus docs plugin instances, each with its own sidebar file:

Section Content directory Sidebar
/support support/ sidebars-support.ts
/robot robot/ sidebars-robot.ts
/peripheral peripheral/ sidebars-peripheral.ts
/system system/ sidebars-system.ts
/solution solution/ sidebars-solution.ts
/tutorial tutorial/ sidebars-tutorial.ts

The general and software sections were dissolved; docusaurus.config.ts keeps redirects for their old URLs, because support engineers paste them into tickets.

The landing page is src/pages/index.tsx.

Making a change

This file gets the site running. CONTRIBUTING.md is what to do once it is: editing a page, adding a product, publishing a downloadable document, adding a video, moving a URL, recording a decision — and the checks to run before opening a pull request.

About

Weston Robot Technical Documentation

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages