docs seo
打印网站的搜索和社交设置,例如元标题,以及搜索引擎是否可以将网站编入索引。此处没有草稿:命令返回后,更改会立即应用到你的文档站点,与在 API Studio 中保存一样。参见 SEO。
bash
octri docs seo [show | set key=value …]octri docs seo set key=value …
更改一个或多个设置。值均为文本,但 true 和 false 除外,它们用于启用或关闭某项功能。@ 从文件读取值,例如 css=@docs.css。使用带点号的键可以设置另一项中的某个字段,例如 defaultAuth.type=bearer。与外观设置一样,如果 API 未保留某个键,命令会将其列出。
参数
key=valuestring必填例如 metaTitle="Acme API" 或 indexable=true。
示例
显示 SEO 设置
bash
octri docs seoOutput
✔ Loading seo
Docs SEO
enabled on
indexable on
keywords not set
metaDescription not set
metaTitle not set
ogImageUrl not set
titleMode dynamic
titleTemplate not set
twitterHandle not set
octri docs seo set key=value …相关内容
octri docs theme:读取和更改外观设置:颜色、徽标、字体、布局和代码主题。- SEO