quarto-dev / quarto-dev/quarto-cli
ability to include wildcards when defining book chapter targets
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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