Skip to content

Commit e188412

Browse files
docs: add demo.tutorialkit.dev website (#83)
1 parent c2f7688 commit e188412

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3564
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ jobs:
5252
- name: Build
5353
run: pnpm build
5454
- name: Build docs
55-
run: pnpm run docs:build
55+
run: |
56+
pnpm run docs:build
57+
pnpm run demo:build

docs/demo/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# generated types
2+
.astro
3+
4+
# environment variables
5+
.env
6+
.env.production

docs/demo/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# [demo.tutorialkit.dev](https://demo.tutorialkit.dev)
2+
3+
## Local Development
4+
5+
### Prerequisites
6+
7+
- Install [Node.js](https://nodejs.org/en) v18.18 or above.
8+
- Install [pnpm](https://pnpm.io/).
9+
10+
### Set up
11+
12+
Clone this repository and navigate into the cloned directory.
13+
14+
```
15+
git clone [email protected]:stackblitz/tutorialkit.git
16+
cd tutorialkit
17+
```
18+
19+
TutorialKit uses [pnpm workspaces](https://pnpm.io/workspaces). Just run the install command in the root of the project.
20+
21+
```
22+
pnpm install
23+
```
24+
25+
You can now start the demo website by running:
26+
27+
```
28+
pnpm run demo
29+
```

docs/demo/_headers

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
Cross-Origin-Embedder-Policy: require-corp
3+
Cross-Origin-Opener-Policy: same-origin

docs/demo/astro.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import tutorialkit from '@tutorialkit/astro';
2+
import { defineConfig } from 'astro/config';
3+
4+
export default defineConfig({
5+
devToolbar: {
6+
enabled: false,
7+
},
8+
integrations: [tutorialkit()],
9+
});

docs/demo/icons/languages/css.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/demo/icons/languages/html.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/demo/icons/languages/js.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/demo/icons/languages/json.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)