From 8148b4037555cb7ded5a5477ac25297f4e2fe6a2 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Tue, 27 Jun 2023 23:01:25 +0200 Subject: [PATCH 001/132] Update link in header to the browser extension documentation (PR #129) --- src/partials/header-content.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index 4f4ae4fb..e01da685 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -81,7 +81,7 @@ {{/with}} - Browser Extension + Browser Extension IntelliJ Plugin From 5e3acd6f5ee271d99a7d91004d048095b5cc141e Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Tue, 27 Jun 2023 15:02:43 -0600 Subject: [PATCH 002/132] Release prod-303 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index adb7fc5a..d188e98c 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-302 +:current-release: prod-303 // Settings: :experimental: :hide-uri-scheme: From cf33245765451ffac7dd2b4010c51fd7f552cf38 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 27 Jun 2023 15:05:00 -0600 Subject: [PATCH 003/132] use consistent logic for building links to documentation components in header --- src/partials/header-content.hbs | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index e01da685..9f7bcb36 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -51,13 +51,11 @@ EPUB3 Ruby - {{#with (resolvePageURL 'diagram-extension::index.adoc')}} - Asciidoctor Diagram Ruby - {{/with}} + Asciidoctor Diagram Ruby + {{!-- + Asciidoctor Kroki JavaScript + --}} {{!-- - {{#with (resolvePageURL 'kroki-extension::index.adoc')}} - Asciidoctor Kroki JavaScript - {{/with}} Asciidoctor Chart Asciidoctor bibtex @@ -70,18 +68,14 @@ From 9737522695d5dd2cb1c8e5c6c3b2170623e390d1 Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Tue, 27 Jun 2023 15:07:05 -0600 Subject: [PATCH 004/132] Release prod-304 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index d188e98c..04b73218 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-303 +:current-release: prod-304 // Settings: :experimental: :hide-uri-scheme: From 946e7d837b622706ddd38fc21e00d939fd75602d Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Fri, 14 Jul 2023 11:44:28 +0200 Subject: [PATCH 005/132] import styles for videoblock from default UI; add video example to UI preview (PR #131) --- preview-src/index.adoc | 3 +++ src/css/doc.css | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index e2768eef..f39eb1fc 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -293,6 +293,9 @@ image::multirepo-ssg.svg[Multirepo SSG,3000,opts=interactive] Make the switch today! +.Full Circle with Jake Blauvelt +video::300817511[vimeo,600,300] + [#english+中文] == English + 中文 diff --git a/src/css/doc.css b/src/css/doc.css index 9ccee20f..2cc1d623 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -221,6 +221,7 @@ .doc .ulist, .doc .exampleblock, .doc .imageblock, +.doc .videoblock .doc .listingblock, .doc .literalblock, .doc .sidebarblock, @@ -472,7 +473,8 @@ background-image: url(https://github.com/img/octicons-16.svg#view-alert); } -.doc .imageblock { +.doc .imageblock, +.doc .videoblock { display: flex; flex-direction: column; align-items: center; @@ -494,6 +496,12 @@ margin-top: -0.2em; } +.doc .videoblock iframe, +.doc .videoblock video { + max-width: 100%; + vertical-align: middle; +} + #preamble .abstract blockquote { background: var(--abstract-background); border-left: 5px solid var(--abstract-border-color); @@ -657,6 +665,7 @@ .doc .admonitionblock .title, .doc .exampleblock .title, .doc .imageblock .title, +.doc .videoblock .title, .doc .literalblock .title, .doc .listingblock .title, .doc .openblock .title, @@ -681,7 +690,8 @@ margin-bottom: 0.25rem; } -.doc .imageblock .title { +.doc .imageblock .title, +.doc .videoblock .title { margin-top: 0.5rem; padding-bottom: 0; } From 3ca11717ad5b7433caa744634ace148f28cf733d Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 14 Jul 2023 03:47:12 -0600 Subject: [PATCH 006/132] fix syntax error in doc.css --- src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/doc.css b/src/css/doc.css index 2cc1d623..c7d07535 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -221,7 +221,7 @@ .doc .ulist, .doc .exampleblock, .doc .imageblock, -.doc .videoblock +.doc .videoblock, .doc .listingblock, .doc .literalblock, .doc .sidebarblock, From 1ddb5ef084dc52d5091b6dc442f413ed416cfbef Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Fri, 14 Jul 2023 03:48:34 -0600 Subject: [PATCH 007/132] Release prod-305 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 04b73218..48a618fa 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-304 +:current-release: prod-305 // Settings: :experimental: :hide-uri-scheme: From eabc541aa99891c3116437007c9840772238b7bf Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Tue, 18 Jul 2023 08:32:19 +0200 Subject: [PATCH 008/132] disable text selection on the source toolbox (PR #132) --- src/css/doc.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/css/doc.css b/src/css/doc.css index c7d07535..5aa04639 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -828,6 +828,7 @@ font-size: calc(13 / var(--rem-base) * 1rem); line-height: 1; white-space: nowrap; + user-select: none; } .doc .listingblock:hover .source-toolbox { From d0698ce4f7a3406b3d4238e68e1ab30cd397f186 Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Tue, 18 Jul 2023 00:33:59 -0600 Subject: [PATCH 009/132] Release prod-306 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 48a618fa..311de475 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-305 +:current-release: prod-306 // Settings: :experimental: :hide-uri-scheme: From 34f863d79814e9b985087e7f299b2a6d2793ee4a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 18 Jul 2023 00:32:45 -0600 Subject: [PATCH 010/132] adjust order of CSS properties for source toolbox --- src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/doc.css b/src/css/doc.css index 5aa04639..3e9eca01 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -827,8 +827,8 @@ font-family: var(--body-font-family); font-size: calc(13 / var(--rem-base) * 1rem); line-height: 1; - white-space: nowrap; user-select: none; + white-space: nowrap; } .doc .listingblock:hover .source-toolbox { From c2373c3f471dc70bac14bc99ba1f94468bff8564 Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Tue, 18 Jul 2023 00:38:14 -0600 Subject: [PATCH 011/132] Release prod-307 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 311de475..f7509b42 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-306 +:current-release: prod-307 // Settings: :experimental: :hide-uri-scheme: From a477defbf5c401ff93ec74dd8d59ef6fd7945475 Mon Sep 17 00:00:00 2001 From: Martin Hiller Date: Wed, 30 Nov 2022 15:00:09 +0100 Subject: [PATCH 012/132] make PostCSS url filter Windows-compatible so fonts are bundled --- gulp.d/tasks/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index eaefcf13..4898e9ac 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -37,7 +37,7 @@ module.exports = (src, dest, preview) => () => { }), postcssUrl([ { - filter: new RegExp('^src/css/[~][^/]*(?:font|face)[^/]*/.*/files/.+[.](?:ttf|woff2?)$'), + filter: (asset) => new RegExp('^[~][^/]*(?:font|typeface)[^/]*/.*/files/.+[.](?:ttf|woff2?)$').test(asset.url), url: (asset) => { const relpath = asset.pathname.substr(1) const abspath = require.resolve(relpath) From beefb7b848d9af490bc004337447b6386e70a19b Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Wed, 7 Jun 2023 10:23:13 -0400 Subject: [PATCH 013/132] Break edit-this-page out into separate partial --- src/partials/edit-this-page.hbs | 5 +++++ src/partials/toolbar.hbs | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/partials/edit-this-page.hbs diff --git a/src/partials/edit-this-page.hbs b/src/partials/edit-this-page.hbs new file mode 100644 index 00000000..27946f49 --- /dev/null +++ b/src/partials/edit-this-page.hbs @@ -0,0 +1,5 @@ +{{#if (and page.fileUri (not env.CI))}} + +{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}} + +{{/if}} diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index 49c36432..ae64b284 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -5,9 +5,5 @@ {{/with}} {{> breadcrumbs}} {{> page-versions}} - {{#if (and page.fileUri (not env.CI))}} - - {{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}} - - {{/if}} +{{> edit-this-page}} From fe9e3b6c4293030fd36b7cae7ab376934c5d93a4 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 22 Aug 2023 16:36:44 -0600 Subject: [PATCH 014/132] allow page-pagination to be set to next or prev to fine-tune which direction is shown --- src/partials/pagination.hbs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/partials/pagination.hbs b/src/partials/pagination.hbs index 4f6300f3..ba9d704e 100644 --- a/src/partials/pagination.hbs +++ b/src/partials/pagination.hbs @@ -1,12 +1,16 @@ {{#unless (eq page.attributes.pagination undefined)}} {{#if (or page.previous page.next)}} {{/if}} {{/unless}} From 640192f0920538f03d36d49d14e13895a3279f31 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 4 Oct 2023 01:03:39 -0600 Subject: [PATCH 015/132] add support for tablecontainer wrapper around table --- src/css/doc.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/css/doc.css b/src/css/doc.css index 3e9eca01..ffeed5c1 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -236,7 +236,15 @@ .doc table.tableblock { background: var(--body-background); font-size: calc(15 / var(--rem-base) * 1rem); - margin: 1.5rem 0 0; +} + +.doc > table.tableblock, +.doc > table.tableblock + *, +.doc .tablecontainer, +.doc .tablecontainer + *, +.doc :not(.tablecontainer) > table.tableblock, +.doc :not(.tablecontainer) > table.tableblock + * { + margin-top: 1.5rem; } @media screen and (min-width: 1024px) { @@ -256,10 +264,6 @@ font-size: inherit; } -.doc table.tableblock + * { - margin-top: 1.5rem; -} - .doc p.tableblock + p.tableblock { margin-top: 0.5rem; } From 1f1e447ca30d645b904686f7d1da98ce2f98968a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 15 Sep 2023 14:48:07 -0600 Subject: [PATCH 016/132] add support for text alignment roles (text-*) --- src/css/doc.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/css/doc.css b/src/css/doc.css index ffeed5c1..7cab74fb 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -202,6 +202,22 @@ clear: both; } +.doc .text-left { + text-align: left; +} + +.doc .text-center { + text-align: center; +} + +.doc .text-right { + text-align: right; +} + +.doc .text-justify { + text-align: justify; +} + .doc .stretch { width: 100%; } From 96e7d83441096aa4678c203ab40262b1615de982 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 20 Sep 2023 02:17:09 -0600 Subject: [PATCH 017/132] restore global word-wrap setting on AsciiDoc table cells --- src/css/doc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/css/doc.css b/src/css/doc.css index 7cab74fb..dfe2ad0e 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -284,6 +284,10 @@ margin-top: 0.5rem; } +.doc td.tableblock > .content { + word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */ +} + .doc td.tableblock > .content > :first-child { margin-top: 0; } From 98661397fcce3080c2955a6ca1f962c0368660ed Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 24 Sep 2023 13:48:55 -0600 Subject: [PATCH 018/132] add support for pre-wrap role on inline --- src/css/doc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/css/doc.css b/src/css/doc.css index dfe2ad0e..030cf8c4 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -1078,6 +1078,10 @@ word-wrap: normal; } +.doc :not(pre).pre-wrap { + white-space: pre-wrap; +} + #footnotes { font-size: 0.85em; line-height: 1.5; From 24b9ea0e79eecd7f1887e133d6482c044a31e99b Mon Sep 17 00:00:00 2001 From: Adrian Hall Date: Wed, 4 Oct 2023 06:46:15 +0000 Subject: [PATCH 019/132] add styles to support big and small roles --- src/css/doc.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/css/doc.css b/src/css/doc.css index 030cf8c4..82c647e7 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -222,6 +222,14 @@ width: 100%; } +.doc .big { + font-size: larger; +} + +.doc .small { + font-size: smaller; +} + .doc .underline { text-decoration: underline; } From ae065249ece93e0e14a2f86adb101e34cf7a1a04 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 4 Oct 2023 01:08:09 -0600 Subject: [PATCH 020/132] add examples of built-in roles to preview page --- preview-src/index.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index f39eb1fc..afdbda0a 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -29,7 +29,7 @@ Nominavi luptatum eos, an vim hinc philosophia intellegebat. Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea. H~2~0. E = mc^2^. -Eum an doctus <>. +[.big]#Eum# an [.small]#doctus# <>. Eu mea inani iriure.footnote:[Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit.] [,json] @@ -322,4 +322,5 @@ ____ == Fin +[.text-right] That's all, folks! From c2bc811d00f815b1dead375a49747b03d41b876c Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Wed, 4 Oct 2023 01:10:07 -0600 Subject: [PATCH 021/132] Release prod-308 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index f7509b42..939b1db4 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-307 +:current-release: prod-308 // Settings: :experimental: :hide-uri-scheme: From f6e44295d156e57eabc6312369d9288f3e939ca1 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 5 Oct 2023 03:27:39 -0600 Subject: [PATCH 022/132] add dig helper to simplify lookup of component order on 404 page --- src/helpers/dig.js | 10 ++++++++++ src/layouts/404.hbs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/helpers/dig.js diff --git a/src/helpers/dig.js b/src/helpers/dig.js new file mode 100644 index 00000000..392737ef --- /dev/null +++ b/src/helpers/dig.js @@ -0,0 +1,10 @@ +'use strict' + +module.exports = (object, path) => { + const paths = path.split('.') + let result = object + for (let i = 0, len = paths.length; i < len; i++) { + if (!(result = result[paths[i]])) break + } + return result +} diff --git a/src/layouts/404.hbs b/src/layouts/404.hbs index e289949d..945d7292 100644 --- a/src/layouts/404.hbs +++ b/src/layouts/404.hbs @@ -5,7 +5,7 @@ {{> header}} -{{> body componentOrder=(lookup (lookup (lookup (siteStartPage) 'asciidoc') 'attributes') 'page-component-order')}} +{{> body componentOrder=(dig (siteStartPage) 'asciidoc.attributes.page-component-order')}} {{> footer}} From 46fa572237b3e88052206445a546c4de65b31fd6 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 5 Oct 2023 03:36:53 -0600 Subject: [PATCH 023/132] move component order lookup into nav-explore partial --- src/layouts/404.hbs | 2 +- src/layouts/default.hbs | 2 +- src/partials/nav-explore.hbs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/404.hbs b/src/layouts/404.hbs index 945d7292..8caab1dc 100644 --- a/src/layouts/404.hbs +++ b/src/layouts/404.hbs @@ -5,7 +5,7 @@ {{> header}} -{{> body componentOrder=(dig (siteStartPage) 'asciidoc.attributes.page-component-order')}} +{{> body}} {{> footer}} diff --git a/src/layouts/default.hbs b/src/layouts/default.hbs index 8e68ca50..c5282ec1 100644 --- a/src/layouts/default.hbs +++ b/src/layouts/default.hbs @@ -5,7 +5,7 @@ {{> header}} -{{> body componentOrder=page.attributes.component-order}} +{{> body}} {{> footer}} diff --git a/src/partials/nav-explore.hbs b/src/partials/nav-explore.hbs index 40992cc3..73261fa1 100644 --- a/src/partials/nav-explore.hbs +++ b/src/partials/nav-explore.hbs @@ -6,7 +6,7 @@ {{/if}}
    - {{#each (rearrange site.components 'name' componentOrder)}} + {{#each (rearrange site.components 'name' (or page.attributes.component-order (dig (siteStartPage) 'asciidoc.attributes.page-component-order')))}}
  • {{{./title}}} {{#if (or ./versions.[1] (and (ne ./versions.[0].displayVersion 'default') (ne ./versions.[0].displayVersion 'pre-spec')))}} From 4ef79084ab6099d4ee70c884c559e68d5dad9faf Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Thu, 5 Oct 2023 03:39:07 -0600 Subject: [PATCH 024/132] Release prod-309 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 939b1db4..85db948f 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-308 +:current-release: prod-309 // Settings: :experimental: :hide-uri-scheme: From a10dfda9435aa73ac804a37d26cac7d3c83b3df7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 4 Nov 2023 01:56:32 -0600 Subject: [PATCH 025/132] fix margin around descriptions in description list * apply margin to top of subsequent terms (using dd + dt selector) instead of end of description * add margin top to principal text --- preview-src/index.adoc | 1 + src/css/doc.css | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index afdbda0a..e8e054f1 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -192,6 +192,7 @@ sed:: splendide sed mea:: +tad:: agam graeci Let's look at that another way. diff --git a/src/css/doc.css b/src/css/doc.css index 82c647e7..0dd86a3c 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -948,11 +948,12 @@ } .doc .dlist dd { - margin: 0 0 0.25rem 1.5rem; + margin: 0 0 0 1.5rem; } -.doc .dlist dd:last-of-type { - margin-bottom: 0; +.doc .dlist dd + dt, +.doc .dlist dd > p:first-child { + margin-top: 0.5rem; } .doc td.hdlist1, From faf14bd7cc3bf1acd98723f3337884524672955e Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Sat, 4 Nov 2023 02:01:58 -0600 Subject: [PATCH 026/132] Release prod-310 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 85db948f..e61b80e1 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-309 +:current-release: prod-310 // Settings: :experimental: :hide-uri-scheme: From b7d0f61de09682ff296180e7c0b7cde24b26ce8e Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 7 Nov 2023 15:17:09 -0700 Subject: [PATCH 027/132] update dig to return immediately if object passed in is null --- src/helpers/dig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/dig.js b/src/helpers/dig.js index 392737ef..95da0511 100644 --- a/src/helpers/dig.js +++ b/src/helpers/dig.js @@ -1,6 +1,7 @@ 'use strict' module.exports = (object, path) => { + if (object == null) return const paths = path.split('.') let result = object for (let i = 0, len = paths.length; i < len; i++) { From 753f4d744985099a9e4b1be76dc1c2a710471c70 Mon Sep 17 00:00:00 2001 From: Asciidoctor DocBot Date: Tue, 7 Nov 2023 15:18:29 -0700 Subject: [PATCH 028/132] Release prod-311 --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index e61b80e1..63a670b6 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = Asciidoctor Docs UI // Variables: -:current-release: prod-310 +:current-release: prod-311 // Settings: :experimental: :hide-uri-scheme: From 5440bf1f690e99de2293eae5fb85014bb9aaa9a5 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 7 Nov 2023 15:23:18 -0700 Subject: [PATCH 029/132] resolves #47 add aria- attributes to mobile menu button; replace data-target with aria-controls (PR #133) --- src/js/05-mobile-navbar.js | 4 ++-- src/partials/header-content.hbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/05-mobile-navbar.js b/src/js/05-mobile-navbar.js index 0f35ee5b..88475f3d 100644 --- a/src/js/05-mobile-navbar.js +++ b/src/js/05-mobile-navbar.js @@ -8,7 +8,7 @@ function toggleNavbarMenu (e) { e.stopPropagation() // trap event var html = document.documentElement - var menu = document.getElementById(this.dataset.target) + var menu = document.getElementById(this.getAttribute('aria-controls') || this.dataset.target) if (!menu.classList.contains('is-active') && /mobi/i.test(window.navigator.userAgent)) { if (Math.round(parseFloat(window.getComputedStyle(html).minHeight)) !== window.innerHeight) { html.style.setProperty('--vh', window.innerHeight / 100 + 'px') @@ -17,7 +17,7 @@ } } html.classList.toggle('is-clipped--navbar') - this.classList.toggle('is-active') + navbarBurger.setAttribute('aria-expanded', this.classList.toggle('is-active')) menu.classList.toggle('is-active') } })() diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index 9f7bcb36..8fc47e02 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -3,7 +3,7 @@