1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00

Updating base URLs for crawler and intersphinx links (#561)

Algolia crawler requires the baseURLs be bare domains, otherwise a conflict arises between the loaded page and the defined canonical URL in each page. This causes the Algolia crawler to reject the page and not find anything to index in the docs.

Also corrects Intersphinx errors at build time resulting from not having the correct paths to linux and kubernetes docs.
This commit is contained in:
Daryl White
2022-09-16 10:51:05 -05:00
committed by GitHub
parent a0dfa0c304
commit 8842084dd0

View File

@ -105,7 +105,7 @@ exclude_patterns = ['includes/*', '*-template.rst']
# The sitemaps are combined in a sitemapindex.xml file at the root level.
if tags.has("linux"):
html_baseurl = 'https://www.min.io/docs/minio/linux/'
html_baseurl = 'https://min.io/docs/minio/linux/'
excludes = [
'operations/install-deploy-manage/deploy-minio-tenant.rst',
'operations/install-deploy-manage/modify-minio-tenant.rst',
@ -130,7 +130,7 @@ if tags.has("linux"):
'reference/kubectl-minio-plugin/kubectl-minio-version.rst',
]
elif tags.has("macos"):
html_baseurl = 'https://www.min.io/docs/minio/macos/'
html_baseurl = 'https://min.io/docs/minio/macos/'
excludes = [
'operations/install-deploy-manage/deploy-minio-tenant.rst',
'operations/install-deploy-manage/modify-minio-tenant.rst',
@ -156,7 +156,7 @@ elif tags.has("macos"):
]
elif tags.has("windows"):
# html_baseurl is used for generating the sitemap.xml for each platform. These are combined in a sitemapindex.xml.
html_baseurl = 'https://www.min.io/docs/minio/windows/'
html_baseurl = 'https://min.io/docs/minio/windows/'
excludes = [
'operations/install-deploy-manage/deploy-minio-tenant.rst',
'operations/install-deploy-manage/modify-minio-tenant.rst',
@ -181,7 +181,7 @@ elif tags.has("windows"):
'reference/kubectl-minio-plugin/kubectl-minio-version.rst',
]
elif tags.has("container"):
html_baseurl = 'https://www.min.io/docs/minio/container/'
html_baseurl = 'https://min.io/docs/minio/container/'
excludes = [
'operations/install-deploy-manage/deploy-minio-tenant.rst',
'operations/install-deploy-manage/modify-minio-tenant.rst',
@ -208,7 +208,7 @@ elif tags.has("container"):
'reference/kubectl-minio-plugin/kubectl-minio-version.rst',
]
elif tags.has("k8s"):
html_baseurl = 'https://www.min.io/docs/minio/kubernetes/upstream/'
html_baseurl = 'https://min.io/docs/minio/kubernetes/upstream/'
excludes = [
'operations/install-deploy-manage/deploy-minio-single-node-single-drive.rst',
'operations/install-deploy-manage/deploy-minio-single-node-multi-drive.rst',
@ -284,7 +284,8 @@ sphinx_tabs_disable_css_loading = True
# k8s is temporary until integrating the references here
intersphinx_mapping = {
'baremetal': ('https://www.min.io/docs/minio/', None),
'linux': ('https://www.min.io/docs/minio/linux/', None),
'kubernetes': ('https://www.min.io/docs/minio/kubernetes/upstream/', None),
}
rst_prolog = """