Skip to content

Commit 1c8b625

Browse files
committed
update docs
1 parent 9bea1f1 commit 1c8b625

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ curl -X POST https://api.htmldocs.com/api/documents/{documentId} \
7171
-H "Authorization: Bearer YOUR_API_KEY" \
7272
-H "Content-Type: application/json" \
7373
-d '{
74-
"variables": {
74+
"format": "json",
75+
"props": {
7576
"customerName": "Acme Corp",
7677
"items": [
7778
{

apps/docs/usage/static-content.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ description: "Learn how to use static content and custom fonts in your document
44
icon: "image"
55
---
66

7+
<Note>
8+
All static files must be placed in the `/documents/static` directory of your project. This is the required location for serving static assets in your document templates.
9+
</Note>
10+
711
## Client-Side Usage
8-
Inside HTML/React components, static files are served directly from the `/static` directory. Access them using the absolute path:
12+
Inside HTML/React components, static files are served directly from the `/documents/static` directory. Access them using the absolute path:
913

1014
```tsx
1115
// Access static content on the client-side

0 commit comments

Comments
 (0)