plotly / plotly/plotly.js

[mkdocs] - duplicate anchor links used on page

未关闭
#7,634 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

描述

When nested property names are the same as property names at the top level of a trace, they use the same anchor, but should use different ones.

E.g. in our current docs

https://plotly.com/javascript/reference/scatter/#scatter-error_x-visible
https://plotly.com/javascript/reference/scatter/#scatter-visible

For mkdocs site,

/javascript/reference/scatter/#scatter-error_x-visible won't work

and

/javascript/reference/scatter/#scatter-visible

will take you to the first one on the page, which is actually the error-x-visible property

Image

贡献指南

打开贡献指南

从这里开始

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

调研方向

使用 issue 中显示的两个 URL,复现 MkDocs 渲染的 scatter 参考中的重复锚点,然后追踪嵌套属性和顶层属性的锚点是如何生成的。完成的标准是两个链接都能解析到各自对应的属性,且其中一个不会取代另一个。

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

评估

技术栈
javascript
领域
documentation
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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