Skip to content

Commit 5f8ae69

Browse files
committed
Polishing.
Use documentation variables for references, reorder antora keys. See #3135
1 parent 1505dd5 commit 5f8ae69

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/main/antora/modules/ROOT/pages/elasticsearch/repositories/elasticsearch-repository-queries.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ So calling the method with a `List` of `["id1", "id2", "id3"]` would produce the
376376

377377
.Declare query on the method using the `@Query` annotation with SpEL expression.
378378
====
379-
https://docs.spring.io/spring-framework/reference/core/expressions.html[SpEL expression] is also supported when defining query in `@Query`.
379+
{spring-framework-docs}/core/expressions.html[SpEL expression] is also supported when defining query in `@Query`.
380380
381381
[source,java]
382382
----
@@ -453,7 +453,7 @@ We can pass `new QueryParameter("John")` as the parameter now, and it will produ
453453

454454
.accessing bean property.
455455
====
456-
https://docs.spring.io/spring-framework/reference/core/expressions/language-ref/bean-references.html[Bean property] is also supported to access.
456+
{spring-framework-docs}/core/expressions/language-ref/bean-references.html[Bean property] is also supported to access.
457457
Given that there is a bean named `queryParameter` of type `QueryParameter`, we can access the bean with symbol `@` rather than `#`, and there is no need to declare a parameter of type `QueryParameter` in the query method:
458458
459459
[source,java]
@@ -523,7 +523,7 @@ A collection of `names` like `List.of("name1", "name2")` will produce the follow
523523

524524
.access property in the `Collection` param.
525525
====
526-
https://docs.spring.io/spring-framework/reference/core/expressions/language-ref/collection-projection.html[SpEL Collection Projection] is convenient to use when values in the `Collection` parameter is not plain `String`:
526+
{spring-framework-docs}/core/expressions/language-ref/collection-projection.html[SpEL Collection Projection] is convenient to use when values in the `Collection` parameter is not plain `String`:
527527
528528
[source,java]
529529
----

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ 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
include-xml-namespaces: false
13-
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference
14-
spring-data-commons-javadoc-base: https://docs.spring.io/spring-data/commons/docs/${springdata.commons}/api/
14+
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference/{springdata.commons.short}
15+
spring-data-commons-javadoc-base: https://docs.spring.io/spring-data/commons/reference/{springdata.commons.short}/api
1516
springdocsurl: https://docs.spring.io/spring-framework/reference/{springversionshort}
16-
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
1717
spring-framework-docs: '{springdocsurl}'
18+
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
1819
spring-framework-javadoc: '{springjavadocurl}'
1920
springhateoasversion: ${spring-hateoas}
2021
releasetrainversion: ${releasetrain}

0 commit comments

Comments
 (0)