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: CONTRIBUTING.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,20 +210,18 @@ You can build and test PennyLane demos locally using the QML CLI tool, allowing
210
210
211
211
>**Note:** Local HTML builds will differ visually from the production site or PR previews. These differences are expected;local builds are intended for functional testing rather than visual accuracy.
212
212
213
-
If you do not specify a `--format` option, the demo will be built in JSON format by default.
214
-
215
213
### Building a Demo in HTML Format
216
214
217
-
To build your demo in HTML format, navigate to the root directory of your demo and run:
215
+
To build your demo in HTML format, navigate to the root directory of the repository and run:
218
216
219
217
```bash
220
-
qml build --format html
218
+
qml build --format html <name_of_your_demo>
221
219
```
222
220
223
221
The generated HTML file will be located at:
224
222
225
223
```
226
-
_build/html/demos/<name_of_your_tutorial>.html
224
+
_build/html/demos/<name_of_your_demo>.html
227
225
```
228
226
229
227
Open this file in your web browser to view the demo content.
@@ -233,7 +231,7 @@ Open this file in your web browser to view the demo content.
233
231
To build your demo in JSON format, use:
234
232
235
233
```bash
236
-
qml build --format json <demo_name>
234
+
qml build --format json <name_of_your_demo>
237
235
```
238
236
239
237
The output will be generated in the following directories:
@@ -243,6 +241,8 @@ The output will be generated in the following directories:
243
241
244
242
>**Note:** You may also add the `--execute` option to execute the demo during the build process.
245
243
244
+
If you do not specify a `--format` option, the demo will be built in JSON format by default.
0 commit comments