Commit Graph

416 Commits (0cdcc72bfbc629f02b69a42d39e20ca0cb048b71)

Author SHA1 Message Date
Shuhei Kadowaki 0f94c7b49c fix case when `weave_options` are empty 2020-05-23 21:18:16 +09:00
Shuhei Kadowaki 3f4ba672b3 Revert "rm unused dict push!"
This reverts commit ef295e9a24.
2020-05-23 20:07:59 +09:00
Shuhei Kadowaki 745abe176c Revert "rm unused field from WeaveDoc"
This reverts commit 301f9b2f27.
2020-05-23 20:07:41 +09:00
Shuhei Kadowaki 301f9b2f27 rm unused field from WeaveDoc 2020-05-23 20:03:38 +09:00
Shuhei Kadowaki ef295e9a24 rm unused dict push! 2020-05-23 19:52:00 +09:00
Shuhei Kadowaki a03a1d4c34 EXAMPLE_FOLDER 2020-05-23 19:42:19 +09:00
Shuhei Kadowaki 8aa8f0c4df easy doc access 2020-05-18 22:59:18 +09:00
Shuhei Kadowaki b4c2bbea45 deprecate `options`, change to `weave_options`:
- avoid unexpected header stripping (`options` sounds too general)
- deprecated `options` support will be remove within ≥v0.11
2020-05-18 22:10:26 +09:00
Shuhei Kadowaki 4113402908 rename `latex_keep_unicode` to `keep_unicode`, handle this in `format` 2020-05-17 12:17:24 +09:00
Shuhei Kadowaki 249c94a5c1 avoid manipulation of global struct 2020-05-17 12:14:30 +09:00
Shuhei Kadowaki 101b170ea6 some support for dynamic YAML `weave` configuration 2020-05-17 11:45:39 +09:00
Shuhei Kadowaki 6d1732247a a bit refactor 2020-05-17 11:10:25 +09:00
Shuhei Kadowaki b7233b468e no `term` option for inline code chunk 2020-05-17 11:05:30 +09:00
Shuhei Kadowaki 405deb3681 reorder things 2020-05-17 10:30:33 +09:00
Shuhei Kadowaki 87ba87d2d1 resolve CSS theme path relative to a target document when given in YAML 2020-05-17 10:29:01 +09:00
Shuhei Kadowaki cec388e94f add Weave version 2020-05-17 01:16:59 +09:00
Shuhei Kadowaki 0831144393
Merge pull request #311 from JunoLab/avi/limitdisplay
limit display:
2020-05-17 00:18:12 +09:00
Shuhei Kadowaki e60f066d31 fix when a header value is not `String` 2020-05-16 23:45:41 +09:00
Shuhei Kadowaki f86f5a7bd0 preserve header when weaving to Hugo markdown 2020-05-16 23:31:27 +09:00
Shuhei Kadowaki 5fb3fae741 no ANSI chars 2020-05-16 23:11:05 +09:00
Shuhei Kadowaki 7b53eb8e9e limit display:
- for now if we try to render a "big object" like a table with many 
rows, Weave tries to render all of the result and it can lead to that a 
document can't even be opened
2020-05-16 23:11:05 +09:00
Shuhei Kadowaki 58bc741b7f detect doctype when running a doc 2020-05-16 23:10:44 +09:00
Shuhei Kadowaki bca3ee7dd1 LTS compat ... 2020-05-16 21:04:58 +09:00
Shuhei Kadowaki ba8e9f4724 fix header handling in noweb doc 2020-05-16 20:33:48 +09:00
Shuhei Kadowaki 99a50ad86f integrate with Juno progress bar 2020-05-16 19:52:56 +09:00
Shuhei Kadowaki 2a6ee38850 fix code chunk line numbers 2020-05-16 19:52:24 +09:00
Shuhei Kadowaki c1cf566c53 refactor format.jl 2020-05-16 17:59:17 +09:00
Shuhei Kadowaki 0d3d3a8c19 rm code ... 2020-05-16 17:59:04 +09:00
Shuhei Kadowaki 6d91ab6512 no explicit header support in `convert_doc` 2020-05-16 17:53:46 +09:00
Shuhei Kadowaki 17c2151d86 a bit refactor:
- don't match slide `---` separator as header start/end
- recognize `doctype` in construction
2020-05-16 01:49:30 +09:00
Shuhei Kadowaki 492d1f330b dynamic YAML option specification 2020-05-16 01:47:52 +09:00
Shuhei Kadowaki 42115e7d52 rename writer.jl -> converter.jl 2020-05-16 00:43:33 +09:00
Shuhei Kadowaki 094ebea6cf simplify converter functions 2020-05-16 00:32:28 +09:00
Shuhei Kadowaki 7c2eb23bcd small refactors (mostly about code styles) 2020-05-16 00:32:09 +09:00
Shuhei Kadowaki bc0f687352 rm header_args 2020-05-10 15:55:37 +09:00
Shuhei Kadowaki 2e19930565
Merge pull request #323 from JunoLab/avi/bang
use bangs for destructive functions
2020-05-10 14:28:40 +09:00
Shuhei Kadowaki 54e50a54cb users should load Cairo 2020-05-10 14:07:55 +09:00
Shuhei Kadowaki d809ddf703
Merge pull request #322 from JunoLab/avi/require
don't load Weave Plots submodules into user's module
2020-05-10 14:06:09 +09:00
Shuhei Kadowaki e459bfb87d use bangs for destructive functions 2020-05-10 13:56:09 +09:00
Shuhei Kadowaki ede31bcf74 don't load Weave Plots submodules into user's module 2020-05-10 13:35:54 +09:00
Shuhei Kadowaki e89d5da250 rm unncessary `Symbol` spec:
- change `informat` and `doctype` options to 
`Union{NothingAbstractString}`
2020-05-10 13:20:44 +09:00
Shuhei Kadowaki 4b6fc2d913 fix typings 2020-05-10 00:01:49 +09:00
Shuhei Kadowaki c825076e36 simplify imports 2020-05-10 00:01:41 +09:00
Shuhei Kadowaki 68f72bdfb3 small updates 2020-05-09 23:55:11 +09:00
Shuhei Kadowaki 4dae2a0816 `WEAVE_OPTION_NAME` 2020-05-09 22:42:05 +09:00
Shuhei Kadowaki 36bdd4f82b remove weird default constructor for `WeaveDoc` 2020-05-09 22:33:58 +09:00
Shuhei Kadowaki 5f7cf529b9 chunks.jl -> types.jl 2020-05-09 21:03:00 +09:00
Shuhei Kadowaki 750b7624e0 refactor readers.jl:
- avoid unnecessary overloading on `parse_doc`
- split readers.jl into multiple scripts
2020-05-09 20:17:53 +09:00
Shuhei Kadowaki 79579053f1 refactor tests:
- simpler module evaluation test
- remove useless include_weave test
2020-05-09 17:27:51 +09:00
Shuhei Kadowaki d4413a1d78 clear sandbox module correctly 2020-05-09 16:09:11 +09:00