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

Links extraction: skip dfn panels #1653

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Links extraction: skip dfn panels #1653

merged 1 commit into from
Aug 22, 2024

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Aug 22, 2024

Via #1584 (comment).

Aside dfn panels only contain links that already appear somewhere else in the spec.

These links were extracted and categorized as autolinks when they appeared in the final index of a Bikeshed spec, which essentially did not do anything because the links had already been extracted as autolinks in any case.

The problem is that Respec also uses similar panels (but no <aside>), and Bikeshed sometimes outputs the panels at the end of the document, and not within the index itself as expected in the code. In these situations, the links were extracted a second time, as rawlinks. Not extracting the panels avoids duplication entirely.

Via #1584 (comment).

Aside dfn panels only contain links that already appear somewhere else in the
spec.

These links were extracted and categorized as `autolinks` when they appeared in
the final index of a Bikeshed spec, which essentially did not do anything
because the links had already been extracted as `autolinks` in any case.

The problem is that Respec also uses similar panels (but no `<aside>`), and
Bikeshed sometimes outputs the panels at the end of the document, and not
within the index itself as expected in the code. In these situations, the
links were extracted a second time, as `rawlinks`. Not extracting the panels
avoids duplication entirely.
@tidoust tidoust requested a review from dontcallmedom August 22, 2024 19:38
@tidoust tidoust merged commit 4466dda into main Aug 22, 2024
1 check passed
@tidoust tidoust deleted the links-dfn-panel branch August 22, 2024 19:50
tidoust added a commit that referenced this pull request Aug 22, 2024
Bug fix:
- Links extraction: skip dfn panels (#1653)

Dependencies bumped:
- Bump puppeteer from 23.1.0 to 23.1.1 (#1652)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants