-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed docs: load acronyms extension to preview styles
Previewing the styles was always kind of a hack between Quarto and Pandoc. Since we directly use Quarto libraries (`log`) in our extension, the preview was even harder. This commit simplifies the workflow by leveraging the shortcodes: we now load the extension by creating a symlink automatically when building the docs (similar to what we do in tests), which allows us to use shortcodes in articles. Instead of using an external preview script that calls another instance of Pandoc, the `styles` article now directly renders the desired style with shortcodes. However, shortcodes are now enabled on all pages of the docs; in a very irritating manner, Quarto still parses and renders them even when they are in code-blocks or inline code. For example, writing: "Type `{{< acr KEY >}}` to use acronyms" will render as "Type KEY to use acronyms", which is not what we want. For code-blocks, we can use the `{shortcodes=false}` option, but for inline codes we have to encapsulate them in triple braces `{{{`.
- Loading branch information
Showing
5 changed files
with
35 additions
and
21 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