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
Copy file name to clipboardExpand all lines: docs/developers.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ npm install
76
76
77
77
### Combine discovery files and documentation
78
78
79
-
If you changed the [documentation.json](#documentation.json) file or if you added/updated discovery files, you need to combine the two into one file, the **intermediate.json** file.
79
+
If you changed the [documentation.json](#documentation.json) file or if you added/updated discovery files, you need to combine the two into one file, the **.cache/combined.json** file.
80
80
81
81
This file is the result of the the manual documentation and the device discovery files. This file is almost 8000 lines of json at the moment, which is why it is ignored in git.
82
82
Being able to inspect this json file should really help in debugging the generator.
@@ -94,11 +94,14 @@ npm install
94
94
npm run intermediate-win
95
95
# on Unix/mac short for ./bin/run combine --docsFile=../../docs/documentation.json --folder=data
Once you generated the **intermediate.json** file, you can use the generator to (re)generate the [service documentation]({{ '/services' | relative_url }}). This step is mandatory if you changed either the **documentation.json** or if you added/updated one of the discovery files.
104
+
Once you generated the **combined.json** file, you can use the generator to (re)generate the [service documentation]({{ '/services' | relative_url }}). This step is mandatory if you changed either the **documentation.json** or if you added/updated one of the discovery files.
102
105
103
106
The resulting files, are **not to be changed manually**, since changes will get lost upon the next generation.
104
107
@@ -111,13 +114,16 @@ Regenerate documentation:
111
114
112
115
```bash
113
116
# Fork, clone, go to '/generator/sonos-docs' and run npm install
114
-
# generate intermediate, see above
117
+
# generate combined.json, see above
115
118
116
119
# Regenerate documentation
117
120
# on windows, short for .\\bin\\run generate docs ../../docs
118
121
npm run docs-win
119
122
# on unix/mac, short for ./bin/run generate docs ../../docs
@@ -134,7 +140,7 @@ Be sure to check out the [docs template](https://github.com/svrooij/sonos-api-do
134
140
135
141
```bash
136
142
# Fork, clone, go to '/generator/sonos-docs' and run npm install
137
-
# generate intermediate, see above
143
+
# generate combined.json, see above
138
144
139
145
# generate library
140
146
# [template-folder] can either be a folder relative to the current location, a full path to a template folder or the name of the folder inside the generator folder.
@@ -143,4 +149,7 @@ Be sure to check out the [docs template](https://github.com/svrooij/sonos-api-do
0 commit comments