Skip to content

Commit 45fc7f2

Browse files
committed
feat: update to docusaurus v3
1 parent b1ab56f commit 45fc7f2

File tree

17 files changed

+4365
-458
lines changed

17 files changed

+4365
-458
lines changed

docs/usage.md

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

docusaurus.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('@docusaurus/types').DocusaurusConfig} */
2+
const { themes } = require('prism-react-renderer');
3+
const theme = themes.github;
24
module.exports = {
35
title: 'Gosling',
46
url: 'https://gosling-lang.github.io', // Your website URL
@@ -15,7 +17,7 @@ module.exports = {
1517
],
1618
themeConfig: {
1719
prism: {
18-
theme: require('prism-react-renderer/themes/github'),
20+
theme: theme,
1921
},
2022
colorMode: {
2123
defaultMode: 'light',

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
"tag_version": "docusaurus docs:version"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.4.3",
18+
"@docusaurus/core": "^3.4.0",
1919
"@docusaurus/plugin-google-analytics": "2.4.3",
2020
"@docusaurus/plugin-google-gtag": "2.4.3",
21-
"@docusaurus/preset-classic": "2.4.3",
22-
"@mdx-js/react": "^1.6.21",
21+
"@docusaurus/preset-classic": "^3.4.0",
22+
"@mdx-js/react": "^3.0.1",
2323
"antd": "^4.19.5",
2424
"clsx": "^1.1.1",
2525
"gosling-theme": "^0.0.10",
2626
"gosling.js": "0.8.7",
2727
"monaco-editor-webpack-plugin": "^4.0.0",
2828
"pixi.js": "^6.0.4",
29-
"react": "^17.0.1",
30-
"react-dom": "^17.0.1",
29+
"prism-react-renderer": "^2.3.1",
30+
"react": "^18.3.1",
31+
"react-dom": "^18.3.1",
3132
"react-markdown": "^7.0.1",
3233
"react-monaco-editor": "^0.43.0"
3334
},

versioned_docs/version-0.10.1.1/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1616
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1717
1. You can additionally specify a readme.md file to describe your spec.
1818
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
19-
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
19+
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id`.
2020
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
2121
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3
2222

versioned_docs/version-0.10.1/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1616
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1717
1. You can additionally specify a readme.md file to describe your spec.
1818
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
19-
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
19+
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
2020
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
2121
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3
2222

versioned_docs/version-0.11.0/usage.md

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

versioned_docs/version-0.17.0/usage.md

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

versioned_docs/version-0.17.1/usage.md

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

versioned_docs/version-0.9.20/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1616
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1717
1. You can additionally specify a readme.md file to describe your spec.
1818
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
19-
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
19+
You can then open your visualization at `http://[editor_url]/?gist=[github_username]/[gist_id]`.
2020
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
2121
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3
2222

versioned_docs/version-0.9.30/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1616
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1717
1. You can additionally specify a readme.md file to describe your spec.
1818
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
19-
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
19+
You can then open your visualization at `http://[editor_url]/?gist=[github_username]/[gist_id]`.
2020
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
2121
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3
2222

versioned_docs/version-0.9/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can visit [Online Editor](https://gosling.js.org) to visualize your data dir
1616
1. To load a spec you first have to create a gist with a file named gosling.js* that specifies the spec.
1717
1. You can additionally specify a readme.md file to describe your spec.
1818
1. Also be sure to give your gist a fabulous title. It'll be shown in the gosling editor.
19-
You can then open your visualization at <a>http://<editor_url>/?gist=<github_username>/<gist_id></a>.
19+
You can then open your visualization at `http://<editor_url>/?gist=<github_username>/<gist_id>`.
2020
<!-- For example, https://gosling.js.org/?gist=flekschas/e6e388332814886d4d714efd0e88093b -->
2121
For example, https://gosling.js.org/?gist=wangqianwen0418/1cc79f00990806f07b379ae6a7c7b7b3
2222

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version-0.10.1/docs": [
2+
"docs": [
33
{
44
"type": "doc",
5-
"id": "version-0.10.1/getting-started"
5+
"id": "getting-started"
66
},
77
{
88
"type": "category",
@@ -11,50 +11,50 @@
1111
"items": [
1212
{
1313
"type": "doc",
14-
"id": "version-0.10.1/data"
14+
"id": "data"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-0.10.1/genome-builds"
18+
"id": "genome-builds"
1919
},
2020
{
2121
"type": "doc",
22-
"id": "version-0.10.1/mark"
22+
"id": "mark"
2323
},
2424
{
2525
"type": "doc",
26-
"id": "version-0.10.1/visual-channel"
26+
"id": "visual-channel"
2727
},
2828
{
2929
"type": "doc",
30-
"id": "version-0.10.1/composition"
30+
"id": "composition"
3131
},
3232
{
3333
"type": "doc",
34-
"id": "version-0.10.1/user-interaction"
34+
"id": "user-interaction"
3535
},
3636
{
3737
"type": "doc",
38-
"id": "version-0.10.1/semantic-zoom"
38+
"id": "semantic-zoom"
3939
}
4040
],
4141
"collapsible": true
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-0.10.1/js-api"
45+
"id": "js-api"
4646
},
4747
{
4848
"type": "doc",
49-
"id": "version-0.10.1/non-gos-vis"
49+
"id": "non-gos-vis"
5050
},
5151
{
5252
"type": "doc",
53-
"id": "version-0.10.1/public-datasets"
53+
"id": "public-datasets"
5454
},
5555
{
5656
"type": "doc",
57-
"id": "version-0.10.1/FAQ"
57+
"id": "FAQ"
5858
}
5959
]
6060
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version-0.10.1.1/docs": [
2+
"docs": [
33
{
44
"type": "doc",
5-
"id": "version-0.10.1.1/getting-started"
5+
"id": "getting-started"
66
},
77
{
88
"type": "category",
@@ -11,50 +11,50 @@
1111
"items": [
1212
{
1313
"type": "doc",
14-
"id": "version-0.10.1.1/data"
14+
"id": "data"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-0.10.1.1/genome-builds"
18+
"id": "genome-builds"
1919
},
2020
{
2121
"type": "doc",
22-
"id": "version-0.10.1.1/mark"
22+
"id": "mark"
2323
},
2424
{
2525
"type": "doc",
26-
"id": "version-0.10.1.1/visual-channel"
26+
"id": "visual-channel"
2727
},
2828
{
2929
"type": "doc",
30-
"id": "version-0.10.1.1/composition"
30+
"id": "composition"
3131
},
3232
{
3333
"type": "doc",
34-
"id": "version-0.10.1.1/user-interaction"
34+
"id": "user-interaction"
3535
},
3636
{
3737
"type": "doc",
38-
"id": "version-0.10.1.1/semantic-zoom"
38+
"id": "semantic-zoom"
3939
}
4040
],
4141
"collapsible": true
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-0.10.1.1/js-api"
45+
"id": "js-api"
4646
},
4747
{
4848
"type": "doc",
49-
"id": "version-0.10.1.1/non-gos-vis"
49+
"id": "non-gos-vis"
5050
},
5151
{
5252
"type": "doc",
53-
"id": "version-0.10.1.1/public-datasets"
53+
"id": "public-datasets"
5454
},
5555
{
5656
"type": "doc",
57-
"id": "version-0.10.1.1/FAQ"
57+
"id": "FAQ"
5858
}
5959
]
6060
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version-0.9/docs": [
2+
"docs": [
33
{
44
"type": "doc",
5-
"id": "version-0.9/getting-started"
5+
"id": "getting-started"
66
},
77
{
88
"type": "category",
@@ -11,46 +11,46 @@
1111
"items": [
1212
{
1313
"type": "doc",
14-
"id": "version-0.9/data"
14+
"id": "data"
1515
},
1616
{
1717
"type": "doc",
18-
"id": "version-0.9/genome-builds"
18+
"id": "genome-builds"
1919
},
2020
{
2121
"type": "doc",
22-
"id": "version-0.9/mark"
22+
"id": "mark"
2323
},
2424
{
2525
"type": "doc",
26-
"id": "version-0.9/visual-channel"
26+
"id": "visual-channel"
2727
},
2828
{
2929
"type": "doc",
30-
"id": "version-0.9/composition"
30+
"id": "composition"
3131
},
3232
{
3333
"type": "doc",
34-
"id": "version-0.9/user-interaction"
34+
"id": "user-interaction"
3535
},
3636
{
3737
"type": "doc",
38-
"id": "version-0.9/semantic-zoom"
38+
"id": "semantic-zoom"
3939
}
4040
],
4141
"collapsible": true
4242
},
4343
{
4444
"type": "doc",
45-
"id": "version-0.9/js-api"
45+
"id": "js-api"
4646
},
4747
{
4848
"type": "doc",
49-
"id": "version-0.9/public-datasets"
49+
"id": "public-datasets"
5050
},
5151
{
5252
"type": "doc",
53-
"id": "version-0.9/FAQ"
53+
"id": "FAQ"
5454
}
5555
]
5656
}

0 commit comments

Comments
 (0)