Browse Source

Enable Section Summary TOC for small pages

labs/antora
Christoph Strobl 2 years ago
parent
commit
73050198c5
No known key found for this signature in database
GPG Key ID: 8CC1AB53391458C8
  1. 1
      src/main/antora/modules/ROOT/pages/reference/introduction.adoc
  2. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb.adoc
  3. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-examples-repo.adoc
  4. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-exception.adoc
  5. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-query.adoc
  6. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-query/template-querying.adoc
  7. 1
      src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-template-commands.adoc
  8. 1
      src/main/antora/modules/ROOT/pages/upgrading.adoc

1
src/main/antora/modules/ROOT/pages/reference/introduction.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[introduction]]
= Introduction
:page-section-summary-toc: 1
[[document-structure]]
== Document Structure

1
src/main/antora/modules/ROOT/pages/reference/mongodb.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo.core]]
= MongoDB support
:page-section-summary-toc: 1
The MongoDB support contains a wide range of features:

1
src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-examples-repo.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo.examples-repo]]
= Examples Repository
:page-section-summary-toc: 1
There is a https://github.com/spring-projects/spring-data-examples[GitHub repository with several examples] that you can download and play around with to get a feel for how the library works.

1
src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-exception.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo.exception]]
= Exception Translation
:page-section-summary-toc: 1
The Spring framework provides exception translation for a wide variety of database and mapping technologies. This has traditionally been for JDBC and JPA. The Spring support for MongoDB extends this feature to the MongoDB Database by providing an implementation of the `org.springframework.dao.support.PersistenceExceptionTranslator` interface.

1
src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-query.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo.query]]
= Querying Documents
:page-section-summary-toc: 1
You can use the `Query` and `Criteria` classes to express your queries.They have method names that mirror the native MongoDB operator names, such as `lt`, `lte`, `is`, and others.The `Query` and `Criteria` classes follow a fluent API style so that you can chain together multiple method criteria and queries while having easy-to-understand code.To improve readability, static imports let you avoid using the 'new' keyword for creating `Query` and `Criteria` instances.You can also use `BasicQuery` to create `Query` instances from plain JSON Strings, as shown in the following example:

1
src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-query/template-querying.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo-template.querying]]
= Methods for Querying for Documents
:page-section-summary-toc: 1
The query methods need to specify the target type `T` that is returned, and they are overloaded with an explicit collection name for queries that should operate on a collection other than the one indicated by the return type. The following query methods let you find one or more documents:

1
src/main/antora/modules/ROOT/pages/reference/mongodb/mongo-template-commands.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[mongo-template.commands]]
= Running Commands
:page-section-summary-toc: 1
You can get at the MongoDB driver's `MongoDatabase.runCommand( )` method by using the `executeCommand(…)` methods on `MongoTemplate`. These methods also perform exception translation into Spring's `DataAccessException` hierarchy.

1
src/main/antora/modules/ROOT/pages/upgrading.adoc

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
[[upgrading.data-mongo]]
= Upgrading
:page-section-summary-toc: 1
include::{spring-data-commons-docs}/upgrade.adoc[leveloffset=+1]

Loading…
Cancel
Save