Skip to content

Commit 550b3ad

Browse files
Mutations Example (#318)
* chore: mutatoins * chore: notebook mutations * chore: mutations * chore: mutations * example: mutating notebook * chore: datalayer kernel provider * Automatic application of license header * chore: credits config --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 88d9d16 commit 550b3ad

30 files changed

+860
-564
lines changed

docs/docusaurus.config.js

Lines changed: 168 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ module.exports = {
2020
projectName: 'Jupyter UI',
2121
plugins: [
2222
'@datalayer/jupyter-docusaurus-plugin',
23-
'@docusaurus/theme-live-codeblock'
23+
'@docusaurus/theme-live-codeblock',
24+
'docusaurus-lunr-search',
2425
],
2526
/*
2627
'docusaurus-plugin-typedoc',
@@ -29,163 +30,173 @@ module.exports = {
2930
tsconfig: '../tsconfig.json',
3031
},
3132
*/
32-
themeConfig: {
33-
colorMode: {
34-
defaultMode: 'light',
35-
disableSwitch: true,
36-
},
37-
liveCodeBlock: {
38-
playgroundPosition: 'bottom',
39-
},
40-
navbar: {
41-
title: 'Jupyter UI',
42-
logo: {
43-
alt: 'Datalayer Logo',
44-
src: 'img/datalayer/logo.svg',
33+
themes: [
34+
'@docusaurus/theme-mermaid',
35+
],
36+
themeConfig: {
37+
colorMode: {
38+
defaultMode: 'light',
39+
disableSwitch: true,
40+
},
41+
prism: {
42+
additionalLanguages: ['bash'],
43+
},
44+
liveCodeBlock: {
45+
playgroundPosition: 'bottom',
46+
},
47+
navbar: {
48+
title: 'Jupyter UI',
49+
logo: {
50+
alt: 'Datalayer Logo',
51+
src: 'img/datalayer/logo.svg',
52+
},
53+
items: [
54+
{
55+
type: 'doc',
56+
docId: 'about/index',
57+
position: 'left',
58+
label: 'About',
59+
},
60+
{
61+
type: 'doc',
62+
docId: '/category/develop',
63+
position: 'left',
64+
label: 'Develop',
65+
},
66+
{
67+
type: 'doc',
68+
docId: '/category/components',
69+
position: 'left',
70+
label: 'Components',
71+
},
72+
{
73+
type: 'doc',
74+
docId: '/category/state',
75+
position: 'left',
76+
label: 'State',
77+
},
78+
{
79+
type: 'doc',
80+
docId: '/category/deployments',
81+
position: 'left',
82+
label: 'Deployments',
83+
},
84+
{
85+
type: 'doc',
86+
docId: '/category/examples',
87+
position: 'left',
88+
label: 'Examples',
89+
},
90+
{
91+
type: 'doc',
92+
docId: '/category/integrations',
93+
position: 'left',
94+
label: 'Integrations',
95+
},
96+
{
97+
type: 'doc',
98+
docId: '/category/themes',
99+
position: 'left',
100+
label: 'Themes',
101+
},
102+
{
103+
type: 'doc',
104+
docId: '/category/demos',
105+
position: 'left',
106+
label: 'Demos',
107+
},
108+
{
109+
type: 'doc',
110+
docId: 'resources/index',
111+
position: 'left',
112+
label: 'Resources',
113+
},
114+
{
115+
type: 'doc',
116+
docId: 'support/index',
117+
position: 'left',
118+
label: 'Support',
119+
},
120+
{
121+
type: 'doc',
122+
docId: 'license/index',
123+
position: 'left',
124+
label: 'License',
125+
},
126+
{
127+
href: 'https://www.linkedin.com/company/datalayer',
128+
position: 'right',
129+
className: 'header-linkedin-link',
130+
'aria-label': 'Linkedin',
131+
},
132+
{
133+
href: 'https://x.com/DatalayerIO',
134+
position: 'right',
135+
className: 'header-x-link',
136+
'aria-label': 'X',
137+
},
138+
{
139+
href: 'https://github.com/datalayer/jupyter-ui',
140+
position: 'right',
141+
className: 'header-github-link',
142+
'aria-label': 'GitHub repository',
143+
},
144+
{
145+
href: 'https://datalayer.tech',
146+
position: 'right',
147+
className: 'header-datalayer-io-link',
148+
'aria-label': 'Datalayer Tech',
149+
},
150+
],
151+
},
152+
footer: {
153+
style: 'dark',
154+
links: [
155+
{
156+
title: 'Community',
157+
items: [
158+
{
159+
label: 'GitHub',
160+
href: 'https://github.com/datalayer',
161+
},
162+
{
163+
label: 'X',
164+
href: 'https://x.com/datalayerio',
165+
},
166+
{
167+
label: 'Linkedin',
168+
href: 'https://www.linkedin.com/company/datalayer',
169+
},
170+
],
171+
},
172+
{
173+
title: 'More',
174+
items: [
175+
{
176+
label: 'Datalayer',
177+
href: 'https://datalayer.io',
178+
},
179+
{
180+
label: 'Datalayer Docs',
181+
href: 'https://docs.datalayer.io',
182+
},
183+
{
184+
label: 'Datalayer Tech',
185+
href: 'https://datalayer.tech',
186+
},
187+
{
188+
label: 'Datalayer Guide',
189+
href: 'https://datalayer.guide',
190+
},
191+
{
192+
label: 'Datalayer Blog',
193+
href: 'https://datalayer.blog',
194+
},
195+
],
196+
}
197+
],
198+
copyright: `Copyright © ${new Date().getFullYear()} Datalayer, Inc.`,
45199
},
46-
items: [
47-
{
48-
type: 'doc',
49-
docId: 'about/index',
50-
position: 'left',
51-
label: 'About',
52-
},
53-
{
54-
type: 'doc',
55-
docId: '/category/develop',
56-
position: 'left',
57-
label: 'Develop',
58-
},
59-
{
60-
type: 'doc',
61-
docId: '/category/components',
62-
position: 'left',
63-
label: 'Components',
64-
},
65-
{
66-
type: 'doc',
67-
docId: '/category/state',
68-
position: 'left',
69-
label: 'State',
70-
},
71-
{
72-
type: 'doc',
73-
docId: '/category/deployments',
74-
position: 'left',
75-
label: 'Deployments',
76-
},
77-
{
78-
type: 'doc',
79-
docId: '/category/examples',
80-
position: 'left',
81-
label: 'Examples',
82-
},
83-
{
84-
type: 'doc',
85-
docId: '/category/integrations',
86-
position: 'left',
87-
label: 'Integrations',
88-
},
89-
{
90-
type: 'doc',
91-
docId: '/category/themes',
92-
position: 'left',
93-
label: 'Themes',
94-
},
95-
{
96-
type: 'doc',
97-
docId: '/category/demos',
98-
position: 'left',
99-
label: 'Demos',
100-
},
101-
{
102-
type: 'doc',
103-
docId: 'resources/index',
104-
position: 'left',
105-
label: 'Resources',
106-
},
107-
{
108-
type: 'doc',
109-
docId: 'support/index',
110-
position: 'left',
111-
label: 'Support',
112-
},
113-
{
114-
type: 'doc',
115-
docId: 'license/index',
116-
position: 'left',
117-
label: 'License',
118-
},
119-
{
120-
href: 'https://www.linkedin.com/company/datalayer',
121-
position: 'right',
122-
className: 'header-linkedin-link',
123-
'aria-label': 'Linkedin',
124-
},
125-
{
126-
href: 'https://x.com/DatalayerIO',
127-
position: 'right',
128-
className: 'header-x-link',
129-
'aria-label': 'X',
130-
},
131-
{
132-
href: 'https://github.com/datalayer/jupyter-ui',
133-
position: 'right',
134-
className: 'header-github-link',
135-
'aria-label': 'GitHub repository',
136-
},
137-
{
138-
href: 'https://datalayer.tech',
139-
position: 'right',
140-
className: 'header-datalayer-io-link',
141-
'aria-label': 'Datalayer Tech',
142-
},
143-
],
144-
},
145-
footer: {
146-
style: 'dark',
147-
links: [
148-
{
149-
title: 'Community',
150-
items: [
151-
{
152-
label: 'GitHub',
153-
href: 'https://github.com/datalayer',
154-
},
155-
{
156-
label: 'X',
157-
href: 'https://x.com/datalayerio',
158-
},
159-
{
160-
label: 'Linkedin',
161-
href: 'https://www.linkedin.com/company/datalayer',
162-
},
163-
],
164-
},
165-
{
166-
title: 'More',
167-
items: [
168-
{
169-
label: 'Datalayer',
170-
href: 'https://datalayer.io',
171-
},
172-
{
173-
label: 'Datalayer Tech',
174-
href: 'https://datalayer.tech',
175-
},
176-
{
177-
label: 'Datalayer Guide',
178-
href: 'https://datalayer.guide',
179-
},
180-
{
181-
label: 'Datalayer Blog',
182-
href: 'https://datalayer.blog',
183-
},
184-
],
185-
}
186-
],
187-
copyright: `Copyright © ${new Date().getFullYear()} Datalayer, Inc.`,
188-
},
189200
},
190201
presets: [
191202
[

docs/package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
8-
"build": "docusaurus build",
8+
"build": "cross-env USE_SIMPLE_CSS_MINIFIER=true docusaurus build",
99
"swizzle": "docusaurus swizzle",
1010
"deploy": "docusaurus deploy",
1111
"clear": "docusaurus clear",
@@ -16,11 +16,14 @@
1616
},
1717
"dependencies": {
1818
"@datalayer/jupyter-docusaurus-plugin": "^0.1.1",
19-
"@docusaurus/core": "2.4.0",
20-
"@docusaurus/preset-classic": "2.4.0",
21-
"@docusaurus/theme-live-codeblock": "2.4.0",
22-
"@mdx-js/react": "^1.6.22",
23-
"clsx": "^1.2.1",
19+
"@docusaurus/core": "3.4.0",
20+
"@docusaurus/preset-classic": "3.4.0",
21+
"@docusaurus/theme-live-codeblock": "3.4.0",
22+
"@docusaurus/theme-mermaid": "3.4.0",
23+
"@mdx-js/react": "^3.0.1",
24+
"@primer/react-brand": "0.37.0-rc.ab1bfc11",
25+
"clsx": "^2.1.1",
26+
"docusaurus-lunr-search": "3.5.0",
2427
"docusaurus-plugin-typedoc": "~0.17.5",
2528
"react": "^18.2.0",
2629
"react-dom": "^18.2.0",
@@ -29,7 +32,9 @@
2932
"typedoc-plugin-markdown": "^3.13.5"
3033
},
3134
"devDependencies": {
32-
"@types/node": "^18.15.3",
35+
"@docusaurus/module-type-aliases": "3.4.0",
36+
"@tsconfig/docusaurus": "2.0.3",
37+
"cross-env": "^7.0.3",
3338
"typescript": "~5.0.3"
3439
},
3540
"browserslist": {

docs/src/components/HomepageFeatures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const FeatureList = [
1414
Svg: require('../../static/img/target.svg').default,
1515
description: (
1616
<>
17-
Jupyter UI lets you focus on your work, and we&apos;ll do the chores. Check the <a href="https://datalayer.tech/docs/support" target="_blank" style={{ textDecoration: "underline" }}>support options</a>.
17+
Jupyter UI lets you focus on your work, and we&apos;ll do the chores. Check the <a href="https://datalayer.tech/docs/services/support" target="_blank" style={{ textDecoration: "underline" }}>support options</a>.
1818
</>
1919
),
2020
},

0 commit comments

Comments
 (0)