-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(extensions): add asciidoctor-tabs (#207)
* Add Asciidoctor extension asciidoctor/asciidoctor-tabs and few example * Improve the declaration CSS way. We can now use the classic CSS files with @import syntax
- Loading branch information
1 parent
97a6331
commit 7718f92
Showing
10 changed files
with
207 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
= Tabs block with synchronization | ||
:tabs-sync-option: | ||
|
||
Add `:tabs-sync-option:` to the page attribute header to enable synchronization of tabs. | ||
Source: https://github.com/asciidoctor/asciidoctor-tabs | ||
|
||
[tabs] | ||
==== | ||
Tab A:: Triggers selection of Tab A in other congruent tabsets. | ||
Tab B:: Triggers selection of Tab B in other congruent tabsets. | ||
==== | ||
|
||
... | ||
|
||
[tabs] | ||
==== | ||
Tab A:: Triggers selection of Tab A in other congruent tabsets. | ||
Tab B:: Triggers selection of Tab B in other congruent tabsets. | ||
==== | ||
|
||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs] | ||
==== | ||
Tab A:: Triggers selection of Tab A in other congruent tabsets. | ||
Tab B:: Triggers selection of Tab B in other congruent tabsets. | ||
==== | ||
... | ||
[tabs] | ||
==== | ||
Tab A:: Triggers selection of Tab A in other congruent tabsets. | ||
Tab B:: Triggers selection of Tab B in other congruent tabsets. | ||
==== | ||
---- | ||
======== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
= Tabs block with groups synchronization | ||
:tabs-sync-option: | ||
|
||
Source: https://github.com/asciidoctor/asciidoctor-tabs | ||
|
||
[tabs,sync-group-id=group-1] | ||
==== | ||
Tab A:: Triggers selection of Tab A in second tabset. | ||
Tab B:: Triggers selection of Tab B in second tabset. | ||
==== | ||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs,sync-group-id=group-1] | ||
==== | ||
Tab A:: Triggers selection of Tab A in second tabset. | ||
Tab B:: Triggers selection of Tab B in second tabset. | ||
==== | ||
---- | ||
======== | ||
[tabs,sync-group-id=group-1] | ||
==== | ||
Tab A:: Triggers selection of Tab A in first tabset. | ||
Tab B:: Triggers selection of Tab B in first tabset. | ||
==== | ||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs,sync-group-id=group-1] | ||
==== | ||
Tab A:: Triggers selection of Tab A in first tabset. | ||
Tab B:: Triggers selection of Tab B in first tabset. | ||
==== | ||
---- | ||
======== | ||
[tabs,sync-group-id=group-2] | ||
==== | ||
Tab A:: Triggers selection of Tab A in fourth tabset. | ||
Tab B:: Triggers selection of Tab B in fourth tabset. | ||
==== | ||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs,sync-group-id=group-2] | ||
==== | ||
Tab A:: Triggers selection of Tab A in fourth tabset. | ||
Tab B:: Triggers selection of Tab B in fourth tabset. | ||
==== | ||
---- | ||
======== | ||
[tabs,sync-group-id=group-2] | ||
==== | ||
Tab A:: Triggers selection of Tab A in third tabset. | ||
Tab B:: Triggers selection of Tab B in third tabset. | ||
==== | ||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs,sync-group-id=group-2] | ||
==== | ||
Tab A:: Triggers selection of Tab A in third tabset. | ||
Tab B:: Triggers selection of Tab B in third tabset. | ||
==== | ||
---- | ||
======== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
= Tabs block | ||
|
||
Source: https://github.com/asciidoctor/asciidoctor-tabs | ||
|
||
[tabs] | ||
==== | ||
Tab A:: Contents of Tab A. | ||
Tab B:: | ||
+ | ||
Contents of Tab B. | ||
Tab C:: | ||
+ | ||
-- | ||
Contents of Tab C. | ||
Contains more than one block. | ||
-- | ||
==== | ||
|
||
|
||
.Click to see the *source code* | ||
[%collapsible] | ||
======== | ||
[source,asciidoc] | ||
---- | ||
[tabs] | ||
==== | ||
Tab A:: Contents of Tab A. | ||
Tab B:: | ||
+ | ||
Contents of Tab B. | ||
Tab C:: | ||
+ | ||
-- | ||
Contents of Tab C. | ||
Contains more than one block. | ||
-- | ||
==== | ||
---- | ||
======== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('@asciidoctor/tabs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import '@docsearch/css/dist/style.css'; | ||
@import 'asciinema-player/dist/bundle/asciinema-player.css'; | ||
@import '@fortawesome/fontawesome-free/css/all.css'; | ||
@import '@asciidoctor/tabs/dist/css/tabs.css'; |