File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ Starts a local development server that will watch your files and automatically r
47
47
48
48
Publishes the document to the cloud for API use. Must be [ authenticated] ( /cli#htmldocs-login ) .
49
49
50
+ <Warning >Be sure to run this from the root of your project.</Warning >
51
+
50
52
** Options**
51
53
52
54
<ResponseField name = " file" type = " string" required >
Original file line number Diff line number Diff line change @@ -31,13 +31,15 @@ This command will open a browser window where you can:
31
31
32
32
Once authenticated, you can publish your document templates using the ` publish ` command:
33
33
34
+ <Warning >Be sure to run this from the root of your project.</Warning >
35
+
34
36
``` bash
35
37
htmldocs publish ./documents/templates/Invoice.tsx
36
38
```
37
39
40
+
38
41
<Note >
39
42
Make sure your template has a unique ` documentId ` defined before publishing:
40
-
41
43
``` tsx
42
44
Invoice .documentId = " invoice" ;
43
45
export default Invoice ;
You can’t perform that action at this time.
0 commit comments