Skip to content

Support dynamic generation of Quarto HTML, PDF, and EPUB with shared configuration #931

@profvjreddi

Description

@profvjreddi

Currently, there is significant code duplication across files to enable generation of Quarto outputs (_quarto-html, -pdf, -epub). To improve maintainability and reduce duplication, we should refactor the setup to use shared/common YAML configuration files and reusable code. This will allow dynamic generation of Quarto files (HTML, PDF, EPUB) as needed, without manual copy-pasting or redundant configuration.

Proposal:

  • Identify duplicated code and configuration across the existing output files.
  • Design a set of shared YAML files and supporting scripts to centralize configuration.
  • Refactor the build process so that output types (HTML, PDF, EPUB) are generated dynamically from common sources.
  • Document the updated workflow for future contributors.

Benefits:

  • Easier maintenance and updates
  • Reduced risk of inconsistencies
  • Streamlined workflow for generating multiple output formats

This change will make the Quarto book workflow more robust and easier for contributors to work with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions