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

Change class names #137

Closed
wants to merge 0 commits into from
Closed

Conversation

phoenixr-codes
Copy link
Contributor

mdBook 0.4.35 introduces a way of creating warning blocks achieved by having a div with a warning class. This is a conflict with mdbook-admonish which uses warning for the warning admonitions. To avoid that, this pull request prefixes each admonition class name with admonish-.

Reference: rust-lang/mdBook#2187

Copy link
Owner

@tommilligan tommilligan left a comment

Choose a reason for hiding this comment

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

Thank you, this looks excellent. Agree that changing the classnames and bumping the assets version is exactly the right way to go about this.

There is some minor additional diff in the style files, but I've been meaning to add a linter for them for a while so this is a good excuse to do that (see #138). I'm happy to rebase your changes once that's in, no additional work required from you!

@@ -62,11 +62,12 @@ $admonitions: (
// Admonition variables
:root {
@each $names, $props in $admonitions {
--md-admonition-icon--#{nth($names, 1)}:
Copy link
Owner

Choose a reason for hiding this comment

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

There appears to be some unrelated diff at and below this line

@tommilligan
Copy link
Owner

Github did something I didn't expect when I rebased this - moved to #139

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.

2 participants