@@ -368,6 +368,52 @@ pypi: "https://packages.example.com/simple/my-package"
368368When ` pypi ` is ` true ` (the default), the link is auto-generated as
369369` https://pypi.org/project/{package_name}/ ` .
370370
371+ ## Site URL
372+
373+ Set ` site_url ` to the canonical URL where your documentation site is (or will be) hosted.
374+ This value is used in several places:
375+
376+ - ** Skills page** install instructions (e.g., ` npx skills add <url> ` )
377+ - ** ` .well-known/ ` discovery** endpoints for agent skills
378+ - ** Quarto's ` website.site-url ` ** (canonical links, sitemaps)
379+ - ** Subdirectory deployments** where the site lives at a path other than ` / `
380+ (e.g., ` https://internal.example.com/docs/mypackage/ ` )
381+
382+ Without it, the Skills page renders literal ` <site-url> ` placeholders instead of working
383+ install commands, and subdirectory-hosted sites will have broken asset paths.
384+
385+ ``` {.yaml filename="great-docs.yml"}
386+ # Site URL: the canonical address of the deployed documentation site.
387+ # Used for skills page install commands, .well-known/ discovery, and sitemaps.
388+ site_url: "https://your-org.github.io/your-package/"
389+ ```
390+
391+ Alternatively, you can set a ` Documentation ` entry in ` pyproject.toml ` :
392+
393+ ``` {.toml filename="pyproject.toml"}
394+ [project .urls ]
395+ Documentation = " https://your-org.github.io/your-package/"
396+ ```
397+
398+ Great Docs checks these sources in order:
399+
400+ 1 . ` site_url ` in ` great-docs.yml `
401+ 2 . ` Documentation ` URL in ` [project.urls] ` (pyproject.toml)
402+ 3 . ` website.site-url ` already present in ` _quarto.yml `
403+
404+ If none are found, the build emits a warning:
405+
406+ ```
407+ ⚠ No site URL found — skills page will show <site-url> placeholders.
408+ Set site_url in great-docs.yml or add a Documentation URL to
409+ [project.urls] in pyproject.toml.
410+ ```
411+
412+ ::: {.callout-tip}
413+ Set ` site_url ` even before your site is deployed. Once the site goes live at that address, all
414+ generated install commands will already be correct.
415+ :::
416+
371417## Sidebar Filter
372418
373419The API reference sidebar includes a search filter for large APIs. Configure it:
@@ -858,8 +904,9 @@ exclude:
858904repo: https://github.com/your-org/your-package # Override auto-detect
859905github_style: widget
860906
861- # Site URL (for subdirectory deployments)
862- # site_url: "https://internal.example.com/docs/mypackage/"
907+ # Site URL — canonical address of the deployed documentation site.
908+ # Used for skills page install commands, .well-known/ discovery, and sitemaps.
909+ # site_url: "https://your-org.github.io/your-package/"
863910
864911# Source Links
865912source:
0 commit comments