asciidoctor-autoterm 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +5 -0
- data/README.adoc +13 -1
- data/lib/asciidoctor/autoterm/table_roles.rb +2 -0
- data/lib/asciidoctor/autoterm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c8192a4a53f24ff15393cef22492236d6008e36cf26ca7a32b7effa0e72dccd
|
|
4
|
+
data.tar.gz: c15610cd243fddd07394530cfc9ededc306e8c862f8fa85c3d9ff8b9786e7983
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfd54fb234911200003f93a2ba8e6194662a989ea2619c48a3e77cf5985c631089903c374ef22639fdf7c654daa61d8a318c762425f1106a8b804e60d2442443
|
|
7
|
+
data.tar.gz: 47b9476e439c8c0e3414738f0a69f95517fb9dd5da3feee2e72d5307d8aefe1e281cb56766b4578172b7ee1cb3603ce6a7d67d4a47891c9d7688792ffcb727a0
|
data/CHANGELOG.adoc
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `asciidoctor-autoterm` are documented here.
|
|
4
4
|
|
|
5
|
+
== 1.0.5 (2026-08-01)
|
|
6
|
+
|
|
7
|
+
* Added: `antora-extension/index.js`, a companion Antora extension that registers publishable Terminology and Index stub pages so `xref` targets resolve. Published separately as `@baiyibai-asciidoctor/autoterm`; not shipped in the gem. See README.adoc
|
|
8
|
+
* Fixed: `table_roles.rb` skips rendering the `.terminology` table instead of styling it into invisibility; the table previously still reserved page layout space and drew zero-size, unselectable glyphs
|
|
9
|
+
|
|
5
10
|
== 1.0.4 (2026-07-16)
|
|
6
11
|
|
|
7
12
|
* Fix the generated Terminology and Index sections rendering with chapter numbers (Chapter 1./Chapter 2.) when the fused document enables `sectnums`; the sections are now created unnumbered
|
data/README.adoc
CHANGED
|
@@ -86,6 +86,18 @@ Enable/disable those attributes as desired.
|
|
|
86
86
|
|
|
87
87
|
More information on using the Index with Antora Assembler is available at these links:
|
|
88
88
|
|
|
89
|
-
* https://antora.zulipchat.com/#narrow/channel/282400-users/topic/Possible.20to.20have.20a.20site-wide.20catchword.20index/near/446306647[^]
|
|
89
|
+
* https://antora.zulipchat.com/#narrow/channel/282400-users/topic/Possible.20to.20have.20a.20site-wide.20catchword.20index/near/446306647[^]
|
|
90
90
|
* https://gitlab.com/antora/antora-assembler/-/issues/51[^]
|
|
91
91
|
|
|
92
|
+
== Antora HTML Site: Resolving `xref` Targets for Terminology and Index
|
|
93
|
+
|
|
94
|
+
`@baiyibai-asciidoctor/autoterm` is an Antora Node.js extension that assists asciidoctor-pdf and antora-assembler: it registers publishable Terminology and Index stub pages so `xref` targets to them resolve.
|
|
95
|
+
Wrap a source reference to either page in `ifdef::loader-assembler[]` and `endif::[]` so it renders only for the PDF build.
|
|
96
|
+
|
|
97
|
+
[source,yaml]
|
|
98
|
+
----
|
|
99
|
+
antora:
|
|
100
|
+
extensions:
|
|
101
|
+
- require: '@baiyibai-asciidoctor/autoterm'
|
|
102
|
+
----
|
|
103
|
+
|
|
@@ -4,6 +4,8 @@ class PDFConverterTableRole < (Asciidoctor::Converter.for 'pdf')
|
|
|
4
4
|
register_for 'pdf'
|
|
5
5
|
|
|
6
6
|
def convert_table node
|
|
7
|
+
return if node.has_role? 'terminology'
|
|
8
|
+
|
|
7
9
|
if node.role?
|
|
8
10
|
key_prefix = %(role_<table>_#{node.roles[0]}_)
|
|
9
11
|
unless (role_entries = theme.each_pair.select {|name, val| name.to_s.start_with? key_prefix }).empty?
|