Skip to content

Commit 1b8e5da

Browse files
committed
build: update storybook to build as main docs site
1 parent 3ed8327 commit 1b8e5da

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
- "pnpm-lock.yaml"
66
"documentation":
77
- "docs/**/*"
8-
- "mkdocs.yml"
98
- "README.md"

.github/workflows/docs.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@ on:
55
paths:
66
- docs/**
77
- components/**
8-
- mkdocs.yml
98
branches: [main]
109
# Allow manual trigger (workflow_dispatch)
1110
workflow_dispatch:
1211

1312
jobs:
14-
build_stories:
15-
uses: hotosm/gh-workflows/.github/workflows/[email protected].1
13+
build:
14+
uses: hotosm/gh-workflows/.github/workflows/[email protected].3
1615
with:
1716
command: build:docs
18-
output_path: docs/stories
19-
20-
publish_docs:
21-
uses: hotosm/gh-workflows/.github/workflows/[email protected]
22-
needs: [build_stories]
23-
with:
24-
include_artifacts: true
17+
output_path: docs
18+
github_pages: true

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ package-lock.json
2525
yarn.lock
2626

2727
# Docs build
28-
docs/stories
29-
docs/components.json
28+
docs
3029
site
3130

3231
.cache

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"scripts": {
5151
"dev": "storybook dev -p 3001 --no-open",
52-
"build:docs": "storybook build --output-dir docs/stories",
52+
"build:docs": "storybook build --output-dir docs",
5353
"build": "node scripts/build.js && npm run build-themes && npm run build-assets",
5454
"build-themes": "cp -R src/themes dist && cp src/style.css dist",
5555
"build-assets": "cp -R src/assets dist"

0 commit comments

Comments
 (0)