This example shows how to configure your documentation project to use great-docs.
After installing great-docs, simply run:
great-docs initThis will automatically:
- Copy the post-render script to
scripts/post-render.py - Copy the SCSS theme file to
great-docs.scss - Update your
_quarto.ymlconfiguration
project:
type: website
post-render: scripts/post-render.py
format:
html:
theme:
- flatly # Works well with great-docs
- great-docs.scss
toc: true
grid:
sidebar-width: 270px
body-width: 950px
margin-width: 225px
gutter-width: 1rem
website:
title: "Your Project Name"
navbar:
logo: assets/logo.png # Optionalfrom great_docs import GreatDocs
# Initialize docs for current directory
docs = GreatDocs()
# Install docs files
docs.install()You can customize by:
- Editing the copied
great-docs.scssfile - Modifying the
scripts/post-render.pyscript - Adding additional CSS files to your
_quarto.yml