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

Evaluate if the embedded code examples have a visible scrollbar #2450

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

michael-kerscher
Copy link
Collaborator

@michael-kerscher michael-kerscher commented Oct 30, 2024

This implements the idea I drafted in #2012 (comment)

If the embedded code examples, shown in the ACE editor have any visible scrollbar (vertical or horizontal), the evaluator indicates this with CodeExampleVScrollbar or CodeExampleHScrollbar in the result.

Additionally ignore the default mdbook redirect pages. These render in the browser but looking at the canonical pages is enough and there is a massive speedup when evaluating the entire book.

The previous version showed the size of the main content element in the result. This is not really relevant as only violations to the policy are of interest, so the size was removed from the result.

the open pull request #2013 also references this idea

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.

1 participant