-
Notifications
You must be signed in to change notification settings - Fork 0
Core 845 postbake rex link #406
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
Conversation
Add a formatted anchor that will be updated in postbake
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #406 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 216 216
Lines 3570 3547 -23
=========================================
- Hits 3570 3547 -23
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not familiar with this repo so one small question about how the data attribute gets used
@@ -25,7 +20,7 @@ def bake(book:) | |||
|
|||
iframe.prepend(child: | |||
<<~HTML | |||
<a class="os-is-link" href="#{iframe_link}" target="_blank" rel="noopener nofollow">#{I18n.t(:iframe_link_text)}</a> | |||
<a class="os-is-link" data-needs-rex-link="true" href="#{iframe_link}" target="_blank" rel="noopener nofollow">#{I18n.t(:iframe_link_text)}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So postbake uses this data attribute to do something? I tried looking it up but didn't find anything (maybe it's not found with the full attribute name?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jivey those changes can be found in the other PR: openstax/enki#405.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thanks I did not notice the second link
https://openstax.atlassian.net/browse/CORE-845
Depends on openstax/enki#405
Mark anchors as needing rex links instead of trying to create the links here. The links are generated much more easily and more accurately in postbake since that step also generates the book/page slugs.