quarto-dev / quarto-dev/quarto-cli

ability to include wildcards when defining book chapter targets

Open
#1,917 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

books enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1912

Originally posted by betweenwater August 16, 2022
Hello,

I keep a journal of separate .md files, where the file name is just the creation date of each .md file. I just tested rendering it after using the create-project <name> --type book which is nice, but it doesn't look like wildcards can be used in the chapters option in the .yml file, akin to how it works for projects (see: https://quarto.org/docs/projects/quarto-projects.html#render-targets)?

Since I don't keep a daily journal and I have a growing number of entries I'd like to avoid adding the chapters manually. Could wildcards be added or are there other ways to automatically identify all .md files in the book directory and render them?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion and the book project's chapters option in its .yml file. Investigate how chapter targets are resolved and how wildcard targets work for projects. Done means a book can identify and render matching .md files without listing each chapter manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, yaml
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.