Skip to content

Commit

Permalink
Remove hidden tutorials from the sitemap (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgeyucel authored Nov 27, 2023
1 parent a920758 commit e1548d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ aliases = []
created_at = 2021-08-12
haystack_version = "1.17.2"
hidden = true
sitemap_exclude = true

[[tutorial]]
title = "Preprocessing Your Documents"
Expand Down Expand Up @@ -101,6 +102,7 @@ aliases = ["knowledge-graph"]
created_at = 2021-08-12
haystack_version = "1.16.1"
hidden = true
sitemap_exclude = true

[[tutorial]]
title = "How to Use Pipelines"
Expand All @@ -121,6 +123,7 @@ aliases = ["lfqa"]
created_at = 2021-08-12
haystack_version = "1.17.2"
hidden = true
sitemap_exclude = true

[[tutorial]]
title = "Question Generation"
Expand Down
1 change: 1 addition & 0 deletions scripts/generate_markdowns.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def generate_frontmatter(config, tutorial):
featured: {tutorial.get("featured", False)}
haystack_version: "{tutorial.get("haystack_version", "latest")}"
hidden: {tutorial.get("hidden", False)}
sitemap_exclude: {tutorial.get("sitemap_exclude", False)}
colab: {tutorial.get("colab", f'{config["colab"]}{tutorial["notebook"]}')}
toc: {config["toc"]}
title: "{tutorial["title"]}"
Expand Down

0 comments on commit e1548d4

Please sign in to comment.