Allow excluding selected Markdown files from pkgdown websites

オープン
#3,040 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r
領域
documentation

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
R
スター
777
フォーク
360
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

r-lib/pkgdown のほかの issue

r-lib/pkgdown の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。