Skip to content

Commit 804c5ee

Browse files
authored
docs: generate docs sitemap and robots.txt (#6855)
* docs: add sitemap to site * remove asserts from sitemap * fix asserts exclude and add user-agent to robots * add missing file * Add jekyll seo plugin to Gemfile * fix conflict * update Gemfile.lock
1 parent 184a926 commit 804c5ee

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

docs/Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
22
gem 'github-pages', group: :jekyll_plugins
33
gem 'just-the-docs'
44
gem "webrick", "~> 1.8"
5+
gem 'jekyll-sitemap'
6+
gem 'jekyll-seo-tag'

docs/Gemfile.lock

+2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ PLATFORMS
261261

262262
DEPENDENCIES
263263
github-pages
264+
jekyll-seo-tag
265+
jekyll-sitemap
264266
just-the-docs
265267
webrick (~> 1.8)
266268

docs/_config.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ defaults:
2727
path: ""
2828
values:
2929
image: https://docs.lakefs.io/assets/img/docs_logo.png
30+
- scope:
31+
path: "assets"
32+
values:
33+
sitemap: false
3034

3135
# general config
3236
repository: treeverse/lakeFS
@@ -36,6 +40,7 @@ remote_theme: pmarsceill/[email protected]
3640
plugins:
3741
- jekyll-redirect-from
3842
- jekyll-seo-tag
43+
- jekyll-sitemap
3944

4045
exclude:
4146
- howto/deploy/includes
@@ -120,4 +125,4 @@ callouts:
120125
tip:
121126
color: green
122127
fubar:
123-
color: purple
128+
color: purple

docs/robots.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: null
3+
sitemap: false
4+
---
5+
User-agent: *
6+
Sitemap: {{ site.url }}/sitemap.xml

0 commit comments

Comments
 (0)