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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ee0ad6d2b5cbc89ea9e41995baec95a117779116ee23199e6e84185c265e19a
4
- data.tar.gz: 5fadea490ed8b054c1d65aec234c9168ce224d717afa187768b62677432777a1
3
+ metadata.gz: 2c8192a4a53f24ff15393cef22492236d6008e36cf26ca7a32b7effa0e72dccd
4
+ data.tar.gz: c15610cd243fddd07394530cfc9ededc306e8c862f8fa85c3d9ff8b9786e7983
5
5
  SHA512:
6
- metadata.gz: be89f1ed4c39aff39ca5babb04a030376b2a0bf163592929bc15027d19795bda5db23b8aa59d3b6ae4e4069851a5f0396327f72995e4350f8f2a0ec9f0d88c65
7
- data.tar.gz: 56ed75abd9fc72e77430a4ac31303eb11329edcc0c2066cf5df9196e717412c55f9f1ccbc03c808c313bfda63e20bb0eaed71ceaebac5a62c0e0fa82083007e0
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?
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Autoterm
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-autoterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 白一百 baiyibai