Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/extensions/quarto/docusaurus/_extension.yml
12923 views
1
title: Docusaurus
2
author: RStudio, PBC
3
organization: quarto
4
contributes:
5
project:
6
project:
7
type: default
8
detect:
9
- ["docusaurus.config.js", "package.json"]
10
render:
11
- "**/*.qmd"
12
- "**/*.ipynb"
13
preview:
14
serve:
15
cmd: "npm run docusaurus start -- --no-open --port {port} --host {host}"
16
ready: "compiled successfully"
17
format: docusaurus-md
18
formats:
19
md:
20
# Although we use a custom writer, we still need the variants here the lua filters to render correctly.
21
# Ideally, we would forward the variants to the custom writer.
22
variant: gfm+pipe_tables+tex_math_dollars+header_attributes+raw_html+all_symbols_escapable+backtick_code_blocks+fenced_code_blocks+space_in_atx_header+intraword_underscores+lists_without_preceding_blankline+shortcut_reference_links
23
output-ext: mdx
24
quarto-custom-format: docusaurus
25
inline-includes: true
26
preserve-yaml: true
27
wrap: none
28
fig-format: retina
29
fig-width: 8
30
fig-height: 5
31
html-math-method: webtex
32
filters:
33
- at: layout-cites
34
path: docusaurus_code_blocks.lua # we need to run this before the code blocks are rendered
35
- at: post-render
36
path: docusaurus.lua
37
- at: post-finalize
38
path: docusaurus_citeproc.lua
39
40