Skip to content

Commit 2b3e6d0

Browse files
Merge pull request #204 from codytodonnell/feature/stackblitz
Add examples section to the docs
2 parents fc4b503 + 474432a commit 2b3e6d0

4 files changed

Lines changed: 57 additions & 23 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Basic Starter Kit
2+
3+
<iframe
4+
width="100%"
5+
height="800"
6+
src="https://stackblitz.com/github/strudel-science/strudel-kit?embed=1&file=src%2Fpages%2Findex.tsx"
7+
></iframe>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Climate Data Analysis Platform
2+
3+
<iframe
4+
width="100%"
5+
height="800"
6+
src="https://stackblitz.com/github/sprblm/strudel-climate-example?embed=1&file=src%2Fpages%2Findex.tsx"
7+
></iframe>

docs/sidebars.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ const sidebars: SidebarsConfig = {
115115
},
116116
],
117117
},
118+
{
119+
type: 'category',
120+
label: 'Examples',
121+
collapsible: false,
122+
items: [
123+
'examples/basic-sandbox',
124+
'examples/climate-data-analysis-platform',
125+
],
126+
},
118127
],
119128
};
120129

docs/src/css/custom.css

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #0143CF;
9+
--ifm-color-primary: #0143cf;
1010
--ifm-color-primary-dark: #180333;
1111
--ifm-color-primary-darker: #180333;
1212
--ifm-color-primary-darkest: #180333;
13-
--ifm-color-primary-light: #D6B5FF;
14-
--ifm-color-primary-lighter: #D6B5FF;
15-
--ifm-color-primary-lightest: #D6B5FF;
13+
--ifm-color-primary-light: #d6b5ff;
14+
--ifm-color-primary-lighter: #d6b5ff;
15+
--ifm-color-primary-lightest: #d6b5ff;
1616
--ifm-code-font-size: 95%;
17-
--ifm-table-stripe-background: #EEEEEE;
18-
--ifm-background-color: #FFFFFF;
19-
--ifm-background-surface-color: #FFFFFF;
17+
--ifm-table-stripe-background: #eeeeee;
18+
--ifm-background-color: #ffffff;
19+
--ifm-background-surface-color: #ffffff;
2020
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
2121
}
2222

@@ -33,30 +33,30 @@
3333
} */
3434

3535
html[data-theme='dark'] {
36-
--ifm-color-primary: #D6B5FF;
37-
--ifm-color-primary-dark: #4F4063;
38-
--ifm-color-primary-darker: #4F4063;
39-
--ifm-color-primary-darkest: #4F4063;
40-
--ifm-color-primary-light: #F7F0FF;
41-
--ifm-color-primary-lighter: #F7F0FF;
42-
--ifm-color-primary-lightest: #F7F0FF;
43-
--ifm-table-stripe-background: #2E2E38;
44-
--ifm-background-color: #1E1E24;
45-
--ifm-background-surface-color: #2E2E38;
36+
--ifm-color-primary: #d6b5ff;
37+
--ifm-color-primary-dark: #4f4063;
38+
--ifm-color-primary-darker: #4f4063;
39+
--ifm-color-primary-darkest: #4f4063;
40+
--ifm-color-primary-light: #f7f0ff;
41+
--ifm-color-primary-lighter: #f7f0ff;
42+
--ifm-color-primary-lightest: #f7f0ff;
43+
--ifm-table-stripe-background: #2e2e38;
44+
--ifm-background-color: #1e1e24;
45+
--ifm-background-surface-color: #2e2e38;
4646
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
4747
}
4848

4949
.footer {
50-
--ifm-footer-background-color: #EEEEEE;
50+
--ifm-footer-background-color: #eeeeee;
5151
--ifm-footer-color: #000000;
5252
--ifm-footer-title-color: #000000;
5353
--ifm-footer-link-color: var(--ifm-color-primary);
5454
}
5555

5656
html[data-theme='dark'] .footer--dark {
57-
--ifm-footer-background-color: #2E2E38;
58-
--ifm-footer-color: #FFFFFF;
59-
--ifm-footer-title-color: #FFFFFF;
57+
--ifm-footer-background-color: #2e2e38;
58+
--ifm-footer-color: #ffffff;
59+
--ifm-footer-title-color: #ffffff;
6060
--ifm-footer-link-color: var(--ifm-color-primary);
6161
}
6262

@@ -74,7 +74,9 @@ html[data-theme='dark'] .footer--dark {
7474
opacity: 0.6;
7575
}
7676

77-
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible .menu__link--active {
77+
.theme-doc-sidebar-item-category-level-1
78+
> .menu__list-item-collapsible
79+
.menu__link--active {
7880
color: var(--ifm-menu-color);
7981
}
8082

@@ -86,4 +88,13 @@ html[data-theme='dark'] .footer--dark {
8688
.playgroundPreview_node_modules-\@docusaurus-theme-live-codeblock-lib-theme-Playground-styles-module {
8789
margin-bottom: 0.5rem;
8890
border-radius: var(--ifm-code-border-radius);
89-
}
91+
}
92+
93+
.docs-doc-id-examples\/basic-sandbox .container,
94+
.docs-doc-id-examples\/basic-sandbox .container .row,
95+
.docs-doc-id-examples\/basic-sandbox .container .row .col,
96+
.docs-doc-id-examples\/climate-data-analysis-platform .container,
97+
.docs-doc-id-examples\/climate-data-analysis-platform .container .row,
98+
.docs-doc-id-examples\/climate-data-analysis-platform .container .row .col {
99+
max-width: 100% !important;
100+
}

0 commit comments

Comments
 (0)