Skip to content

Icons in the navigation is not working everywhere.Β #90

@jmini

Description

@jmini

The icons in the "Quick Start" section are not always displayed, depending on the position of the page in the tree.

If https://jreleaser.org/guide/latest/ is the base URL.

On top level (directly under the "base URL"), pages like:

https://jreleaser.org/guide/latest/install.html
https://jreleaser.org/guide/latest/integrations.html

It does not work:

Image

On second level (located in one folder under the "base URL"), pages like:

https://jreleaser.org/guide/latest/quick-start/index.html
https://jreleaser.org/guide/latest/concepts/index.html

It works:

Image

On third level (located in 2 folders under the "base URL"), pages like:

https://jreleaser.org/guide/latest/concepts/distributions/binary.html
https://jreleaser.org/guide/latest/concepts/templates/templates.html

It does not work:

Image

The navigation is defined here:

** xref:cli.adoc[{icon_cli_xs} Command Line]
** xref:maven.adoc[{icon_maven_xs} Apache Maven]
** xref:gradle.adoc[{icon_gradle_xs} Gradle]
** xref:ant.adoc[{icon_ant_xs} Apache Ant]

With the variables being defined here:

icon_cli_xs: image:ROOT:cli.svg[width=16,height=16]
icon_maven_xs: image:ROOT:maven.svg[width=16,height=16]
icon_gradle_xs: image:ROOT:gradle.svg[width=16,height=16]
icon_ant_xs: image:ROOT:ant.svg[width=16,height=16]

I am not familiar with this image:ROOT: notation, but it seems to always resolve to ../_images/ when it should be different based on the position of the page that is being rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions