Reloading /package-documentation/ shows pkgdown README instead of version chooser

未关闭 适合新手
#206 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@ANAMASGARD 已经在做这个了。

开始于 2026年12月3日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
77/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github, jekyll, markdown
领域
documentation

调研方向

Issue 提到了 src/pages/package-documentation/index.md 和 PecanProject/package-documentation 中的 README.md;先比较选择器文本和版本链接。更新包文档 README,使其与简介和现有的四个子路径一致,然后检查菜单导航和直接加载是否显示相同的选择器,以及每个版本链接是否会打开对应的 pkgdown 树。

由索引模型根据 Issue 内容生成。

描述

Summary

Documentation -> Package Documentation shows a version chooser (develop, latest, v1.10.0, v1.9.0). Reloading or opening https://pecanproject.org/package-documentation/ directly shows the PecanProject/package-documentation Jekyll README (“Maintained by Robots”) with no version links.

Steps to reproduce

https://github.com/user-attachments/assets/7e40901a-4431-4b0c-8185-769144d10156

Expected

Same version chooser on menu navigation, reload, bookmark, and shared link.

Actual

Jekyll README from package-documentation repo. No develop / latest / v1.10.0 / v1.9.0 links.

Subpaths still work: /package-documentation/develop/, /latest/, /v1.10.0/, /v1.9.0/.

Cause

Two publishers share one URL:

  • Website (src/pages/package-documentation/index.md): chooser — visible on in-app navigation only.
  • PecanProject/package-documentation (Pages on main): README at repo root — what the server returns on full load.

#146 / #148 added the chooser on the website only, not on the path GitHub Pages serves.

Proposed fix

Make the server root match the chooser: update PecanProject/package-documentation README.md to mirror src/pages/package-documentation/index.md (intro + four links to existing subpaths).

Acceptance criteria

  • Menu navigation shows four version links.
  • Reload and direct load of /package-documentation/ show the same chooser.
  • All four version links still open the correct pkgdown trees.
主要语言
CSS
星标
7
派生
25
平均合并
3 天 13 小时
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PecanProject/PecanProject.github.io 的其他 Issue

查看 PecanProject/PecanProject.github.io 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。