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

Replace EasyHTML with LazyHTML #2106

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

Conversation

DavidOliver
Copy link
Contributor

Re. #2105

Is there a better way of asserting whether or not a node is matched by the CSS selectors in ExDoc.Formatter.HTML.TemplatesTest outputs function groups test than the utility function I've added? I wondered if it would be possible to pattern match against the LazyHTML result's number of nodes, but I think we don't have direct access and instead only see a reference? (%LazyHTML{resource: reference()}.)

Copy link

github-actions bot commented Apr 4, 2025

@DavidOliver DavidOliver linked an issue Apr 4, 2025 that may be closed by this pull request
@DavidOliver DavidOliver requested a review from josevalim April 4, 2025 22:13
@@ -47,7 +47,7 @@ defmodule ExDoc.Mixfile do
{:makeup_html, ">= 0.1.0", optional: true},
{:jason, "~> 1.2", only: :test},
{:floki, "~> 0.0", only: :test},
Copy link
Member

Choose a reason for hiding this comment

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

easyhtml depends on floki, it was likely used before, that's why both are listed. Looks like there is one direct usage in erlang_test.exs, which we should be able to replace with lazy_html as well :)

Suggested change
{:floki, "~> 0.0", only: :test},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Replace EasyHTML by LazyHTML
2 participants