Skip to content

run-at-scale/substratusai.github.io

 
 

Repository files navigation

Substratus Website

This website is built using Docusaurus 2, a modern static website generator. You can view live website here: https://substratus.ai

Installation

yarn

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.

Notebooks

A lot of the documents on this website are generated from Jupyter Notebooks. This allows for testing documentation.

To edit the notebook files, you can either start a notebook (see below) or use VSCode which can edit notebooks directly.

npm run notebook

Convert the notebook files to markdown.

npm run convert-notebooks

You can clear notebook outputs:

npm run clear-notebooks

Build

yarn build

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

Deployment

Using SSH:

USE_SSH=true yarn deploy

Not using SSH:

GIT_USER=<Your GitHub username> yarn deploy

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.

Assets

Main Icon

Source: https://favicon.io/favicon-generator/

See: ./scratch/favicon_io/

Settings:

  • Letter: "S" (capital)
  • Font: Saira Stencil One

General Icons

Source: https://fonts.google.com/icons

Settings:

  • Weight: 100 (min)
  • Grade: 0 (middle)
  • Optical Size: 48 (max)

Testing

We test the contents of our docs via testbook and pytest. These tests stand up live cloud infrastructure in our integration test project or PROJECT_ID if specified instead. The test suite relies on an active set of GCP credentials in your shell session so gcloud auth login --update-adc prior to running. The currently set PROJECT_ID or gcloud-configured project will be used as the target for creating infra.

Tests can be run via:

make test

Optionally, you can specify a remote branch of the substratusai/substratus repo to test against for all manifests referencing examples in that repo.

make test SUBSTRATUS_BRANCH=feat/foobar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.0%
  • JavaScript 30.3%
  • CSS 7.5%
  • Shell 5.3%
  • Makefile 2.4%
  • Jinja 0.5%