Skip to content

SEO

Set how your pages appear in search results and link previews, and what the build writes for search engines.

2 min read

Updated · You can now serve your docs on your own domain from Deploys › Domains by adding one CNAME record.

Set how your pages show in search results and link previews, add your own meta tags, and choose who can find your site.

A page’s title and description in its frontmatter become its search result and its link preview. Specly writes the description into description and og:description, and the title into og:title. Write one sentence of description for every page. See Pages and frontmatter.

seo.metatags in docs.json adds tags to every page’s head. Each key is a tag’s name, and its value is its content. A key that starts with og: becomes an Open Graph tag.

docs.json
{
"seo": {
"metatags": {
"og:image": "https://your-product.dev/social.png",
"twitter:site": "@your-handle"
}
}
}

Only text values are read. Older Mintlify files keep these under metadata, and Specly reads that too.

When your docs folder has a public/CNAME file, the build treats its address as your site’s address. It writes canonical links, a sitemap at /sitemap-index.xml, hreflang links for languages and full addresses in your changelog feed. Specly Cloud serves your site at <slug>.specly.xyz, and on your own domain once you add one under Deploys › Domains (see Deploys). Put the address your readers use in the file.

Settings › Site › Access sets who can read your docs. Public lets search engines and AI tools index them. With One shared password or People you allow, readers see a sign-in page first, and search engines can’t read your pages. Preview links for pull requests are always kept out of search engines.

Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.