Skip to content

Commit

Permalink
rename Docinfo::Styles class to Docinfo::Style
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 22, 2022
1 parent 584bd30 commit 746ae36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
* Link to stylesheet (style) and script (behavior) if `linkcss` attribute is set on document (#7)
* Honor safe mode settings (don't read files if safe mode is secure) (#7)

=== Changed

* Rename Docinfo::Styles class to Docinfo::Style

== 1.0.0-alpha.4 (2022-10-08) - @mojavelinux

=== Added
Expand Down
2 changes: 1 addition & 1 deletion js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Asciidoctor.convertFile('document-with-tabs.adoc', { extension_registry: registr
```

You can also require `@asciidoctor/tabs/extensions` to access the `Extensions` class.
Attached to that object are the `Block`, `Docinfo.Styles`, and `Docinfo.Behavior` extension classes.
Attached to that object are the `Block`, `Docinfo.Style`, and `Docinfo.Behavior` extension classes.
You can use these classes to register a bespoke tabs extension.

## Copyright and License
Expand Down
2 changes: 1 addition & 1 deletion lib/asciidoctor/tabs/docinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Docinfo
DATA_DIR = ::File.join (::File.absolute_path '../../..', __dir__), 'data'
end

class Styles < ::Asciidoctor::Extensions::DocinfoProcessor
class Style < ::Asciidoctor::Extensions::DocinfoProcessor
use_dsl
at_location :head

Expand Down
2 changes: 1 addition & 1 deletion lib/asciidoctor/tabs/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def group
((doc.options[:attributes] || {}).transform_keys {|it| it.delete '@!' }.key? 'tabs-stylesheet')
doc.set_attr 'tabs-stylesheet'
end
docinfo_processor Docinfo::Styles
docinfo_processor Docinfo::Style
docinfo_processor Docinfo::Behavior
nil
end
Expand Down

0 comments on commit 746ae36

Please sign in to comment.