-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from opendevise/persist-tab-selections
upgrade Asciidoctor Tabs; persist tab selection across pages
- Loading branch information
Showing
5 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,80 @@ | ||
= Authentication | ||
:antora-page-url: /features/authentication/index.html | ||
:tabs-sync-option: | ||
|
||
this is about authentication | ||
|
||
ifdef::asciidoctor-tabs-loaded[] | ||
.`FilterChain` Usage Example | ||
[tabs] | ||
==== | ||
Java:: | ||
+ | ||
[,java] | ||
---- | ||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { | ||
// do something before the rest of the application | ||
chain.doFilter(request, response); // invoke the rest of the application | ||
// do something after the rest of the application | ||
} | ||
---- | ||
|
||
Kotlin:: | ||
+ | ||
[,kotlin] | ||
---- | ||
fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain) { | ||
// do something before the rest of the application | ||
chain.doFilter(request, response) // invoke the rest of the application | ||
// do something after the rest of the application | ||
} | ||
---- | ||
|
||
Wide Table:: | ||
+ | ||
|=== | ||
|Spring Boot 2.x |ClientRegistration | ||
|
||
|`spring.security.oauth2.client.registration._[registrationId]_` | ||
|`registrationId` | ||
|
||
|`spring.security.oauth2.client.registration._[registrationId]_.client-id` | ||
|`clientId` | ||
|
||
|`spring.security.oauth2.client.registration._[registrationId]_.client-secret` | ||
|`clientSecret` | ||
|
||
|`spring.security.oauth2.client.registration._[registrationId]_.client-authentication-method` | ||
|`clientAuthenticationMethod` | ||
|
||
|`spring.security.oauth2.client.registration._[registrationId]_.authorization-grant-type` | ||
|`authorizationGrantType` | ||
|=== | ||
+ | ||
The table should fit within the tab panel and scroll horizontally. | ||
==== | ||
endif::[] | ||
ifndef::asciidoctor-tabs-loaded[] | ||
.`FilterChain` Usage Example | ||
==== | ||
.Java | ||
[source,java,role="primary"] | ||
---- | ||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { | ||
// do something before the rest of the application | ||
chain.doFilter(request, response); // invoke the rest of the application | ||
// do something after the rest of the application | ||
} | ||
---- | ||
|
||
.Kotlin | ||
[source,kotlin,role="secondary"] | ||
---- | ||
fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain) { | ||
// do something before the rest of the application | ||
chain.doFilter(request, response) // invoke the rest of the application | ||
// do something after the rest of the application | ||
} | ||
---- | ||
==== | ||
endif::[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script> | ||
<script src="{{{uiRootPath}}}/js/site.js"></script> | ||
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script> | ||
<script async src="{{{uiRootPath}}}/js/vendor/{{#if (asciidocExtensionRegistered '@asciidoctor/tabs')}}asciidoctor{{else}}spring{{/if}}-tabs.js"></script> | ||
<script async src="{{{uiRootPath}}}/js/vendor/{{#if (asciidocExtensionRegistered '@asciidoctor/tabs')}}asciidoctor{{else}}spring{{/if}}-tabs.js" data-sync-storage-key="docs:preferred-tab"></script> | ||
{{#if env.ALGOLIA_API_KEY}} | ||
<script async id="search-script" src="{{{uiRootPath}}}/js/vendor/docsearch.js"{{#if env.ALGOLIA_APP_ID}} data-app-id="{{env.ALGOLIA_APP_ID}}"{{/if}} data-api-key="{{env.ALGOLIA_API_KEY}}" data-index-name="{{env.ALGOLIA_INDEX_NAME}}" data-stylesheet="{{{uiRootPath}}}/css/vendor/docsearch.css"></script> | ||
{{/if}} |