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
4747
4848Publishes the document to the cloud for API use. Must be [ authenticated] ( /cli#htmldocs-login ) .
4949
50+ <Warning >Be sure to run this from the root of your project.</Warning >
51+
5052** Options**
5153
5254<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:
3131
3232Once authenticated, you can publish your document templates using the ` publish ` command:
3333
34+ <Warning >Be sure to run this from the root of your project.</Warning >
35+
3436``` bash
3537htmldocs publish ./documents/templates/Invoice.tsx
3638```
3739
40+
3841<Note >
3942Make sure your template has a unique ` documentId ` defined before publishing:
40-
4143``` tsx
4244Invoice .documentId = " invoice" ;
4345export default Invoice ;
You can’t perform that action at this time.
0 commit comments