Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Expose anchors in index.json #113

Open
caugner opened this issue Jan 30, 2025 · 0 comments
Open

[Feature] Expose anchors in index.json #113

caugner opened this issue Jan 30, 2025 · 0 comments
Labels
for later Not planned at this time.

Comments

@caugner
Copy link
Contributor

caugner commented Jan 30, 2025

What information was incorrect, unhelpful, or incomplete?

A page can have several anchors, which are used both to deep-link between content, and to link from e.g. BCD data.

However, it is not straight-forward to validate that an anchor exists on a page, without crawling the page.

(Does rari validate anchors on internal links?)

What did you expect to see?

It would be nice if the index.json would include a list of all anchors in the content.

This would make it easier:

  1. to validate mdn_urls in BCD with hashes,
  2. to map en-US anchors to translated anchors (*).

(*) Note that BCD links with fragments uses en-US hashes, but since the mdn_url doesn't contain a locale, users might get redirected to another locale where the anchor doesn't exist.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@caugner caugner added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 30, 2025
@fiji-flo fiji-flo added for later Not planned at this time. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for later Not planned at this time.
Projects
None yet
Development

No branches or pull requests

2 participants