Go to file
Michael Hatherly ef59d52698
Updates for Documenter.jl syntax changes
See https://github.com/MichaelHatherly/Documenter.jl/pull/51 for details.
2016-05-18 22:12:01 +02:00
bin Improved error handling for Pandoc 2016-04-28 16:11:45 +03:00
doc Updates for Documenter.jl syntax changes 2016-05-18 22:12:01 +02:00
examples Generic svg and png handlers work 2016-04-27 15:10:26 +03:00
src Added out_height support to tex and pandoc figures 2016-05-03 17:54:56 +03:00
templates Different background colors for code and results 2016-05-02 23:35:24 +02:00
test Adds tests for display and prompt chunk options 2016-05-01 01:05:27 +02:00
.gitignore Added tests for plotjl/generic multimedia 2016-04-27 22:04:21 +03:00
.travis.yml Update conda path in travis 2016-04-11 19:15:39 +03:00
LICENSE.md Renamed package to Weave,jl as discussed in mpastell:pull-request/54b50af2 2014-12-08 10:31:03 +02:00
NEWS.md Updated news 2016-05-02 23:49:27 +03:00
README.md Tweak Readme 2016-04-26 00:43:00 +03:00
REQUIRE Fix to deserialing cached content. Caching now works as previously documented and tests pass 2016-04-23 19:19:38 +03:00

README.md

Weave

Build StatusCoverage Status

Weave is a scientific report generator/literate programming tool for Julia. It resembles Pweave and, Knitr and Sweave.

You can write your documentation and code in input document using Nowed or Markdown syntax and use weave function to execute to document to capture results and figures.

Current features

  • Noweb, markdown or script syntax for input documents.
  • Execute code as terminal or "script" chunks.
  • Capture Gadfly, PyPlot and Winston figures.
  • Supports LaTex, Pandoc, Github markdown, MultiMarkdown, Asciidoc and reStructuredText output
  • Publish markdown directly to html and pdf using Pandoc.
  • Simple caching of results

Usage

Run from julia using Gadfly for plots:

using Weave
weave(Pkg.dir("Weave","examples","gadfly_sample.mdw"))

If you have Pandoc installed you can also weave directly to html and pdf.

weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), informat="markdown",
  out_path = :pwd, doctype = "md2html")

Weave code and output

Documentation

Documenter.jl with MKDocs generated documentation:

Editor support

I have made language-weave package for Atom to do the syntax highlighting correctly.

Noweb documents work well with ESS as well, to set doc-mode for .mdw files to markdown and code to Julia you can do:

(defun mdw-mode ()
       (ess-noweb-mode)
       (setq ess-noweb-default-code-mode 'ess-julia-mode)
       (setq ess-noweb-doc-mode 'markdown-mode))

(setq auto-mode-alist (append (list (cons "\\.mdw$" 'mdw-mode))
                   auto-mode-alist))

Contributing

I will probably add new features to Weave when I need them myself or if they are requested and not too difficult to implement. You can contribute by opening issues on Github or implementing things yourself and making a pull request. I'd also appreciate example documents written using Weave to add to examples.

Contributors

You can see the list of contributors on Github: https://github.com/mpastell/Weave.jl/graphs/contributors. Thanks for the important additions, fixes and comments.