-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Document opt-in and various fixes of documentation - Demote `macro_info()` (start with header of level 2), #123
- Loading branch information
Laurent Franceschetti
committed
Apr 22, 2023
1 parent
2f1d86e
commit 930afe5
Showing
14 changed files
with
409 additions
and
263 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
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
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,5 @@ | ||
# Hello World | ||
|
||
## Should not be rendered | ||
{{ macros_info() }} | ||
|
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,7 @@ | ||
--- | ||
render_macros: true # opt-in | ||
title: Rendered title | ||
--- | ||
# {{ title }} | ||
|
||
{{ macros_info() }} |
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,15 @@ | ||
site_name: Opt-in of pages rendering | ||
theme: mkdocs | ||
|
||
nav: | ||
- Home: index.md | ||
- Second: page_with_macros.md # opt-in | ||
|
||
|
||
plugins: | ||
- search | ||
- macros: | ||
# do not render the pages by default | ||
# requires an opt-in | ||
render_by_default: false | ||
|
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,12 @@ | ||
--- | ||
render_macros: false # opt-out | ||
title: Rendered title (opt-out) | ||
--- | ||
|
||
# Hello World | ||
|
||
## {{ title }} | ||
(This title should not be rendered) | ||
|
||
{{ macros_info() }} | ||
|
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,7 @@ | ||
--- | ||
render_macros: true # opt-in | ||
title: Rendered title | ||
--- | ||
# {{ title }} | ||
|
||
{{ macros_info() }} |
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,15 @@ | ||
site_name: Opt-out for rendering pages | ||
theme: mkdocs | ||
|
||
nav: | ||
- Home: index.md | ||
- Second: page_with_macros.md | ||
|
||
|
||
plugins: | ||
- search | ||
- macros: | ||
# do not render the pages by default | ||
# this is the default case | ||
render_by_default: true | ||
|
Oops, something went wrong.