Site Settings: SEO and Custom Scripts
Configure robots.txt for search engines, llms.txt for AI crawlers, and inject custom scripts into the header or body of your published site for analytics, fonts, or chat widgets.
Three tabs control SEO and script injection: robots.txt, llms.txt, and Custom Scripts. These settings apply only to hostable and Azure publishing modes, where the generated site includes these files.
robots.txt Tab
The robots.txt tab provides a code editor for configuring search engine crawling directives. The file tells search engine crawlers which pages they are allowed to access.
# Example robots.txt
User-agent: *
Allow: /
Sitemap: https://docs.example.com/sitemap.xml
llms.txt Tab
The llms.txt tab provides a code editor for configuring large language model discovery information. This file helps AI crawlers and assistants understand your site's content and purpose.
Custom Scripts Tab
The Custom Scripts tab has two code editors for injecting HTML, JavaScript, or CSS into the published site.
Header Scripts
Content entered here is inserted into the <head> section of every page. Common uses include:
| Use Case | Example |
|---|---|
| Analytics | Google Analytics, Plausible, Fathom tracking scripts |
| Custom fonts | Google Fonts or Adobe Fonts link tags |
| Custom CSS | Stylesheet links or inline style blocks |
| Meta tags | Additional meta tags for SEO or social sharing |
| Favicons | Custom favicon link tags |
End of Body Scripts
Content entered here is inserted just before the closing </body> tag. Common uses include:
| Use Case | Example |
|---|---|
| Analytics | Tracking scripts that should load after page content |
| Chat widgets | Intercom, Drift, or other live chat integrations |
| Custom JavaScript | Any scripts that need to run after page load |
Publishing Mode Requirements
| Feature | Local Publishing | Hostable/Azure Publishing |
|---|---|---|
| robots.txt | Not generated | Generated and included |
| llms.txt | Not generated | Generated and included |
| sitemap.xml | Not generated | Auto-generated from published content |
| Custom scripts | Injected into index.html | Injected into index.html and all SSR pages |