Skip to content

Commit

Permalink
Updated static file doc to show how to force download (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten authored Feb 3, 2025
1 parent c0edfae commit 161d139
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/pages/static-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ your-project/
└── ...
```

You can reference these files in your documentation like this:
You can reference these files using markdown like this:

```md
![API Architecture](/images/diagram.png)
```

If you want users to download a file like a PDF, you can use an anchor tag like this:

Download our [detailed API specification](/documents/api-spec.pdf)
```html
<a href="/documents/api-spec.pdf" download="/documents/api-spec.pdf">Download API specification</a>
```

0 comments on commit 161d139

Please sign in to comment.