mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Sitemaps.
This commit is contained in:
parent
29f1a17ced
commit
38850efb4c
@ -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())
|
||||
|
@ -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
15
website/sitemap.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user