Sitemaps.

This commit is contained in:
BayoNet 2018-02-13 17:11:45 +03:00
parent 29f1a17ced
commit 38850efb4c
3 changed files with 23 additions and 1 deletions

View File

@ -26,6 +26,7 @@ var paths = {
docstxt: ['docs/**/*.txt'],
docsjson: ['docs/**/*.json'],
docsxml: ['docs/**/*.xml'],
docssitemap: ['sitemap.xml'],
scripts: [
'**/*.js',
'!gulpfile.js',
@ -77,6 +78,11 @@ gulp.task('docsxml', ['docs'], function () {
.pipe(gulp.dest(outputDir + '/docs'))
});
gulp.task('docssitemap', [], function () {
return gulp.src(paths.docssitemap)
.pipe(gulp.dest(outputDir + '/docs'))
});
gulp.task('presentations', [], function () {
return gulp.src(paths.presentations)
.pipe(gulp.dest(outputDir + '/presentations'))
@ -87,7 +93,7 @@ gulp.task('robotstxt', [], function () {
.pipe(gulp.dest(outputDir))
});
gulp.task('htmls', ['docs', 'docstxt', 'docsjson', 'docsxml'], function () {
gulp.task('htmls', ['docs', 'docstxt', 'docsjson', 'docsxml', 'docssitemap'], function () {
return gulp.src(paths.htmls)
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(minifyInline())

View File

@ -7,3 +7,4 @@ Disallow: /deprecated/reference_en.html
Disallow: /deprecated/reference_ru.html
Allow: /
Host: https://clickhouse.yandex
Sitemap: https://clickhouse.yandex/docs/sitemap.xml

15
website/sitemap.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<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>
</sitemap>
</sitemapindex>