forked from happi/theBeamBook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- VERSION to indicate version info inside sections. When further descriptions are needed, authors can use this admonition. - Create style directory and put config files in it. - Adjust Makefile
- Loading branch information
Showing
8 changed files
with
41 additions
and
9 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
Binary file not shown.
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
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,30 @@ | ||
require 'asciidoctor/extensions' | ||
|
||
class VersionBlock < Asciidoctor::Extensions::BlockProcessor | ||
use_dsl | ||
named :VERSION | ||
on_context :example | ||
|
||
def process parent, reader, attrs | ||
attrs['name'] = 'version' | ||
attrs['caption'] = 'version' | ||
admon = create_block parent, :admonition, nil, attrs, content_model: :compound | ||
parse_content admon, reader | ||
admon | ||
end | ||
end | ||
|
||
class VersionBlockCss < Asciidoctor::Extensions::DocinfoProcessor | ||
use_dsl | ||
|
||
def process doc | ||
'<style> | ||
.admonitionblock td.icon .icon-version:before{content:"\f02c";color:#900C3F} | ||
</style>' | ||
end | ||
end | ||
|
||
Asciidoctor::Extensions.register do | ||
block VersionBlock | ||
docinfo_processor VersionBlockCss | ||
end |
File renamed without changes.
File renamed without changes.
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