Skip to content

Commit 2f4c7f9

Browse files
committed
Polishing.
Refine antora documentation keys. See #3186
1 parent 68106da commit 2f4c7f9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/main/antora/modules/ROOT/pages/redis/redis-repositories/mapping.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ NOTE: Custom conversions have no effect on index resolution. xref:redis/redis-re
183183
== Customizing Type Mapping
184184

185185
If you want to avoid writing the entire Java class name as type information and would rather like to use a key, you can use the `@TypeAlias` annotation on the entity class being persisted.
186-
If you need to customize the mapping even more, look at the https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/convert/TypeInformationMapper.html[`TypeInformationMapper`] interface.
186+
If you need to customize the mapping even more, look at the {spring-data-commons-javadoc-base}/org/springframework/data/convert/TypeInformationMapper.html[`TypeInformationMapper`] interface.
187187
An instance of that interface can be configured at the `DefaultRedisTypeMapper`, which can be configured on `MappingRedisConverter`.
188188

189189
The following example shows how to define a type alias for an entity:

src/main/antora/resources/antora-resources/antora.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ prerelease: ${antora-component.prerelease}
33

44
asciidoc:
55
attributes:
6-
copyright-year: ${current.year}
6+
attribute-missing: 'warn'
7+
chomp: 'all'
78
version: ${project.version}
9+
copyright-year: ${current.year}
810
springversionshort: ${spring.short}
911
springversion: ${spring}
10-
attribute-missing: 'warn'
1112
commons: ${springdata.commons.docs}
1213
lettuce: ${lettuce}
1314
jedis: ${jedis}
1415
include-xml-namespaces: false
15-
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference
16-
spring-data-commons-javadoc-base: https://docs.spring.io/spring-data/commons/docs/${springdata.commons}/api/
16+
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference/{commons}
17+
spring-data-commons-javadoc-base: '{spring-data-commons-docs-url}/api/java'
1718
springdocsurl: https://docs.spring.io/spring-framework/reference/{springversionshort}
18-
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
1919
spring-framework-docs: '{springdocsurl}'
20+
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
2021
spring-framework-javadoc: '{springjavadocurl}'
2122
springhateoasversion: ${spring-hateoas}
2223
releasetrainversion: ${releasetrain}

0 commit comments

Comments
 (0)