Skip to content

Commit

Permalink
Revert changes to the docs build (#1226)
Browse files Browse the repository at this point in the history
Undoes #1222 and
891bf3e to get the documentation site to build.

I am still unsure why does it sometime fail due to a missing
`models.json` file. Perhaps it skips the `build:json` part of the
process somehow? Let's keep observing the subsequent builds.
  • Loading branch information
adamziel authored Apr 11, 2024
1 parent d1e3ed1 commit d135caf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "nx run-many --all --target=build",
"build:website": "nx build playground-website",
"build:docs": "nx build-docs docs-site",
"build:docs": "nx build docs-site",
"deploy:docs": "gh-pages -d dist/docs/build -t true",
"dev": "nx dev playground-website",
"format": "nx format",
Expand Down
23 changes: 8 additions & 15 deletions packages/docs/site/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@
"playground-client"
],
"targets": {
"build:json": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx typedoc --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-resolve-crossmodule-references --json packages/docs/site/src/model.json"
],
"parallel": false
}
},
"build-docs": {
"build": {
"executor": "nx:run-commands",
"options": {
"commands": [
Expand All @@ -28,13 +19,15 @@
},
"dependsOn": ["build:json"]
},
"build": {
"build:json": {
"executor": "nx:run-commands",
"options": {
"commands": ["docusaurus build"],
"cwd": "packages/docs/site"
},
"dependsOn": ["build-docs"]
"commands": [
"npx typedoc --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-resolve-crossmodule-references --json packages/docs/site/src/model.json",
"echo Built `pwd`/packages/docs/site/src/model.json file"
],
"parallel": false
}
},
"swizzle": {
"executor": "nx:run-commands",
Expand Down

0 comments on commit d135caf

Please sign in to comment.