Go to file
Matti Pastell 985b3b1972 Add tests for converters 2016-12-12 19:54:02 +02:00
bin Improved error handling for Pandoc 2016-04-28 16:11:45 +03:00
doc Updated docs, added convert_doc 2016-12-12 14:05:26 +02:00
examples Fix plotly output for markdown, fix examples 2016-11-02 09:26:10 +02:00
src Add tests for converters 2016-12-12 19:54:02 +02:00
templates Implement adding plotly javascript to html file header using pandoc when needed. Remove Raleway, closes #45 2016-11-02 23:45:32 +02:00
test Add tests for converters 2016-12-12 19:54:02 +02:00
.gitignore Added tests for plotjl/generic multimedia 2016-04-27 22:04:21 +03:00
.travis.yml Preparing for 0.2 release 2016-10-30 19:11:13 +02: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 release notes 2016-11-03 00:01:40 +02:00
README.md Updated docs, added convert_doc 2016-12-12 14:05:26 +02:00
REQUIRE Add ipynbas input format #48 2016-12-11 20:23:19 +02: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 Plots, 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
  • Convert to and from IJulia notebooks

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.