You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next we need to fix the generated files. (Note: this step could probably be incorporated into ember-jsonapi-docs
53
+
but for now this step works).
54
+
55
+
```sh
56
+
node ./clean-urls.js
57
+
node ./fix-rev-index.js
58
+
git add .
59
+
git commit -m "fix urls and rev-index for ember"
51
60
```
52
61
53
-
> ℹ️ **NOTE:**`--version` should match the one in the `package.json` of a target Ember project. If `package.json` uses a release name (e.g. `beta` or `canary`), omit it and use only numbers. For example, if the `package.json` says `3.19.0-beta.2`, use `3.19.0`.
62
+
Lastly we need to make sure that each of the new files are valid. You need to run the test suite in `ember-api-docs-data`
54
63
55
-
> ✅ **TIP:** If you are debugging failed builds, periodically discard the changes
56
-
made to `ember-api-docs-data`, since changes are made in-place.
64
+
```sh
65
+
npm i
66
+
npm test
67
+
```
57
68
58
-
## View the generated docs in a web app
69
+
If you see any errors e.g. `AssertionError: expected '' not to be empty` you need to manually fix these. These are caused by bugs in the yuidoc generation and can probably be fixed in the source files somehow.
59
70
60
-
From the [ember-api-docs-data](https://github.com/ember-learn/ember-api-docs-data)
61
-
repository, start a server for the JSON files:
71
+
Once all of the fixes are in place you can commit them:
62
72
73
+
```sh
74
+
git add .
75
+
git commit -m "fixing tests for ember"
63
76
```
64
-
yarn serve
77
+
78
+
---
79
+
80
+
Once that is all committed I would recommend doing the same thing for ember-data with new commits:
81
+
82
+
```sh
83
+
cd ../ember-jsonapi-docs
84
+
yarn gen --project ember-data --version "5.2.0"
85
+
86
+
cd ../ember-api-docs-data
87
+
88
+
git add .
89
+
git commit -m "add docs for ember-data v5.2.0"
90
+
91
+
node ./clean-urls.js
92
+
node ./fix-rev-index.js
93
+
git add .
94
+
git commit -m "fix urls and rev-index for ember-data"
95
+
96
+
npm test
97
+
98
+
# if you needed to fix any files you do that now and then
99
+
git add .
100
+
git commit -m "fixing tests for ember-data"
65
101
```
66
102
103
+
Once that is all done, push it and open a PR 🎉
104
+
105
+
> ℹ️ **NOTE:**`--version` should match the one in the `package.json` of a target Ember project. If `package.json` uses a release name (e.g. `beta` or `canary`), omit it and use only numbers. For example, if the `package.json` says `3.19.0-beta.2`, use `3.19.0`.
106
+
107
+
> ✅ **TIP:** If you are debugging failed builds, periodically discard the changes
108
+
made to `ember-api-docs-data`, since changes are made in-place.
109
+
110
+
## (Optional) View the generated docs in a web app
111
+
112
+
The Prembered version of the ember-api-docs expects a folder in its root that links to the `ember-api-docs-data` folder, so all you need to do is create a symbolic link to ember-api-docs-data and you can see the app running locally.
113
+
67
114
Clone the [ember-api-docs](https://github.com/ember-learn/ember-api-docs)
68
115
repository, install dependencies, and start the front end in "local" mode:
0 commit comments