-
Notifications
You must be signed in to change notification settings - Fork 16
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
[MSKINS-245] Add code highlighting class to every <pre><code> combination #58
[MSKINS-245] Add code highlighting class to every <pre><code> combination #58
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.
This is broken as it does not reflect the skin structure AND the CSS anymore.
This is therefore only a draft to outline how this should work IMHO on the Skin side. Would you mind commenting on the general approach to only rely on |
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.
You missed to change:
maven-fluido-skin/src/main/resources/css/maven-base.css
Lines 33 to 36 in d5eef27
section > div.verbatim { | |
margin-right: 7px; | |
margin-left: 7px; | |
} |
e1e9180
to
e9c224a
Compare
This also fixes the missing margin for |
e9c224a
to
0ebfdfe
Compare
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.
Althrough this looks good and right, it needs to be remain a draft until the fixed Doxia (Sitetools) version is released this can be bumped:
<doxia-sitetools>2.0.0-M12</doxia-sitetools> |
0ebfdfe
to
2b56992
Compare
Still requires a m-site-p version depending on m-doxia-sitetools M18+... |
This can now reduced to: diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm
index 5e0604f..26bb876 100644
--- a/src/main/resources/META-INF/maven/site.vm
+++ b/src/main/resources/META-INF/maven/site.vm
@@ -242 +242 @@
-#* *#$bodyContent.replaceAll( '<div class="verbatim source">(\r?\n)?<pre>', '<div class="verbatim source"><pre class="' + $sourceStyle + '">' ).replaceAll( 'class="bodyTable"', 'class="table table-striped"' ).replaceAll( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
+#* *#$bodyContent.replace( '<pre><code>', '<pre class="' + $sourceStyle + '"><code>' ).replace( 'class="bodyTable"', 'class="table table-striped"' ).replace( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
diff --git a/src/main/resources/css/maven-base.css b/src/main/resources/css/maven-base.css
index 829ef71..5747cd6 100644
--- a/src/main/resources/css/maven-base.css
+++ b/src/main/resources/css/maven-base.css
@@ -33 +33 @@ section > table.table,
-section > div.verbatim {
+section > pre { |
@kwin Should I rebase and merge this? I'd like to start the release. |
Yes, please. |
…tion Don't rely on custom div classes surrounding those. This closes #58
2b56992
to
ab1e6a3
Compare
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.
Will merge as soon as CI completes.
Don't rely on custom div classes surrounding those as those are not always set.