Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

pi-base/viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9941a1c · May 16, 2023
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Mar 6, 2023
Sep 11, 2021
Sep 12, 2021
Jun 6, 2020
May 30, 2020
Oct 17, 2021
May 16, 2023
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022
Apr 17, 2022

Repository files navigation

🛑 DEPRECATED 🛑

➡️ This package is now managed in the pi-base/web monorepo


build-test codecov viewer Netlify Status

π-Base

The development instance of the π-Base is available at topology-development.pi-base.org.

Architecture

The site is powered by a few different projects, all under github.com/pi-base.

  • core - typescript package containing the shared data model (spaces, properties, formulae, &c.). Available on NPM.
  • compile - typescript package using @pi-base/core to compile a repository of markdown files into a JSON bundle for the viewer to view. Used in a Github action in the data repo. Also available on NPM.
  • data - repo containing all actual mathematical content. Once a PR here has been approved and merged, it triggers a compiler run, which pushes the compiled bundle to S3 for the public viewer to fetch.
  • viewer - this package. Fetches and presents the compiled bundle.

Development

Clone the repo and run

$ pnpm install
$ pnpm start

The developer panel (at /dev) has some utilities that may be helpful for controlling where the data bundle is fetched from, or for interacting with the stored data. By default, the current production data bundle will be used. You may also want to clone the data repo and run a compiler locally to view edits as you make them; see the compiler's README for more details.

Deployment

Deployment is automatic on a successful push to master. See .github/actions and package.json for details.