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:
Noam Postavsky
2016-04-30 22:11:49 -04:00
parent beb2ba4d7f
commit 78fe979b7b
3 changed files with 41 additions and 3 deletions

View File

@@ -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