Skip to content

Commit

Permalink
docs: exclude summary page from search (#1035)
Browse files Browse the repository at this point in the history
### Summary of Changes

The summary page is only needed for navigation. It should never be
accessed directly. This PR excludes the page from the search.
  • Loading branch information
lars-reimann authored Apr 12, 2024
1 parent b930cd5 commit fc6e131
Show file tree
Hide file tree
Showing 31 changed files with 153 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/stdlib/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- safeds
- data
- image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ export class SafeDsMarkdownGenerator {
options.destination,
details.map((document) => URI.parse(document.uri)),
);
const content = this.describeSummary('', summary);

const frontMatter = `---\nsearch:\n exclude: true\n---\n\n`;
const content = frontMatter + this.describeSummary('', summary);

return TextDocument.create(uri, 'md', 0, content);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
search:
exclude: true
---

- tests
- generation
- markdown
Expand Down

0 comments on commit fc6e131

Please sign in to comment.