mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
Support htmlize.el in Rakefile doc target
Htmlized output can now be produced by
rake doc[/path/to/htmlize/]
* Rakefile (doc): Add htmlize argument.
* doc/yas-doc-helper.el (yas--generate-html-batch): Tell org to use css
selectors only when exporting htmlized faces.
* doc/stylesheets/manual.css: Add styles for faces used by org export.
This commit is contained in:
8
Rakefile
8
Rakefile
@@ -45,8 +45,12 @@ task :release => [:package, 'doc:archive'] do
|
||||
end
|
||||
|
||||
desc "Generate document"
|
||||
task :doc do
|
||||
sh "#{$EMACS} -Q -L . --batch -l doc/yas-doc-helper.el" +
|
||||
task :doc, [:htmlize] do |t, args|
|
||||
load_path = '-L .'
|
||||
if args[:htmlize]
|
||||
load_path += " -L #{args[:htmlize]}"
|
||||
end
|
||||
sh "#{$EMACS} -Q #{load_path} --batch -l doc/yas-doc-helper.el" +
|
||||
" -f yas--generate-html-batch"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user