-
Notifications
You must be signed in to change notification settings - Fork 331
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
MAINT: Lint html #1021
MAINT: Lint html #1021
Conversation
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.
The HTML seems fine to me, and I'm generally a fan of using linting/bot formatting to avoid quibbling over syntax choices etc, so +1 from me! I had a few comments about double-checking that we are diffing properly though
<a class="theme-switch" data-mode="dark"><i class="fa-regular fa-moon"></i></a> | ||
<a class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></a> | ||
</span> | ||
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="{{ _('light/dark') }}" aria-label="{{ _('light/dark') }}" data-toggle="tooltip"> |
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 this span -> button
change get merged already? We should double check that we are doing this from the latest commit
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.
I started this PR before the merge of #1050. when I merged it back in the line has been analyzed as a change (with the linting)
{%- endblock body_tag %} | ||
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="180" data-default-mode="{{ default_mode }}"> | ||
|
||
{# A button hidden by default to help assistive devices quickly jump to main content #} |
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.
same here - this seems like it's being added even though this was already merged into main
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.
same here
If you don't think this changes anything problematic then I think we should just merge it in because it'll become out of date quickly, what do you think? |
I'd like to prevent any merge before release of 0.12.0 but I would be ok straight after it |
as I worried, this one is now out of date :-) want to resolve the conflicts and then we can merge quickly? |
there's a linting issue that is solved in #1070. Whenever it's merged, we can merge this one |
alright let's merge this so that we can see how it feels in practice! |
I found djlint, a html linter compatible with jinja.
In this PR I added some parameters, add the test in the pre-commits and run djlint on the whole html files.