From 3a515317dff50ee9a6abffb50cf3b2644a1b9107 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz>
Date: Wed, 25 Jan 2017 07:53:08 +0100
Subject: [PATCH] compress sitemap.xml

---
 .gitlab-ci.yml       | 7 +++++++
 docs.it4i/robots.txt | 3 +++
 2 files changed, 10 insertions(+)
 create mode 100644 docs.it4i/robots.txt

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 42c57b4b6..91877db56 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,11 +46,18 @@ mkdocs:
   script:
   #- apt-get update
   #- apt-get -y install git
+    # add version to footer
   - bash scripts/add_version.sh
+    # get modules list from clusters 
   - bash scripts/get_modules.sh
+    # build pages
   - mkdocs build
+    # compress search_index.json
   - bash scripts/clean_json.sh site/mkdocs/search_index.json
+    # replace broken links in 404.html
   - sed -i 's,href="" title=",href="/" title=",g' site/404.html
+    # compress sitemap
+  - gzip < site/sitemap.xml > site/sitemap.xml.gz  
   artifacts:
     paths:
     - site
diff --git a/docs.it4i/robots.txt b/docs.it4i/robots.txt
new file mode 100644
index 000000000..72b82b842
--- /dev/null
+++ b/docs.it4i/robots.txt
@@ -0,0 +1,3 @@
+Sitemap: https://docs.it4i.cz/sitemap.xml.gz
+User-agent: *
+Disallow:
-- 
GitLab