# nbdev_sidebar(printit=True, force=True)quarto
Install and interact with Quarto from nbdev
Helpful background on how Quarto fits in here: https://nbdev.fast.ai/explanations/docs.html
Install
install_quarto
def install_quarto(
):
Install latest Quarto on macOS or Linux, prints instructions for Windows
install
def install(
):
Install Quarto and the current library
Render docs
refresh_quarto_yml
def refresh_quarto_yml(
):
Generate _quarto.yml from settings.ini.
nbdev_proc_nbs
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
nbdev_readme
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.
nbdev_contributing
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.
nbdev_docs
def nbdev_docs(
path:str=None, # Path to notebooks
n_workers:int=4, # Number of workers
):
Create Quarto docs and README.md
prepare
def prepare(
):
Export, test, and clean notebooks, and render README if needed
Preview
fs_watchdog
def fs_watchdog(
func, path, recursive:bool=True
):
File system watchdog dispatching to func
nbdev_preview
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