Allow excluding selected Markdown files from pkgdown websites
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- r
- Ambito
- documentation
Direzione di ricerca
Start by reading the code behind pkgdown::build_home() and the existing _pkgdown.yml home configuration. Trace how root and .github/ Markdown files are selected and where those files enter website generation; the issue names no implementation files or tests. Done means configured paths and glob patterns are excluded before rendering and do not appear in the generated site, search index, sitemap, or LLM documentation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature request: Allow excluding selected Markdown files from pkgdown websites
Problem
Currently, pkgdown::build_home() automatically renders Markdown files from the package root and .github/, excluding only a hard-coded list of filenames.
Consequently, development files such as AGENTS.md, STYLE.md, and .github/copilot-instructions.md are automatically published as HTML pages on the package website.
These files contain instructions for AI coding agents and maintainers, not documentation intended for end users.
The generated pages can also appear in the website's search index, sitemap, and LLM-oriented documentation.
Excluding them through .Rbuildignore has no effect.
Proposed solution
Provide a configuration option in _pkgdown.yml to exclude selected Markdown files from website generation.
For example:
home:
exclude:
- AGENTS.md
- STYLE.md
- .github/copilot-instructions.md
The files should be excluded before rendering, so they do not enter the generated website, search index, sitemap, or LLM documentation.
Ideally, the option would support paths relative to the repository root and glob patterns.
Rationale
Files such as AGENTS.md increasingly need to remain in standard repository locations for compatibility with AI coding agents.
Publishing them as documentation pages is unnecessary and potentially undesirable, even when the files themselves are publicly accessible in the source repository.
An explicit exclusion option would be more reliable and maintainable than temporary file renaming or post-build cleanup.
- Lingua principale
- R
- Stelle
- 777
- Fork
- 361
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di r-lib/pkgdown
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
Tutte le issue di r-lib/pkgdown
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
hubverse-org/hubDevs#83 ·
-
data_bio2rarify - doc - dimensions wrongForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
leppott/BioMonTools#162 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
publications
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
epiforecasts/epiforecasts.github.io#161 ·
I maintainer di solito rispondono entro 1 giorno