You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/05/13 08:18:00 UTC

[jira] [Commented] (DOXIASITETOOLS-339) [REGRESSION] Making EmitAnchorsForIndexableEntries by default does not extract document titles anymore

    [ https://issues.apache.org/jira/browse/DOXIASITETOOLS-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845825#comment-17845825 ] 

Michael Osipov commented on DOXIASITETOOLS-339:
-----------------------------------------------

[~kwin], can you investigate because you know the new Doxia code best? Maybe the actual bug is in Doxia, not here.

> [REGRESSION] Making EmitAnchorsForIndexableEntries by default does not extract document titles anymore
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DOXIASITETOOLS-339
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-339
>             Project: Maven Doxia Sitetools
>          Issue Type: Bug
>          Components: Site renderer
>    Affects Versions: 2.0.0-M18
>            Reporter: Michael Osipov
>            Priority: Blocker
>
> 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:
> {noformat}
> 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.
>  {noformat}
> Everything works again. I bet that the {{SiteRendererSink}} does not work well with the new approach in Doxia.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)