# quarto


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

Helpful background on how Quarto fits in here:
<https://nbdev.fast.ai/explanations/docs.html>

## Install

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L47"
target="_blank" style="float:right; font-size:smaller">source</a>

### install_quarto

``` python

def install_quarto(
    
):

```

*Install latest Quarto on macOS or Linux, prints instructions for
Windows*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L62"
target="_blank" style="float:right; font-size:smaller">source</a>

### install

``` python

def install(
    
):

```

*Install Quarto and the current library*

## Sidebar

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L104"
target="_blank" style="float:right; font-size:smaller">source</a>

### IndentDumper

``` python

def IndentDumper(
    stream, default_style:NoneType=None, default_flow_style:bool=False, canonical:NoneType=None,
    indent:NoneType=None, width:NoneType=None, allow_unicode:NoneType=None, line_break:NoneType=None,
    encoding:NoneType=None, explicit_start:NoneType=None, explicit_end:NoneType=None, version:NoneType=None,
    tags:NoneType=None, sort_keys:bool=True
):

```

*Initialize self. See help(type(self)) for accurate signature.*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L111"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_sidebar

``` python

def nbdev_sidebar(
    path:str=None, # Path to notebooks
    printit:bool=False, # Print YAML for debugging
    force:bool=False, # Create sidebar even if custom_sidebar=false in pyproject.toml
    skip_folder_re:str='(?:^[_.]|^www\\$)', # Skip folders matching regex
):

```

*Create sidebar.yml*

``` python
# nbdev_sidebar(printit=True, force=True)
```

## Render docs

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L180"
target="_blank" style="float:right; font-size:smaller">source</a>

### refresh_quarto_yml

``` python

def refresh_quarto_yml(
    
):

```

*Generate `_quarto.yml` from `pyproject.toml`.*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L214"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_proc_nbs

``` python

def nbdev_proc_nbs(
    path:str='', # Path to notebooks
    n_workers:int=4, # Number of workers
    force:bool=False, # Ignore cache and build all
    file_glob:str='', # Only include files matching glob
    file_re:str='', # Only include files matching glob
    symlinks:bool=False, # Follow symlinks?
    folder_re:str=None, # Only enter folders matching regex
    skip_file_glob:str=None, # Skip files matching glob
    skip_file_re:str='^[_.]', # Skip files matching regex
    skip_folder_re:str='^[_.]', # Skip folders matching regex
):

```

*Process notebooks in `path` for docs rendering*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L258"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_readme

``` python

def nbdev_readme(
    path:str=None, # Path to notebooks
    chk_time:bool=False, # Only build if out of date
):

```

*Create README.md from readme_nb (index.ipynb by default)*

`nbdev-readme` calls “quarto render,” which is explained in the Quarto
guide [here](https://quarto.org/docs/projects/code-execution.html).

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L286"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_contributing

``` python

def nbdev_contributing(
    path:str=None, # Path to notebooks
    chk_time:bool=False, # Only build if out-of-date
):

```

*Create CONTRIBUTING.md from contributing_nb (defaults to
‘contributing.ipynb’ if present). Skips if the file doesn’t exist.*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L307"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_docs

``` python

def nbdev_docs(
    path:str=None, # Path to notebooks
    n_workers:int=4, # Number of workers
):

```

*Create Quarto docs and README.md*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L321"
target="_blank" style="float:right; font-size:smaller">source</a>

### prepare

``` python

def prepare(
    
):

```

*Export, test, and clean notebooks, and render README if needed*

## Preview

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L333"
target="_blank" style="float:right; font-size:smaller">source</a>

### fs_watchdog

``` python

def fs_watchdog(
    func, path, recursive:bool=True
):

```

*File system watchdog dispatching to `func`*

------------------------------------------------------------------------

<a
href="https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/quarto.py#L350"
target="_blank" style="float:right; font-size:smaller">source</a>

### nbdev_preview

``` python

def nbdev_preview(
    path:str=None, # Path to notebooks
    port:int=None, # The port on which to run preview
    host:str=None, # The host on which to run preview
    no_browser:bool=False, # Do not open a browser
    n_workers:int=4, # Number of workers
):

```

*Preview docs locally*
