Skip to content

Commit

Permalink
Merge pull request #106 from gosling-lang/sehilyi/docusaurus-3
Browse files Browse the repository at this point in the history
feat: update to docusaurus v3
  • Loading branch information
sehilyi authored Jun 27, 2024
2 parents 1150c13 + 4c30aa6 commit 06e0b2b
Show file tree
Hide file tree
Showing 18 changed files with 4,368 additions and 461 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
submodules: 'true'
- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '18.x'
- name: Test Build
run: |
if [ -e yarn.lock ]; then
Expand All @@ -36,7 +36,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '18.x'
- name: Test Build
run: |
if [ -e yarn.lock ]; then
Expand All @@ -56,4 +56,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'build' # optional: defaults to entire repository
SOURCE_DIR: 'build' # optional: defaults to entire repository
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If you want to share your Gosling visualization using the online editor with you
1. To load a spec you first have to create a gist with a file named gosling.js\* that specifies the spec.
1. You can additionally specify a `readme.md` file to describe your spec. This will be shown as a side panel on the online editor.
1. Also, be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
1. You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
1. You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.

:::
Example:
Expand Down
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const { themes } = require('prism-react-renderer');
const theme = themes.github;
module.exports = {
title: 'Gosling',
url: 'https://gosling-lang.github.io', // Your website URL
Expand All @@ -15,7 +17,7 @@ module.exports = {
],
themeConfig: {
prism: {
theme: require('prism-react-renderer/themes/github'),
theme: theme,
},
colorMode: {
defaultMode: 'light',
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@
"tag_version": "docusaurus docs:version"
},
"dependencies": {
"@docusaurus/core": "2.4.3",
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-google-analytics": "2.4.3",
"@docusaurus/plugin-google-gtag": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@mdx-js/react": "^1.6.21",
"@docusaurus/preset-classic": "^3.4.0",
"@mdx-js/react": "^3.0.1",
"antd": "^4.19.5",
"clsx": "^1.1.1",
"gosling-theme": "^0.0.10",
"gosling.js": "0.8.7",
"monaco-editor-webpack-plugin": "^4.0.0",
"pixi.js": "^6.0.4",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^7.0.1",
"react-monaco-editor": "^0.43.0"
},
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.10.1.1/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1. You can additionally specify a readme.md file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.10.1/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1. You can additionally specify a readme.md file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.11.0/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can visit the [online editor](https://gosling.js.org) to start trying Goslin
1. To load a spec you first have to create a gist with a file named gosling.js\* that specifies the spec.
1. You can additionally specify a `readme.md` file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.17.0/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can visit the [online editor](https://gosling.js.org) to start trying Goslin
1. To load a spec you first have to create a gist with a file named gosling.js\* that specifies the spec.
1. You can additionally specify a `readme.md` file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.17.1/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can visit the [online editor](https://gosling.js.org) to start trying Goslin
1. To load a spec you first have to create a gist with a file named gosling.js\* that specifies the spec.
1. You can additionally specify a `readme.md` file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.9.20/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1. You can additionally specify a readme.md file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://[editor_url]/?gist=[github_username]/[gist_id]`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.9.30/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1. You can additionally specify a readme.md file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://[editor_url]/?gist=[github_username]/[gist_id]`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.9/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1. You can additionally specify a readme.md file to describe your spec.
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3

Expand Down
26 changes: 13 additions & 13 deletions versioned_sidebars/version-0.10.1-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version-0.10.1/docs": [
"docs": [
{
"type": "doc",
"id": "version-0.10.1/getting-started"
"id": "getting-started"
},
{
"type": "category",
Expand All @@ -11,50 +11,50 @@
"items": [
{
"type": "doc",
"id": "version-0.10.1/data"
"id": "data"
},
{
"type": "doc",
"id": "version-0.10.1/genome-builds"
"id": "genome-builds"
},
{
"type": "doc",
"id": "version-0.10.1/mark"
"id": "mark"
},
{
"type": "doc",
"id": "version-0.10.1/visual-channel"
"id": "visual-channel"
},
{
"type": "doc",
"id": "version-0.10.1/composition"
"id": "composition"
},
{
"type": "doc",
"id": "version-0.10.1/user-interaction"
"id": "user-interaction"
},
{
"type": "doc",
"id": "version-0.10.1/semantic-zoom"
"id": "semantic-zoom"
}
],
"collapsible": true
},
{
"type": "doc",
"id": "version-0.10.1/js-api"
"id": "js-api"
},
{
"type": "doc",
"id": "version-0.10.1/non-gos-vis"
"id": "non-gos-vis"
},
{
"type": "doc",
"id": "version-0.10.1/public-datasets"
"id": "public-datasets"
},
{
"type": "doc",
"id": "version-0.10.1/FAQ"
"id": "FAQ"
}
]
}
26 changes: 13 additions & 13 deletions versioned_sidebars/version-0.10.1.1-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version-0.10.1.1/docs": [
"docs": [
{
"type": "doc",
"id": "version-0.10.1.1/getting-started"
"id": "getting-started"
},
{
"type": "category",
Expand All @@ -11,50 +11,50 @@
"items": [
{
"type": "doc",
"id": "version-0.10.1.1/data"
"id": "data"
},
{
"type": "doc",
"id": "version-0.10.1.1/genome-builds"
"id": "genome-builds"
},
{
"type": "doc",
"id": "version-0.10.1.1/mark"
"id": "mark"
},
{
"type": "doc",
"id": "version-0.10.1.1/visual-channel"
"id": "visual-channel"
},
{
"type": "doc",
"id": "version-0.10.1.1/composition"
"id": "composition"
},
{
"type": "doc",
"id": "version-0.10.1.1/user-interaction"
"id": "user-interaction"
},
{
"type": "doc",
"id": "version-0.10.1.1/semantic-zoom"
"id": "semantic-zoom"
}
],
"collapsible": true
},
{
"type": "doc",
"id": "version-0.10.1.1/js-api"
"id": "js-api"
},
{
"type": "doc",
"id": "version-0.10.1.1/non-gos-vis"
"id": "non-gos-vis"
},
{
"type": "doc",
"id": "version-0.10.1.1/public-datasets"
"id": "public-datasets"
},
{
"type": "doc",
"id": "version-0.10.1.1/FAQ"
"id": "FAQ"
}
]
}
24 changes: 12 additions & 12 deletions versioned_sidebars/version-0.9-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version-0.9/docs": [
"docs": [
{
"type": "doc",
"id": "version-0.9/getting-started"
"id": "getting-started"
},
{
"type": "category",
Expand All @@ -11,46 +11,46 @@
"items": [
{
"type": "doc",
"id": "version-0.9/data"
"id": "data"
},
{
"type": "doc",
"id": "version-0.9/genome-builds"
"id": "genome-builds"
},
{
"type": "doc",
"id": "version-0.9/mark"
"id": "mark"
},
{
"type": "doc",
"id": "version-0.9/visual-channel"
"id": "visual-channel"
},
{
"type": "doc",
"id": "version-0.9/composition"
"id": "composition"
},
{
"type": "doc",
"id": "version-0.9/user-interaction"
"id": "user-interaction"
},
{
"type": "doc",
"id": "version-0.9/semantic-zoom"
"id": "semantic-zoom"
}
],
"collapsible": true
},
{
"type": "doc",
"id": "version-0.9/js-api"
"id": "js-api"
},
{
"type": "doc",
"id": "version-0.9/public-datasets"
"id": "public-datasets"
},
{
"type": "doc",
"id": "version-0.9/FAQ"
"id": "FAQ"
}
]
}
Loading

0 comments on commit 06e0b2b

Please sign in to comment.