Skip to content

Commit 4ba399e

Browse files
committed
Use id instead of (deprecated) name attribute for anchors
Also make anchors work without JavaScript. This also allows to directly link to specific parts of a page. Signed-off-by: Sven Strickroth <email@cs-ware.de>
1 parent a27f1e0 commit 4ba399e

File tree

8 files changed

+153
-153
lines changed

8 files changed

+153
-153
lines changed

src/site/pages/codes.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>SLF4J warning or error messages and their meanings</h2>
2121

2222
<!-- ====================================================== -->
2323

24-
<h3 class="doAnchor" name="noProviders">No SLF4J providers
24+
<h3 class="doAnchor" id="noProviders">No SLF4J providers
2525
were found.
2626
</h3>
2727

@@ -58,7 +58,7 @@ <h3 class="doAnchor" name="noProviders">No SLF4J providers
5858

5959
<!-- ====================================================== -->
6060

61-
<h3 class="doAnchor" name="ignoredBindings">Class path contains
61+
<h3 class="doAnchor" id="ignoredBindings">Class path contains
6262
SLF4J bindings targeting slf4j-api versions 1.7.x or earlier
6363
</h3>
6464

@@ -88,7 +88,7 @@ <h3 class="doAnchor" name="ignoredBindings">Class path contains
8888
<!-- ====================================================== -->
8989

9090
<h3 class="doAnchor"
91-
name="unsuccessfulInit">IllegalStateException:
91+
id="unsuccessfulInit">IllegalStateException:
9292
<code>org.slf4j.LoggerFactory</code> in failed state. Original
9393
exception was thrown EARLIER.
9494
</h3>
@@ -105,7 +105,7 @@ <h3 class="doAnchor" name="ignoredBindings">Class path contains
105105

106106
<!-- ====================================================== -->
107107

108-
<h3 class="doAnchor" name="release">The method
108+
<h3 class="doAnchor" id="release">The method
109109
<code>o.a.commons.logging.impl.SLF4FLogFactory#release</code> was
110110
invoked.
111111
</h3>
@@ -138,7 +138,7 @@ <h3 class="doAnchor" name="release">The method
138138

139139
<!-- ====================================================== -->
140140

141-
<h3 class="doAnchor" name="unsupported_operation_in_jcl_over_slf4j">Operation
141+
<h3 class="doAnchor" id="unsupported_operation_in_jcl_over_slf4j">Operation
142142
[suchAndSuch] is not supported in jcl-over-slf4j.
143143
</h3>
144144

@@ -161,7 +161,7 @@ <h3 class="doAnchor" name="unsupported_operation_in_jcl_over_slf4j">Operation
161161
</p>
162162

163163
<!-- ====================================================== -->
164-
<h3 class="doAnchor" name="loggerNameMismatch">Detected logger
164+
<h3 class="doAnchor" id="loggerNameMismatch">Detected logger
165165
name mismatch</h3>
166166

167167
<p>Logger name mismatch warnings are printed only if the
@@ -216,7 +216,7 @@ <h3 class="doAnchor" name="loggerNameMismatch">Detected logger
216216

217217
<!-- ====================================================== -->
218218

219-
<h3 class="doAnchor" name="StaticLoggerBinder">Failed to load class
219+
<h3 class="doAnchor" id="StaticLoggerBinder">Failed to load class
220220
<code>org.slf4j.impl.StaticLoggerBinder</code></h3>
221221

222222
<p>This warning message is reported when the
@@ -286,7 +286,7 @@ <h3>
286286
-->
287287

288288
<!-- ====================================================== -->
289-
<h3 class="doAnchor" name="multiple_bindings">Multiple bindings
289+
<h3 class="doAnchor" id="multiple_bindings">Multiple bindings
290290
were found on the class path
291291
</h3>
292292

@@ -358,7 +358,7 @@ <h3 class="doAnchor" name="multiple_bindings">Multiple bindings
358358

359359
<!-- ====================================================== -->
360360

361-
<h3 class="doAnchor" name="version_mismatch">slf4j-api version
361+
<h3 class="doAnchor" id="version_mismatch">slf4j-api version
362362
does not match that of the binding</h3>
363363

364364
<p>An SLF4J binding designates an artifact such as
@@ -392,7 +392,7 @@ <h3 class="doAnchor" name="version_mismatch">slf4j-api version
392392

393393
<!-- ====================================================== -->
394394

395-
<h3 class="doAnchor" name="null_LF">Logging factory implementation
395+
<h3 class="doAnchor" id="null_LF">Logging factory implementation
396396
cannot be null</h3>
397397

398398
<p>This error is reported when the <code>LoggerFactory</code>
@@ -405,7 +405,7 @@ <h3 class="doAnchor" name="null_LF">Logging factory implementation
405405

406406
<!-- ====================================================== -->
407407

408-
<h3 class="doAnchor" name="log4jDelegationLoop">Detected both
408+
<h3 class="doAnchor" id="log4jDelegationLoop">Detected both
409409
log4j-over-slf4j.jar AND slf4j-reload4j on the class path,
410410
preempting <code>StackOverflowError</code>.
411411
</h3>
@@ -458,7 +458,7 @@ <h3 class="doAnchor" name="log4jDelegationLoop">Detected both
458458
<!-- ====================================================== -->
459459

460460

461-
<h3 class="doAnchor" name="jclDelegationLoop">Detected both
461+
<h3 class="doAnchor" id="jclDelegationLoop">Detected both
462462
jcl-over-slf4j.jar AND slf4j-jcl.jar on the class path, preempting
463463
<code>StackOverflowError</code>.
464464
</h3>
@@ -500,7 +500,7 @@ <h3 class="doAnchor" name="jclDelegationLoop">Detected both
500500
</p>
501501

502502
<!-- ====================================================== -->
503-
<h3 class="doAnchor" name="no_tlm">Exception in
503+
<h3 class="doAnchor" id="no_tlm">Exception in
504504
thread "main" java.lang.NoSuchFieldError: tlm</h3>
505505

506506
<pre class="prettyprint source">
@@ -538,7 +538,7 @@ <h3 class="doAnchor" name="no_tlm">Exception in
538538

539539
<!-- ====================================================== -->
540540

541-
<h3 class="doAnchor" name="no_static_mdc_binder">Failed to load
541+
<h3 class="doAnchor" id="no_static_mdc_binder">Failed to load
542542
class "org.slf4j.impl.StaticMDCBinder"</h3>
543543

544544
<p>This error indicates that appropriate SLF4J binding could not
@@ -551,7 +551,7 @@ <h3 class="doAnchor" name="no_static_mdc_binder">Failed to load
551551

552552
<!-- ====================================================== -->
553553

554-
<h3 class="doAnchor" name="null_MDCA">MDCAdapter cannot be null
554+
<h3 class="doAnchor" id="null_MDCA">MDCAdapter cannot be null
555555
</h3>
556556

557557
<p>This error is reported when <code>org.slf4j.MDC</code> class
@@ -563,7 +563,7 @@ <h3 class="doAnchor" name="null_MDCA">MDCAdapter cannot be null
563563

564564
<!-- ====================================================== -->
565565

566-
<h3 class="doAnchor" name="replay">A number (N) of logging calls
566+
<h3 class="doAnchor" id="replay">A number (N) of logging calls
567567
during the initialization phase have been intercepted and are now
568568
being replayed. These are subject to the filtering rules of the
569569
underlying logging system.
@@ -583,7 +583,7 @@ <h3 class="doAnchor" name="replay">A number (N) of logging calls
583583

584584
<!-- ====================================================== -->
585585

586-
<h3 class="doAnchor" name="substituteLogger" >Substitute loggers
586+
<h3 class="doAnchor" id="substituteLogger" >Substitute loggers
587587
were created during the default configuration phase of the
588588
underlying logging system</h3>
589589

@@ -616,7 +616,7 @@ <h3 class="doAnchor" name="substituteLogger" >Substitute loggers
616616

617617
<!-- ====================================================== -->
618618

619-
<h3 class="doAnchor" name="log4j_version">SLF4J versions 1.4.0 and
619+
<h3 class="doAnchor" id="log4j_version">SLF4J versions 1.4.0 and
620620
later requires log4j 1.2.12 or later</h3>
621621

622622
<p>The trace level was added to log4j in version 1.2.12 released
@@ -636,7 +636,7 @@ <h3 class="doAnchor" name="log4j_version">SLF4J versions 1.4.0 and
636636
<!-- ====================================================== -->
637637

638638
<h3 class="doAnchor"
639-
name="log4j_version">java.lang.NoClassDefFoundError:
639+
id="log4j_version">java.lang.NoClassDefFoundError:
640640
org/slf4j/event/LoggingEvent</h3>
641641

642642
<p>Logback-classic version 1.1.4 and later require slf4j-api

src/site/pages/extensions.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1>SLF4J extensions</h1>
2626

2727
</ul>
2828

29-
<h2><a name="profiler"></a>Profilers</h2>
29+
<h2 id="profiler">Profilers</h2>
3030

3131
<h3>What is a profiler?</h3>
3232

@@ -295,7 +295,7 @@ <h3>Printing using a logger</h3>
295295

296296
<!-- .............................................................. -->
297297

298-
<h2><a name="mdcStrLookup"></a>MDCStrLookup</h2>
298+
<h2 id="mdcStrLookup">DCStrLookup</h2>
299299

300300
<p>StrLookup is a class defined in Apache Commons Lang. It is used
301301
in conjunction with the StrSubstitutor class to allow Strings to
@@ -320,7 +320,7 @@ <h2><a name="mdcStrLookup"></a>MDCStrLookup</h2>
320320

321321
<!-- .............................................................. -->
322322

323-
<h2><a name="extended_logger"></a>Extended Logger</h2>
323+
<h2 id="extended_logger">Extended Logger</h2>
324324

325325
<p>The <a
326326
href="apidocs/org/slf4j/ext/XLogger.html"><code>XLogger</code></a>

0 commit comments

Comments
 (0)