Fixing sitemaps (#3053)

This commit is contained in:
Ivan Blinkov 2018-09-06 01:09:58 +03:00 committed by GitHub
parent 0962b2841d
commit 66bd2306e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 4 deletions

View File

@ -70,6 +70,7 @@ def build_for_lang(lang, args):
cfg = config.load_config(
config_file=config_path,
site_name='ClickHouse Documentation' if lang == 'en' else 'Документация ClickHouse',
site_url='https://clickhouse.yandex/docs/en/' if lang == 'en' else 'https://clickhouse.yandex/docs/ru/',
docs_dir=os.path.join(args.docs_dir, lang),
site_dir=os.path.join(args.output_dir, lang),
strict=True,

View File

@ -3,13 +3,10 @@
<sitemap>
<loc>https://clickhouse.yandex/docs/ru/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://clickhouse.yandex/docs/ru/single_page/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://clickhouse.yandex/docs/en/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://clickhouse.yandex/docs/en/single_pabe/sitemap.xml</loc>
<loc>https://clickhouse.yandex/docs/sitemap_static.xml</loc>
</sitemap>
</sitemapindex>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://clickhouse.yandex/</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://clickhouse.yandex/benchmark.html</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://clickhouse.yandex/tutorial.html</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://clickhouse.yandex/blog/en</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://clickhouse.yandex/blog/ru</loc>
<changefreq>daily</changefreq>
</url>
</urlset>