Skip to content

Commit 8997056

Browse files
Merge pull request #62 from opendevise/upgrade-asciidoctor-tabs
upgrade to Asciidoctor Tabs 1.0.0-alpha.12 and configure table container element
2 parents b05d68e + b1d711a commit 8997056

File tree

5 files changed

+51
-17
lines changed

5 files changed

+51
-17
lines changed

package-lock.json

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
],
1919
"devDependencies": {
2020
"@asciidoctor/core": "~2.2",
21-
"@asciidoctor/tabs": "1.0.0-alpha.11",
21+
"@asciidoctor/tabs": "1.0.0-alpha.12",
2222
"@fontsource/roboto": "~4.5",
2323
"@fontsource/roboto-mono": "~4.5",
24-
"@springio/asciidoctor-extensions": "1.0.0-alpha.4",
24+
"@springio/asciidoctor-extensions": "1.0.0-alpha.8",
2525
"autoprefixer": "~10.4",
2626
"browser-pack-flat": "~3.5",
2727
"browserify": "~17.0",

preview-src/index.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,29 @@ fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterCh
168168
// do something after the rest of the application
169169
}
170170
----
171+
172+
Wide Table::
173+
+
174+
|===
175+
|Spring Boot 2.x |ClientRegistration
176+
177+
|`spring.security.oauth2.client.registration._[registrationId]_`
178+
|`registrationId`
179+
180+
|`spring.security.oauth2.client.registration._[registrationId]_.client-id`
181+
|`clientId`
182+
183+
|`spring.security.oauth2.client.registration._[registrationId]_.client-secret`
184+
|`clientSecret`
185+
186+
|`spring.security.oauth2.client.registration._[registrationId]_.client-authentication-method`
187+
|`clientAuthenticationMethod`
188+
189+
|`spring.security.oauth2.client.registration._[registrationId]_.authorization-grant-type`
190+
|`authorizationGrantType`
191+
|===
192+
+
193+
The table should fit within the tab panel and scroll horizontally.
171194
====
172195
endif::[]
173196
ifndef::asciidoctor-tabs-loaded[]

src/css/doc.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,19 @@ h1.page + aside.toc.embedded {
194194

195195
.doc table.tableblock {
196196
font-size: calc(15 / var(--rem-base) * 1rem);
197+
}
198+
199+
.doc table.tableblock,
200+
.doc .tablecontainer {
197201
margin: 1.5rem 0 0;
198202
}
199203

200-
.doc table.tableblock + * {
204+
.doc .tablecontainer > table.tableblock {
205+
margin-top: 0;
206+
}
207+
208+
.doc table.tableblock + *,
209+
.doc .tablecontainer + * {
201210
margin-top: 1.5rem;
202211
}
203212

src/css/spring/asciidoctor.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,16 @@
282282
/* Tables */
283283

284284
.doc table.tableblock {
285-
overflow-x: auto;
286285
font-size: calc(15 / var(--pixel-to-rem));
287-
margin: 1.5rem 0 0;
288286
}
289287

290-
.doc table.tableblock td {
291-
min-width: 6rem;
288+
.doc table.tableblock + *,
289+
.doc .tablecontainer + * {
290+
margin-top: 2rem;
292291
}
293292

294-
.doc table.tableblock + * {
295-
margin-top: 2rem;
293+
.doc table.tableblock td {
294+
min-width: 6rem;
296295
}
297296

298297
.doc td.tableblock > .content > :first-child {

0 commit comments

Comments
 (0)