-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into joss2024
- Loading branch information
Showing
110 changed files
with
9,289 additions
and
3,593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ coverage/ | |
dist/ | ||
node_modules/ | ||
data/ | ||
out | ||
.vscode-test/ | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
coverage | ||
dist | ||
out | ||
pnpm-lock.yaml | ||
.svelte-kit | ||
.vscode-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Pinned here and in devcontainer to avoid OOM issues stemming from | ||
# https://github.com/TypeStrong/ts-node/issues/1995 | ||
nodejs 20.11.0 | ||
nodejs 20.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,69 @@ | ||
[![test](https://github.com/pi-base/web/actions/workflows/test.yaml/badge.svg)](https://github.com/pi-base/web/actions/workflows/test.yaml) | ||
[![e2e](https://github.com/pi-base/web/actions/workflows/e2e.yaml/badge.svg)](https://github.com/pi-base/web/actions/workflows/e2e.yaml) | ||
|
||
Software monorepo for the [π-base](https://topology.pi-base.org) project. | ||
Software monorepo for the [π-base](https://github.com/pi-base) project. | ||
|
||
🔗s | ||
# What's this? | ||
|
||
- [π-base data](https://github.com/pi-base/data) | ||
- Error monitoring - [Sentry](https://james-dabbs.sentry.io/projects/pi-base/?project=5251960&statsPeriod=30d) | ||
**π-base** is software supporting the formalization of mathematical | ||
results that can be expressed in terms of *objects*, the *properties* | ||
they satisfy, and the *theorems* that guarantee the presence of which | ||
properites imply the others. | ||
|
||
Its main implementation lives at | ||
<https://topology.pi-base.org>, modeling research in | ||
[general topology](https://en.wikipedia.org/wiki/General_topology). | ||
|
||
A fork is being developed at <https://github.com/pi-base-topos> in support | ||
of [topos theory](https://en.wikipedia.org/wiki/Topos). | ||
|
||
*(Researchers who are interested in contributing to these databases | ||
likely want to visit <https://github.com/pi-base/data> or | ||
<https://github.com/pi-base-topos/data> directly, or connect with us | ||
via the [`code4math` Zulip](https://code4math.zulipchat.com/).)* | ||
|
||
Four node packages are maintained as part of this monorepo: | ||
|
||
- `packages/compile`: | ||
Compiles, checks, and publishes a data bundle based upon a repository | ||
of formalized results expressed in Markdown/YAML. | ||
- `packages/viewer`: | ||
Web application for browsing/querying formalized results, featuring | ||
automated deduction. (i.e. <https://topology.pi-base.org>) | ||
- `packages/vscode`: | ||
Web extension for VS Code to aid contributors and reviewers to a | ||
π-Base compatible repository of formalized results | ||
- `packages/core`: | ||
Shared data model for all π-Base utilities. | ||
|
||
# Getting Started | ||
|
||
The easiest way to try the software out is to use a Codespace; either press | ||
the comma (`,`) key on your keyboard while logged into GitHub on this page, | ||
or press the below button. | ||
|
||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=391656710) | ||
|
||
A web version of VS Code with all the necessary dependencies and | ||
software installed will be made available to you, as well as a | ||
copy of the general topology repository at | ||
<https://github.com/pi-base/data>. A new tab will automatically | ||
open to your development preview of the web viewer application, | ||
and changes you make to your copy of the data repository will | ||
be immediately recompiled and available in the viewer upon refresh. | ||
|
||
# Documentation | ||
|
||
Various guides are available in the [`doc`](./doc/) directory. | ||
|
||
# 🔗s | ||
|
||
- [π-base data](https://github.com/pi-base/data): | ||
peer-reviewed repository of formalized results in general topology, | ||
available online at <https://topology.pi-base.org> | ||
- [Sentry](https://james-dabbs.sentry.io/projects/pi-base/?project=5251960&statsPeriod=30d): | ||
error monitoring | ||
|
||
# Copyright and License | ||
|
||
Copyright 2014-2023 James Dabbs, [licensed for free public use](./LICENSE.md). | ||
Copyright 2014-2024 James Dabbs, [licensed for free public use](./LICENSE.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
|
||
# VSCode extensions can only use CommonJS modules (for now), but we want to | ||
# continue using our standard Vite/ESM build process elsewhere. This builds | ||
# both versions, corresponding to `package.json`'s `exports` field. | ||
|
||
tsc --module es2022 --outDir dist/esm/ | ||
echo '{"type": "module"}' > dist/esm/package.json | ||
|
||
tsc --module commonjs --outDir dist/cjs/ | ||
echo '{"type": "commonjs"}' > dist/cjs/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as z from 'zod' | ||
import * as yaml from 'js-yaml' | ||
|
||
// TODO: unify with logic in packages/compiler | ||
export function parseDocument<T>(schema: z.ZodSchema<T>, contents: string) { | ||
const match = contents.match( | ||
/^(---)?\s*(?<frontmatter>[\s\S]*?)\s*---(?<body>[\s\S]*)/, | ||
) | ||
if (!match?.groups) { | ||
return | ||
} | ||
|
||
const { frontmatter, body } = match.groups | ||
const meta = yaml.load(frontmatter) | ||
const data = { description: body.trim() } | ||
const raw = typeof meta === 'object' ? { ...meta, ...data } : data | ||
|
||
return schema.safeParse(raw) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.