Allow excluding selected Markdown files from pkgdown websites

Aperta
#3,040 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/pkgdown

Tutte le issue di r-lib/pkgdown

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.