Skip to content

Commit

Permalink
docs: generate docs sitemap and robots.txt (#6855)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nopcoder authored Oct 25, 2023
1 parent 184a926 commit 804c5ee
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem 'just-the-docs'
gem "webrick", "~> 1.8"
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
2 changes: 2 additions & 0 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ PLATFORMS

DEPENDENCIES
github-pages
jekyll-seo-tag
jekyll-sitemap
just-the-docs
webrick (~> 1.8)

Expand Down
7 changes: 6 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ defaults:
path: ""
values:
image: https://docs.lakefs.io/assets/img/docs_logo.png
- scope:
path: "assets"
values:
sitemap: false

# general config
repository: treeverse/lakeFS
Expand All @@ -36,6 +40,7 @@ remote_theme: pmarsceill/just-the-docs@v0.6.0
plugins:
- jekyll-redirect-from
- jekyll-seo-tag
- jekyll-sitemap

exclude:
- howto/deploy/includes
Expand Down Expand Up @@ -120,4 +125,4 @@ callouts:
tip:
color: green
fubar:
color: purple
color: purple
6 changes: 6 additions & 0 deletions docs/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: null
sitemap: false
---
User-agent: *
Sitemap: {{ site.url }}/sitemap.xml

0 comments on commit 804c5ee

Please sign in to comment.