Commit graph

14 commits

Author SHA1 Message Date
Avery Pennarun
1479189bfe mkdocs: include additional hljs languages.
We upgraded mkdocs earlier to support some useful features (like the
mkdocs-exclude plugin), but that one changes the highlight.js
configuration to include fewer languages by default.  Specify the
additional ones we want to include.

Reported-by: @DRMacIver on twitter
2019-02-12 16:32:30 -05:00
Avery Pennarun
3923a7d3f8 cookbook/container: example of building+running docker containers.
This got... long... and complicated.  But I think it's a really good
demonstration of getting redo to do complicated things elegantly.  At
least, I hope it is.
2019-01-08 01:42:33 -05:00
Avery Pennarun
01497f55e9 mkdocs: enforce sufficiently new version, and use mkdocs-exclude.
We want to use the mkdocs-exclude plugin, which lets us exclude
particular files from the output directory.  But plugins aren't
available in the debian-stable version of mkdocs, so ensure that we're
running a sufficiently new version.  If we aren't, gracefully just skip
building the documentation.
2019-01-08 01:33:47 -05:00
Avery Pennarun
f6fe00db5c Directory reorg: move code into redo/, generate binaries in bin/.
It's time to start preparing for a version of redo that doesn't work
unless we build it first (because it will rely on C modules, and
eventually be rewritten in C altogether).

To get rolling, remove the old-style symlinks to the main programs, and
rename those programs from redo-*.py to redo/cmd_*.py.  We'll also move
all library functions into the redo/ dir, which is a more python-style
naming convention.

Previously, install.do was generating wrappers for installing in
/usr/bin, which extend sys.path and then import+run the right file.
This made "installed" redo work quite differently from running redo
inside its source tree.  Instead, let's always generate the wrappers in
bin/, and not make anything executable except those wrappers.

Since we're generating wrappers anyway, let's actually auto-detect the
right version of python for the running system; distros can't seem to
agree on what to call their python2 binaries (sigh). We'll fill in the
right #! shebang lines.  Since we're doing that, we can stop using
/usr/bin/env, which will a) make things slightly faster, and b) let us
use "python -S", which tells python not to load a bunch of extra crap
we're not using, thus improving startup times.

Annoyingly, we now have to build redo using minimal/do, then run the
tests using bin/redo.  To make this less annoying, we add a toplevel
./do script that knows the right steps, and a Makefile (whee!) for
people who are used to typing 'make' and 'make test' and 'make clean'.
2018-12-04 02:53:40 -05:00
Avery Pennarun
280cf6f3aa Add Roadmap.md. 2018-12-03 01:45:36 -05:00
Avery Pennarun
f25ebd6ccc Docs: format inline <code> blocks better.
It seems like we're using these differently than most readthedocs.org
users.  Remove the borders and padding so they work better inline, and
prevent confusing word wraps.
2018-11-29 14:59:38 -05:00
Avery Pennarun
2e84c1bc02 Docs/cookbook: add an R + latex example.
This shows how to dynamically generate a plot in R+ggplot2, then embed
it into a latex document, and compile it to pdf, all with proper
autodependencies.
2018-11-28 17:33:03 -05:00
Avery Pennarun
d9d70c4c44 Even more doc cleanups. 2018-11-26 17:45:16 -05:00
Avery Pennarun
3b305edc7e Cookbook: add an example of using default.do for text processing. 2018-11-26 15:24:41 -05:00
Avery Pennarun
d663c9b67d First cookbook example for the docs: Hello World in C. 2018-11-24 14:36:02 -05:00
Avery Pennarun
1b616ddcbb Improved documentation.
Removed the Cookbook link for now, since it's empty.
2018-11-20 09:50:37 -05:00
Avery Pennarun
6ad0b032d4 redo-log: add man page. 2018-11-19 19:32:50 -05:00
Avery Pennarun
d0607d0091 Refactor the huge README.md into the more structured mkdocs.
I also cleaned up the installation section and added links to various
competing redo implementations.

The new README.md is basically just link to the docs on
readthedocs.org, and a link to the mailing list.

These docs need a *lot* more work, but this is enough of an improvement
that I'll commit it anyway for now.
2018-11-16 05:22:09 -05:00
Avery Pennarun
baae4fe213 Move mkdocs.yml into root directory, so readthedocs.org will work. 2018-11-16 01:14:15 -05:00
Renamed from Documentation/mkdocs.yml (Browse further)