Skip to content

Commit b3110f7

Browse files
committed
update docs
1 parent 8c1290c commit b3110f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/docs/cli.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Starts a local development server that will watch your files and automatically r
4747

4848
Publishes 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>

apps/docs/guides/publishing-to-the-cloud.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ This command will open a browser window where you can:
3131

3232
Once 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
3537
htmldocs publish ./documents/templates/Invoice.tsx
3638
```
3739

40+
3841
<Note>
3942
Make sure your template has a unique `documentId` defined before publishing:
40-
4143
```tsx
4244
Invoice.documentId = "invoice";
4345
export default Invoice;

0 commit comments

Comments
 (0)