Enable Section Summary TOC for small pages

This commit is contained in:
sgibb
2023-09-11 16:12:20 -04:00
parent fabd4c44d6
commit b59b9f651e
16 changed files with 16 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
[appendix]
[[common-application-properties]]
= Common application properties
:page-section-summary-toc: 1
Various properties can be specified inside your `application.properties` file, inside your `application.yml` file, or as command line switches.

View File

@@ -1,5 +1,6 @@
[[spring-cloud-gateway]]
= Spring Cloud Gateway
:page-section-summary-toc: 1
*{spring-cloud-version}*

View File

@@ -1,5 +1,6 @@
[[aot-and-native-image-support]]
= AOT and Native Image Support
:page-section-summary-toc: 1
Since `4.0.0`, Spring Cloud Gateway supports Spring AOT transformations and native images.

View File

@@ -1,4 +1,5 @@
[[configuration-properties]]
= Configuration properties
:page-section-summary-toc: 1
To see the list of all Spring Cloud Gateway related configuration properties, see link:appendix.html[the appendix].

View File

@@ -1,5 +1,6 @@
[[gatewayfilter-factories]]
= `GatewayFilter` Factories
:page-section-summary-toc: 1
Route filters allow the modification of the incoming HTTP request or outgoing HTTP response in some manner.
Route filters are scoped to a particular route.

View File

@@ -1,5 +1,6 @@
[[default-filters]]
= Default Filters
:page-section-summary-toc: 1
To add a filter and apply it to all routes, you can use `spring.cloud.gateway.default-filters`.
This property takes a list of filters.

View File

@@ -1,5 +1,6 @@
[[the-prefixpath-gatewayfilter-factory]]
= The `PrefixPath` `GatewayFilter` Factory
:page-section-summary-toc: 1
The `PrefixPath` `GatewayFilter` factory takes a single `prefix` parameter.
The following example configures a `PrefixPath` `GatewayFilter`:

View File

@@ -1,5 +1,6 @@
[[the-preservehostheader-gatewayfilter-factory]]
= The `PreserveHostHeader` `GatewayFilter` Factory
:page-section-summary-toc: 1
The `PreserveHostHeader` `GatewayFilter` factory has no parameters.
This filter sets a request attribute that the routing filter inspects to determine if the original host header should be sent rather than the host header determined by the HTTP client.

View File

@@ -1,5 +1,6 @@
[[the-removerequestheader-gatewayfilter-factory]]
= The `RemoveRequestHeader` GatewayFilter Factory
:page-section-summary-toc: 1
The `RemoveRequestHeader` `GatewayFilter` factory takes a `name` parameter.
It is the name of the header to be removed.

View File

@@ -1,5 +1,6 @@
[[the-removerequestparameter-gatewayfilter-factory]]
= The `RemoveRequestParameter` `GatewayFilter` Factory
:page-section-summary-toc: 1
The `RemoveRequestParameter` `GatewayFilter` factory takes a `name` parameter.
It is the name of the query parameter to be removed.

View File

@@ -1,5 +1,6 @@
[[the-requestheadersize-gatewayfilter-factory]]
= The `RequestHeaderSize` `GatewayFilter` Factory
:page-section-summary-toc: 1
The `RequestHeaderSize` `GatewayFilter` factory takes `maxSize` and `errorHeaderName` parameters.
The `maxSize` parameter is the maximum data size allowed by the request header (including key and value). The `errorHeaderName` parameter sets the name of the response header containing an error message, by default it is "errorMessage".

View File

@@ -1,5 +1,6 @@
[[the-rewriteresponseheader-gatewayfilter-factory]]
= The `RewriteResponseHeader` `GatewayFilter` Factory
:page-section-summary-toc: 1
The `RewriteResponseHeader` `GatewayFilter` factory takes `name`, `regexp`, and `replacement` parameters.
It uses Java regular expressions for a flexible way to rewrite the response header value.

View File

@@ -1,5 +1,6 @@
[[glossary]]
= Glossary
:page-section-summary-toc: 1
* *Route*: The basic building block of the gateway.
It is defined by an ID, a destination URI, a collection of predicates, and a collection of filters. A route is matched if the aggregate predicate is true.

View File

@@ -1,5 +1,6 @@
[[gateway-how-it-works]]
= How It Works
:page-section-summary-toc: 1
The following diagram provides a high-level overview of how Spring Cloud Gateway works:

View File

@@ -1,5 +1,6 @@
[[gateway-starter]]
= How to Include Spring Cloud Gateway
:page-section-summary-toc: 1
To include Spring Cloud Gateway in your project, use the starter with a group ID of `org.springframework.cloud` and an artifact ID of `spring-cloud-starter-gateway`.
See the https://projects.spring.io/spring-cloud/[Spring Cloud Project page] for details on setting up your build system with the current Spring Cloud Release Train.

View File

@@ -1,5 +1,6 @@
[[troubleshooting]]
= Troubleshooting
:page-section-summary-toc: 1
This section covers common problems that may arise when you use Spring Cloud Gateway.