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

Have JS code generate IDs for subsections and paragraphs #95

Closed
tidoust opened this issue Oct 11, 2017 · 0 comments · Fixed by #101
Closed

Have JS code generate IDs for subsections and paragraphs #95

tidoust opened this issue Oct 11, 2017 · 0 comments · Fixed by #101

Comments

@tidoust
Copy link
Member

tidoust commented Oct 11, 2017

To be able to cross-post between pages, it would be useful to have anchors be automatically generated for well-known sections and references to features (typically using data-featureid)

tidoust added a commit to tidoust/media-web-roadmap that referenced this issue Oct 18, 2017
This commit implements the following changes:
- Custom directives in the <head> are now preserved. This makes it possible to
set a different <base> but also to override the CSS as well as to insert JS
code if needed (fixes w3c#76)
- Given an empty <a data-featureid="[feature]"></a>, the code automatically
sets the content of the link to the name of the feature if it exists, in other
words the "feature" value in the "data/[feature].json" file, or to the title of
the underlying specification otherwise (fixes w3c#78)
- IDs are automatically generated for sections, feature paragraphs and
individual feature references. The code used was stolen from Respec (fixes w3c#95)
@xfq xfq closed this as completed in #101 Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant