]> juplo.de Git - website/commitdiff
prettify.js vollständig entfernen: Code-Blöcke auf plain <pre> umstellen
authorKai Moritz <kai.milan.moritz@googlemail.com>
Thu, 4 Jun 2026 22:15:41 +0000 (22:15 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Thu, 4 Jun 2026 22:15:41 +0000 (22:15 +0000)
Die fünf facebook-utils-2.5.0-Seiten mit echten Code-Beispielen
(debugging, configuration, force, pitfalls, skip) verwendeten
<div class="prettyprint"><pre>-Wrapper für Google Code Prettify.
Diese werden zu einfachem <pre> konvertiert, das ohne JavaScript
korrekt dargestellt wird.

Damit ist prettify.js auf der gesamten Site nicht mehr erforderlich.
Das Theme entfernt in dem angezogenen Commit static/js/prettify.js
sowie alle Script- und CSS-Einbindungen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
content/projects/facebook-utils-2.5.0/configuration.html
content/projects/facebook-utils-2.5.0/debugging.html
content/projects/facebook-utils-2.5.0/force.html
content/projects/facebook-utils-2.5.0/pitfalls.html
content/projects/facebook-utils-2.5.0/skip.html
themes/hugo-juplo

index b07f604a13a47a81f3ebea5326d049e1cac97744..269c958c1e1f85552c330f5c329b0227b1c535c8 100644 (file)
@@ -14,7 +14,6 @@
     <style type="text/css">
       @import '/css/screen.css' screen;
     </style>
-    <script src="/js/prettify.js"></script>
     <!--[if lt IE 9]>
       <script src="/js/html5shiv.js"></script>
     <![endif]-->
@@ -23,7 +22,7 @@
     <![endif]-->
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
-  <body class="menu" onload="prettyPrint()">
+  <body class="menu">
     <div id="page" class="cf">
       <header id="header">
         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
@@ -59,7 +58,7 @@
   Doing so, the only additionally configuration needed, to activat the plugin
   is the following entry in the <tt>plugins</tt>-section of your <tt>pom.xml</tt>:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
@@ -71,7 +70,7 @@
       &lt;/goals&gt;
     &lt;/execution&gt;
   &lt;/executions&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   But be aware, that in this case the database-url, that is
   build in the application is the same that is used while testing, where
@@ -86,7 +85,7 @@
   A better approach is, to specify a different url for testing like in the
   following snippet:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;configuration&gt;
     &lt;url&gt;&lt;![CDATA[jdbc:mysql://localhost/test-db]]&gt;&lt;/url&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   Configuration properties, that are set in the <tt>configuration</tt>-section
   of the plugin-configuration cannnot be overwritten elsewere (for details
   the plugin-configuration, to be sure to have a separate database for
   testing):
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;properties&gt;
   &lt;hibernate.connection.driver_class&gt;org.hsqldb.jdbcDriver&lt;/hibernate.connection.driver_class&gt;
   &lt;hibernate.dialect&gt;org.hibernate.dialect.HSQLDialect&lt;/hibernate.dialect&gt;
     &lt;/configuration&gt;
   &lt;/plugin&gt;
 
-&lt;plugins&gt;</pre></div>
+&lt;plugins&gt;</pre>
   </div><div class="section"><h2>Configuration through the plugin-configuration<a name="Configuration_through_the_plugin-configuration"></a></h2>
   <p>
   A third way for configuring the plugin is the plugin-configuration.
   The equivalent of the configuration from the last section would look
   like this:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
     &lt;username&gt;sa&lt;/username&gt;
     &lt;password&gt;&lt;/password&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   The parameter <b>hibernateProperties</b> (name of the hibernate-properties-file
   to use, defaults to <b>hibernate.properties</b>) can only be configured through
   If you need to overwrite plugin-configuration-values with
   maven-properties, you can use maven-properties in the plugin-configuration:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;configuration&gt;
     &lt;password&gt;${my-password-property}&lt;/password&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
  </div>
 
         </article>
index 5274e582f427fbfdf4907f36723a4a66d6e7dab1..6df418c2c8bdfcbd3b593ba8cbc495c20ac9aed7 100644 (file)
@@ -14,7 +14,6 @@
     <style type="text/css">
       @import '/css/screen.css' screen;
     </style>
-    <script src="/js/prettify.js"></script>
     <!--[if lt IE 9]>
       <script src="/js/html5shiv.js"></script>
     <![endif]-->
@@ -23,7 +22,7 @@
     <![endif]-->
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
-  <body class="menu" onload="prettyPrint()">
+  <body class="menu">
     <div id="page" class="cf">
       <header id="header">
         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
@@ -55,8 +54,8 @@
   enabled.
   For example, by executing:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
-mvn -X compile hibernate:export</pre></div>
+  <pre>
+mvn -X compile hibernate:export</pre>
   <p>
   (The <tt>compile</tt> might be necessary, because <tt>hibernate-maven-plugin</tt>
   has to scan the compiled classes for annotations!)
index fb86a715ee3fc318bc72d2497b2bcc42e1acfa34..44386071989e2cc76eb0fa6c880b1f72f426790f 100644 (file)
@@ -14,7 +14,6 @@
     <style type="text/css">
       @import '/css/screen.css' screen;
     </style>
-    <script src="/js/prettify.js"></script>
     <!--[if lt IE 9]>
       <script src="/js/html5shiv.js"></script>
     <![endif]-->
@@ -23,7 +22,7 @@
     <![endif]-->
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
-  <body class="menu" onload="prettyPrint()">
+  <body class="menu">
     <div id="page" class="cf">
       <header id="header">
         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
@@ -66,7 +65,7 @@
   you can force it to do so, if you set the parameter <tt>force</tt> to
   <tt>true</tt>:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
@@ -74,7 +73,7 @@
   &lt;configuration&gt;
     &lt;force&gt;true&lt;/force&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   Or you may specify <tt>-Dhibernate.export.force=true</tt> at the command line,
   if you want to force hibernate-maven-plugin only once.
index ea7c22d84b5d62e7835402710ac18e53e4485187..24dfc967e69203d9e740d6df13264063a2c27234 100644 (file)
@@ -14,7 +14,6 @@
     <style type="text/css">
       @import '/css/screen.css' screen;
     </style>
-    <script src="/js/prettify.js"></script>
     <!--[if lt IE 9]>
       <script src="/js/html5shiv.js"></script>
     <![endif]-->
@@ -23,7 +22,7 @@
     <![endif]-->
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
-  <body class="menu" onload="prettyPrint()">
+  <body class="menu">
     <div id="page" class="cf">
       <header id="header">
         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
   This can be achieved with the command-line parameter
   <tt>-Dhibernate.export.target=SCRIPT</tt> or with the following configuration:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;configuration&gt;
   &lt;target&gt;SCRIPT&lt;/target&gt;
-&lt;/configuration&gt;</pre></div>
+&lt;/configuration&gt;</pre>
   <p>
   But even when no database is to be created, hibernate always needs to know
   the dialect. Hence, the plugin will fail if this parameter is missing!
@@ -83,7 +82,7 @@
   Since it will not be able to see the needed dependency, it will fail with
   an error-message like:
   </p>
-  <div class="prettyprint"><pre>
+  <pre>
 [INFO] Gathered hibernate-configuration (turn on debugging for details):
 [INFO]   hibernate.connection.username = sa
 [INFO]   hibernate.connection.password = 
 [INFO] Total time: 2 seconds
 [INFO] Finished at: Thu Nov 29 11:31:14 CET 2012
 [INFO] Final Memory: 32M/342M
-[INFO] ------------------------------------------------------------------------</pre></div>
+[INFO] ------------------------------------------------------------------------</pre>
   <p>
   A quick workaround for this error would be, to delete the runtime-constraint
   for the jdbc-driver-dependency.
   A much cleaner way is, to (additionally) ad the dependency, to the
   plugin-definition:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.2.8&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;/dependencies&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   This is also the best way, if you use a different jdbc-driver for
   testing, than in production.
   For example, the dbunit-plugin can be configured to skip its excecution, if
   hibernate-maven-plugin was skipped like this:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
   &lt;artifactId&gt;dbunit-maven-plugin&lt;/artifactId&gt;
   &lt;configuration&gt;
     &lt;skip&gt;${hibernate.export.skipped}&lt;/skip&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   </div><div class="section"><h2>The database will not be recreated after a manual drop/clean<a name="The_database_will_not_be_recreated_after_a_manual_dropclean"></a></h2>
   <p>
   If one manually drops the database or removes the hsqldb-files, it will not
   unnecessary drop-create-cycle might take a long time. The plugin will
   report that like this:
   </p>
-  <div class="prettyprint"><pre>
+  <pre>
 [INFO] No modified annotated classes found and dialect unchanged.
-[INFO] Skipping schema generation!</pre></div>
+[INFO] Skipping schema generation!</pre>
   <p>
   If one always uses <tt>mvn clean</tt> for cleanup, this will not happen.
   Otherwise the recreation must be <a href="./force.html">forced</a>:
   </p>
-  <div class="prettyprint"><pre>
-mvn hibernate:export -Dhibernate.export.force=true</pre></div>
+  <pre>
+mvn hibernate:export -Dhibernate.export.force=true</pre>
   </div><div class="section"><h2>The hibernate:export goal is not executed, when tests are skipped<a name="The_hibernate:export_goal_is_not_executed_when_tests_are_skipped"></a></h2>
   <p>
   The hibernate-maven-plugin automatically skips its execution, when
   <tt>maven.test.skip</tt> is set to <tt>true</tt>. If you need it to be always
   executed, you can configure that explicitly like this:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
@@ -201,7 +200,7 @@ mvn hibernate:export -Dhibernate.export.force=true</pre></div>
   &lt;configuration&gt;
     &lt;skip&gt;false&lt;/skip&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   Background-information for this design-decission can be found on the extra
   page <a href="./skip.html">To skip or not to skip: that is the question</a>...
@@ -213,7 +212,7 @@ mvn hibernate:export -Dhibernate.export.force=true</pre></div>
     or set <tt>scanDependencies</tt> to <tt>none</tt> in the configuration
     of the plugin like this:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
@@ -221,7 +220,7 @@ mvn hibernate:export -Dhibernate.export.force=true</pre></div>
   &lt;configuration&gt;
     &lt;scanDependencies&gt;none&lt;/scanDependencies&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   </div><div class="section"><h2>No annotated classes found<a name="No_annotated_classes_found"></a></h2>
   <p>
     If you are working under Windows and get the error-message
index 7986ef0e63bb0d5b9c26453bc0945175699e7baf..f681caca1d9364d29a66edbc17086ff9d26206aa 100644 (file)
@@ -14,7 +14,6 @@
     <style type="text/css">
       @import '/css/screen.css' screen;
     </style>
-    <script src="/js/prettify.js"></script>
     <!--[if lt IE 9]>
       <script src="/js/html5shiv.js"></script>
     <![endif]-->
@@ -23,7 +22,7 @@
     <![endif]-->
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
-  <body class="menu" onload="prettyPrint()">
+  <body class="menu">
     <div id="page" class="cf">
       <header id="header">
         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
@@ -70,7 +69,7 @@
   export-goal, even if the tests are skipped you can configure that explicitly,
   by setting the configuration-parameter <tt>skip</tt> to false:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;configuration&gt;
     &lt;skip&gt;false&lt;/skip&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   Or, if you want the export-goal to be executed by default and to be skipped
   if you say so, you can bind the value of the configuration-parameter
   <tt>skip</tt> to a custom property. For example:
   </p>
-  <div class="prettyprint linenums lang-html"><pre>
+  <pre>
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
@@ -92,7 +91,7 @@
   &lt;configuration&gt;
     &lt;skip&gt;${foo.bar}&lt;/skip&gt;
   &lt;/configuration&gt;
-&lt;/plugin&gt;</pre></div>
+&lt;/plugin&gt;</pre>
   <p>
   This way, the export-goal would be skipped, if you set the property
   <tt>foo.bar</tt> to <tt>true</tt>. For example, if you specify <tt>-Dfoo.bar=true</tt>
index e1ecc6b3ea226e2c6c6cbb35b319d4addef0670e..bd8c879ebaa8a30b257a52fb3db65382f6d004b7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit e1ecc6b3ea226e2c6c6cbb35b319d4addef0670e
+Subproject commit bd8c879ebaa8a30b257a52fb3db65382f6d004b7