close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Example Quarto Configuration with Great Docs

This example shows how to configure your documentation project to use great-docs.

Method 1: Using the CLI (Recommended)

After installing great-docs, simply run:

great-docs init

This will automatically:

  • Copy the post-render script to scripts/post-render.py
  • Copy the SCSS theme file to great-docs.scss
  • Update your _quarto.yml configuration

Method 2: Manual Configuration

1. Basic _quarto.yml setup

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 # Optional

2. Copy docs files

from great_docs import GreatDocs

# Initialize docs for current directory
docs = GreatDocs()

# Install docs files
docs.install()

Customization

You can customize by:

  1. Editing the copied great-docs.scss file
  2. Modifying the scripts/post-render.py script
  3. Adding additional CSS files to your _quarto.yml