Skip to content

About

Ganymede Bio Documentation

Resources

Stars

5 stars

Watchers

4 watching

Forks

Latest commit

 

History

1,653 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ganymede Documentation

This repository hosts documentation for using the Ganymede Cloud Server. It is served at docs.ganymede.bio.


Setup for local development

Download and install Node.js 24 LTS. If you use nvm, run nvm install and nvm use from the repository root to select the version in .nvmrc.

Download and install VS Code or other editor of choice.

If you are using MacOS, install brew by running the following in terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install xcode command line tools by running:

xcode-select --install

Clone the website-docusaurus repo

git clone https://github.com/Ganymede-Bio/website-docusaurus.git

It is necessary to create an .env file to configure Typesense to get the following steps to work. Instructions here

Install packages required for running documentation website

npm install --global yarn@1.22.22
yarn install --frozen-lockfile
yarn build

Run website-docusaurus locally

Run local instance for debugging (defaults to port 3000). Doing so, you should be able to see the website in the browser by visiting localhost:3000.

yarn start

Editing website-docusaurus

  1. Create a new branch, so that you can validate website updates before deploying to docs.ganymede.bio. The -b option on the checkout command below creates a new branch.
cd website-docusaurus
git checkout -b <name-of-new-branch>
  1. Make changes. Changes should viewable in the browser on localhost:3000

  2. When satisfied, with changes, run the following code. You should be able to view changes after a couple minutes from the link in the notifications-website channel in Slack.

git commit -am '<description of changes>'
git push
  1. If successful, run the following code to deploy to docs.ganymede.bio
git checkout main
git merge <name-of-new-branch>
git push

Generating API Docs

./scripts/update-api-spec.sh will generate new docs based on the openapi yaml definition that is linked via api-server.


Building Node docs

Documentation for nodes is built using pydoc-markdown and pulling from core-operators as a submodule. The generatorOperatorDocs.py script retrieves comments from operator code and systematically re-formats the comments as Markdown.

Initial setup

Install the dependencies

pushd pydoc
python3 -m venv env 
source env/bin/activate
pip install -r requirements.txt
deactivate
popd

Node documentation generation

Fetch the latest nodes and generate the docs

git submodule update --recursive --remote --init
pushd pydoc
source env/bin/activate
python generateOperatorDocs.py
python generatePylibDocs.py
python generateAllotropeDocs.py
deactivate
popd

API Server documentation generation

Fetch the latest nodes and generate the docs

git submodule update --recursive --remote --init api-server
yarn run api

Notes on Docusaurus, as used in this repo

Key files

  • sidebars.js in the root directory contains the layout of the sidebars for each page
  • docusaurus.config.js in the root directory contains navbar and footer menu

Docusaurus features

Images

To add images, drop them into this GCS bucket

Spellchecking

To add new words to the allowed list, update .wordlist.txt.


License

Apache 2.0

Ganymede Documentation is developed using Docusaurus

About

Ganymede Bio Documentation

Resources

Stars

5 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages