Reloading /package-documentation/ shows pkgdown README instead of version chooser
@ANAMASGARD 已经在做这个了。
开始于 2026年12月3日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 77/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github, jekyll, markdown
调研方向
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 onmain): 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PecanProject/PecanProject.github.io 的其他 Issue
-
Add ESLint rule to catch broken internal links and standardize on npm可能已有人在做 @allgandalf 于 280 天前认领。 未关闭
PecanProject/PecanProject.github.io#156 · 已指派 1 人 ·
-
Add lychee GitHub action to automatically check for broken links可能已有人在做 @Avneetsingh18-doit 于 261 天前认领。 未关闭good first issue
PecanProject/PecanProject.github.io#134 · 8 条评论 · 1 个 reaction · 已指派 1 人 ·
-
Enhance Site Navigation: Add Search Bar to Navbar可能已有人在做 @divine7022 于 653 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 25/100
PecanProject/PecanProject.github.io#90 · 23 条评论 ·
查看 PecanProject/PecanProject.github.io 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 78/100
-
documentation
难度 1/5 1 小时以内 新手友好度 76/100
slackapi/slack-health-score#253 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
vercel-labs/agent-skills#385 ·
-
area:docs type:docs
难度 2/5 1-3 小时 新手友好度 68/100
jejjohnson/gauss_flows#246 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
italia/eid-wallet-it-docs#1288 · 1 条评论 ·
维护者通常 5 天内回复