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

Apply proper CSS for proper page display - step 2 #30

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

benoit74
Copy link
Contributor

@benoit74 benoit74 commented Oct 8, 2024

Fix #8

Second and final step of CSS retrieval and application: add inline CSS.

Mostly straightforward in fact, only concern was that CSS processor was not resilient to CSS parsing error, while it is quite easy to include at mostly no cost. Now done.

To be reviewed after #29

@benoit74 benoit74 self-assigned this Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 51.37%. Comparing base (152e8b7) to head (738aa31).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
scraper/src/libretexts2zim/client.py 60.00% 2 Missing ⚠️
scraper/src/libretexts2zim/processor.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   51.48%   51.37%   -0.12%     
==========================================
  Files           9        9              
  Lines         540      547       +7     
  Branches       61       61              
==========================================
+ Hits          278      281       +3     
- Misses        258      262       +4     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benoit74 benoit74 marked this pull request as ready for review October 8, 2024 15:45
@benoit74 benoit74 requested a review from rgaudin October 8, 2024 15:45
@benoit74 benoit74 changed the title Add inline css Apply proper CSS for proper page display - step 2 Oct 8, 2024
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from add_standard_css to main October 10, 2024 07:46
@benoit74 benoit74 merged commit ff4240b into main Oct 10, 2024
10 checks passed
@benoit74 benoit74 deleted the add_inline_css branch October 10, 2024 07:55
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.

Apply proper CSS for proper page display
2 participants