Skip to content

Commit

Permalink
AsciiDoc 8.6.5 has imported my CSS styles as toc2
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Jun 29, 2011
1 parent 3a05364 commit e6af68a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
2 changes: 1 addition & 1 deletion INSTALL
Expand Up @@ -6,7 +6,7 @@

* <<RubyGems>> 1.3.6 or newer.

* <<AsciiDoc>> 8.5.3 or newer.
* <<AsciiDoc>> 8.6.5 or newer.

* <<Pygments>> 1.3.1 or newer.

Expand Down
17 changes: 0 additions & 17 deletions lib/inochi/tasks/2-man.css
Expand Up @@ -26,30 +26,13 @@
text-decoration: underline;
}

#toc {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 13em;
padding: 0.5em;
padding-bottom: 1.5em;
margin: 0 !important;
overflow: auto;
}

#toc a {
color: #083194 !important;
}

#toc .toclevel1 {
margin-top: 1.25em;
}

#toc .toclevel2 {
margin-top: 0.25em;
display: list-item;
}
}

@media print {
Expand Down
10 changes: 5 additions & 5 deletions lib/inochi/tasks/2-man.rake
Expand Up @@ -41,7 +41,7 @@ CLEAN.include @man_asciidoc_dst

#-----------------------------------------------------------------------------

build_asciidoc_args = proc do |*atts|
build_asciidoc_attributes = proc do |*atts|
atts.concat Array(@project_config[:man_asciidoc_attributes])
args = atts.map {|a| ['-a', a] }.flatten

Expand All @@ -52,19 +52,19 @@ build_asciidoc_args = proc do |*atts|
end

file @man_html_dst => @man_asciidoc_dst do
args = build_asciidoc_args.call(
args = build_asciidoc_attributes.call(
'pygments', # for better syntax coloring than GNU Source Highlight
'data-uri', # to ensure the output is a monolithic HTML document
'icons', 'iconsdir={asciidoc-confdir}/{iconsdir}',
'toc', 'stylesheet=' + __FILE__.ext('css')
'toc2', 'stylesheet=' + __FILE__.ext('css')
)
sh 'asciidoc', '-o', @man_html_dst, *args
sh 'asciidoc', '-o', @man_html_dst, '-b', 'html5', *args
end

CLOBBER.include @man_html_dst

file @man_docbook_dst => @man_asciidoc_dst do
args = build_asciidoc_args.call
args = build_asciidoc_attributes.call
mkdir_p File.dirname(@man_docbook_dst)
sh 'asciidoc', '-o', @man_docbook_dst, '-d', 'manpage', '-b', 'docbook', *args
end
Expand Down

0 comments on commit e6af68a

Please sign in to comment.