Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-737

[REGRESSION] Making EmitAnchorsForIndexableEntries by default does not extract document titles anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.0-M11
    • 2.0.0, 2.0.0-M12
    • Core
    • None

    Description

      While working on https://github.com/apache/maven-site/pull/525 the following happens:

      Title before:

      {project} – {document}

      Title now:
      {project}

      The document title is not extracted from the document anymore.
      If I do the following:

      diff --git a/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java b/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
      index 544b6b9..b6a7d1d 100644
      --- a/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
      +++ b/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
      @@ -330,7 +330,6 @@ public class DefaultSiteRenderer implements Renderer {
                   if (!isConfigured) {
                       // DOXIASITETOOLS-146 don't render comments from source markup
                       parser.setEmitComments(false);
      -                parser.setEmitAnchorsForIndexableEntries(true);
                   }
      
                   // TODO: DOXIA-111: the filter used here must be checked generally.
       

      Everything works again. I bet that the SiteRendererSink does not work well with the new approach in Doxia.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: