Skip to content

Commit

Permalink
Fix incorrect links for reference documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Aug 12, 2024
1 parent f8c5f35 commit 0ec73d4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions layouts/releases/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ <h1>{{ .Title }}</h1>
({{ time.Format "January" .releaseDate }} {{ humanize .releaseDate.Day }} {{ .releaseDate.Year }}{{ if eq $.Site.Params.stableVersion .name }}; latest stable release{{ else if eq $.Site.Params.devVersion .name }}; latest beta release{{ end }})
</p>
<ul>
{{ $versionRef := .versionRef }}
{{ if eq .order 500 }}
{{ $versionRef = "stable" }}
{{ else if eq .order 1000 }}
{{ $versionRef = "dev" }}
{{ end }}
<li>Reference guide:
<a href="/documentation/{{ .versionRef }}/reference/html/">HTML</a>
{{ if not .spring }}| <a href="/documentation/{{ .versionRef }}/reference/pdf/">PDF</a>{{ end }}
<a href="/documentation/{{ $versionRef }}/reference/html/">HTML</a>
{{ if not .spring }}| <a href="/documentation/{{ $versionRef }}/reference/pdf/mapstruct-reference-guide.pdf">PDF</a>{{ end }}
</li>
<li>
API documentation:
{{ if .spring }}
<a href="/documentation/spring-extensions/api/annotations/">Annotations JavaDoc</a> |
<a href="/documentation/spring-extensions/api/extensions/">Extensions JavaDoc</a> |
<a href="/documentation/spring-extensions/api/test-extensions/">Test Extensions JavaDoc</a>
{{ else if .stable }}
<a href="/documentation/stable/api/">JavaDoc</a>
{{ else if .dev }}
<a href="/documentation/dev/api/">JavaDoc</a>
{{ else }}
<a href="/documentation/{{ .versionRef }}/api/">JavaDoc</a>
<a href="/documentation/{{ $versionRef }}/api/">JavaDoc</a>
{{ end }}
</li>
{{ if .migrationNotesLink }}
Expand Down

0 comments on commit 0ec73d4

Please sign in to comment.