forked from quarto-dev/quarto-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Loading branch information
1 parent
e928dd8
commit c09c580
Showing
31 changed files
with
5,027 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.quarto/ | ||
*.html | ||
*_files/ |
8 changes: 8 additions & 0 deletions
8
tests/docs/search/issue-11189/_extensions/remove-class/_extension.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: Remove-class | ||
author: Nick Vigilante | ||
version: 1.0.0 | ||
quarto-required: ">=99.9.0" | ||
contributes: | ||
filters: | ||
- remove-class.lua | ||
|
8 changes: 8 additions & 0 deletions
8
tests/docs/search/issue-11189/_extensions/remove-class/remove-class.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
-- Reformat all heading text | ||
function RemoveClass(el) | ||
class = "quarto-exclude-from-search-index" | ||
if el.classes:includes(class) then | ||
el.classes:remove(class) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
project: | ||
output-dir: _site_with_filter | ||
post-render: | ||
- check-index-with-filter.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
project: | ||
output-dir: _site_without_filter | ||
post-render: | ||
- check-index-without-filter.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
project: | ||
type: website | ||
|
||
profile: | ||
default: without-filter | ||
|
||
website: | ||
title: "issue-11189" | ||
navbar: | ||
left: | ||
- href: index.qmd | ||
text: Home | ||
- about.qmd | ||
|
||
format: | ||
html: | ||
theme: cosmo | ||
css: styles.css | ||
toc: true |
16 changes: 16 additions & 0 deletions
16
tests/docs/search/issue-11189/_site_with_filter/search.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"objectID": "about.html", | ||
"href": "about.html", | ||
"title": "About", | ||
"section": "", | ||
"text": "About this site" | ||
}, | ||
{ | ||
"objectID": "index.html", | ||
"href": "index.html", | ||
"title": "issue-11189", | ||
"section": "", | ||
"text": "This is a Quarto website.\nTo learn more about Quarto websites visit https://quarto.org/docs/websites." | ||
} | ||
] |
12 changes: 12 additions & 0 deletions
12
.../_site_with_filter/site_libs/bootstrap/bootstrap-8603c7c062662f1caead21ebe114d4bc.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.