Skip to content

Commit 254ee50

Browse files
authored
dist shuffle (#972)
1 parent 086a19d commit 254ee50

File tree

16 files changed

+38
-41
lines changed

16 files changed

+38
-41
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
test/build
12
test/input
23
test/output

.github/workflows/deploy.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,11 @@ jobs:
7171
working-directory: examples/plot
7272
env:
7373
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
- run: mkdir dist/examples && for i in examples/*; do if [ -d $i/dist ]; then mv -v $i/dist dist/examples/$(basename $i); fi; done
74+
- run: mkdir docs/.observablehq/dist/examples && for i in examples/*; do if [ -d $i/dist ]; then mv -v $i/dist docs/.observablehq/dist/examples/$(basename $i); fi; done
7575
- uses: cloudflare/pages-action@1
7676
with:
7777
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7878
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
7979
projectName: framework
80-
directory: dist
80+
directory: docs/.observablehq/dist
8181
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
82-
# TODO: This doesn't include the examples. How can we fix that?
83-
# TODO: Re-enable deploy to Observable
84-
# - name: Deploy to Observable
85-
# run: yarn deploy -m "$(git log -1 --pretty=%s)"
86-
# env:
87-
# OBSERVABLE_TOKEN: ${{ secrets.OBSERVABLE_API_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
**/.observablehq/cache/
22
.DS_Store
33
.env
4-
/build.test/
5-
/build/
64
/coverage/
75
/dist/
6+
/docs/.observablehq/dist/
87
/docs/theme/*.md
98
/docs/themes.md
9+
/test/build/
1010
/test/output/**/*-changed.*
1111
/test/output/build/**/*-changed/
1212
node_modules/

docs/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ yarn
1111
Next start the local preview server:
1212

1313
```sh
14-
yarn docs:dev
14+
yarn dev
1515
```
1616

1717
Lastly visit <http://127.0.0.1:3000>.
@@ -24,10 +24,10 @@ To generate the static site:
2424
yarn docs:build
2525
```
2626

27-
This creates the `dist` folder. View the site using your preferred web server, such as:
27+
This creates the `docs/.observablehq/dist` folder. View the site using your preferred web server, such as:
2828

2929
```sh
30-
http-server dist
30+
http-server docs/.observablehq/dist
3131
```
3232

3333
This documentation site is built on GitHub using Observable Framework; see the [deploy workflow](https://github.com/observablehq/framework/blob/main/.github/workflows/deploy.yml). Please open a pull request if you’d like to contribute. Contributors are expected to follow our [code of conduct](https://github.com/observablehq/.github/blob/master/CODE_OF_CONDUCT.md). 🙏

examples/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@observablehq/framework": "link:../.."

examples/chess/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@observablehq/framework": "link:../..",

examples/eia/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@observablehq/framework": "link:../..",

examples/google-analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@google-analytics/data": "^4.3.0",

examples/hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@observablehq/framework": "link:../.."

examples/mortgage-rates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "observable preview",
55
"build": "rm -rf dist && observable build",
6-
"postinstall": "ln -sf ../../../../build/bin/observable.js node_modules/.bin/observable"
6+
"postinstall": "ln -sf ../../../../dist/bin/observable.js node_modules/.bin/observable"
77
},
88
"dependencies": {
99
"@observablehq/framework": "link:../..",

0 commit comments

Comments
 (0)