Use an approximation for detecting links that break after refresh
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
首先构建文档,并针对 ./build 运行两个 grep 命令,以检查相对 href 值和 ../../ 路径。没有指定具体文件或测试;完成的标准是构建过程检测出刷新后可能失效的链接,同时不标记绝对链接、锚点链接或 mailto 链接。
由索引模型根据 Issue 内容生成。
描述
Related to https://github.com/oasisprotocol/docs/issues/4
I found a good approximation for detecting bad links. Find any ../../ in build folder:
grep -o -E '\.\./\.\./.{0,50}' -r ./build; test $? -eq 1
And even better, find all href:"relative in build folder:
grep -o -E 'href:".{0,50}' -r ./build | grep -v -E 'href:"(https:|http:|mailto:|/|#)'; test $? -eq 1
Originally posted by @lukaw3d in https://github.com/oasisprotocol/docs/issues/27#issuecomment-1065795388
- 主要语言
- TypeScript
- 星标
- 15
- 派生
- 48
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oasisprotocol/docs 的其他 Issue
-
Remove Band chapter可能重新可做 @matevz 于 101 天前认领,目前没有进行中的 PR。 未关闭
oasisprotocol/docs#1773 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 30/100
oasisprotocol/docs#1641 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
oasisprotocol/docs#1595 ·
-
use-cases/trustless-agent: Add ROFL TS client可能已有人在做 @ZigaMr 于 336 天前认领。 未关闭documentation
难度 4/5 3-5 天 新手友好度 25/100
oasisprotocol/docs#1589 ·
-
documentation rofl
难度 3/5 1-2 天 新手友好度 55/100
oasisprotocol/docs#1578 ·
查看 oasisprotocol/docs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
stellar/stellar-dev-skill#151 ·
维护者通常 1 天内回复
-
area:arcade game ready-for-agent
难度 2/5 1-3 小时 新手友好度 62/100
fderuiter/deruiter.dev#2281 · 1 条评论 ·
维护者通常 1 天内回复
-
scope: data grid type: bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
fix(frontend): correct VITE_IS_DEVELPOMENT typo in shared/app.ts and align dev environment flags未关闭
难度 2/5 1-3 小时 新手友好度 75/100
vicharanashala/ajrasakha#1439 ·
维护者通常 1 天内回复
-
approved check:passed streams:add
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复