-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Retrieve and rewrite Detailed licensing pages content #98
base: detect_special_pages
Are you sure you want to change the base?
Conversation
0eabee6
to
bd1b95d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## detect_special_pages #98 +/- ##
========================================================
+ Coverage 43.96% 44.45% +0.48%
========================================================
Files 17 18 +1
Lines 1053 1100 +47
Branches 149 154 +5
========================================================
+ Hits 463 489 +26
- Misses 578 599 +21
Partials 12 12 ☔ View full report in Codecov by Sentry. |
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.
See comments
else: | ||
|
||
def get_restriction_label(restriction_key: str): | ||
if restriction_key == "noncommercial": |
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.
Use a simple map
return {"noderivatives": "No Derivatives", ...}.get(restriction_key, restriction_key)
@@ -224,6 +225,9 @@ def run(self) -> Path: | |||
self.libretexts_index_template = self.jinja2_env.get_template( | |||
"libretexts.index.html" | |||
) | |||
self.libretexts_detailed_licensing_template = self.jinja2_env.get_template( | |||
"libretexts.detailed-licensing.html.jinja2" |
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.
Didn't we agree on using .html
extensions?
Fix #54