docs-public.
If so, you can serve all requests by your app code except for those that start with /docs,
which you serve with your generated docs.
Use a web configuration similar to the following:
.upsun/config.yaml
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Serve directories at different places than where they are in your app.
.upsun/
config.yaml
application/
[app-code-files]
docs-src/
[docs-code-files]
docs-public.
If so, you can serve all requests by your app code except for those that start with /docs,
which you serve with your generated docs.
Use a web configuration similar to the following:
applications:
docs:
source:
root: "/"
web:
locations:
'/':
passthru: true
'/docs':
root: 'docs-public'
index:
- "index.html"
expires: 24h
scripts: false
allow: true
Was this page helpful?