mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-12 12:54:12 +00:00
Drops the leftover docusaurus name from the translated content directories.
- git mv i18n/{en-us,zh-cn,zh-tw}/docusaurus-plugin-content-docs -> i18n/{locale}/docs (pure renames, content unchanged)
- update the paths in packages/content-loader/src/products.ts, scripts/cut-version.mjs and sites/docs/README.md
current.json / version-*.json keep their names and stay beside the content.
Verified: pnpm build succeeds, 6690 pages built.
<!-- cloudflare-preview --> Preview: https://pr-588.docs-gitea-com.pages.dev
Reviewed-on: https://gitea.com/gitea/docs/pulls/588
Reviewed-by: Zettat123 <[email protected]>
899 B
899 B
date, slug, sidebar_position, aliases
| date | slug | sidebar_position | aliases | |
|---|---|---|---|---|
| 2023-05-23T09:00:00+08:00 | search-engines-indexation | 60 |
|
搜索引擎索引
默认情况下,您的 Gitea 安装将被搜索引擎索引。 如果您不希望您的仓库对搜索引擎可见,请进一步阅读。
使用 robots.txt 阻止搜索引擎索引
为了使 Gitea 为顶级安装提供自定义的robots.txt(默认为空的 404),请在 [custom文件夹或CustomPath](administration/customizing-gitea.md)中创建一个名为 public/robots.txt 的文件。
有关如何配置 robots.txt 的示例,请参考 https://moz.com/learn/seo/robotstxt。
User-agent: *
Disallow: /
如果您将 Gitea 安装在子目录中,则需要在顶级目录中创建或编辑 robots.txt。
User-agent: *
Disallow: /gitea/