Commit graph

18 commits

Author SHA1 Message Date
Niklas Fasching
980dd2038d make: Allow generating single fixture 2022-07-24 00:28:23 +02:00
Niklas Fasching
9d1e3cf24f make: Only rebuild when necessary 2022-07-24 00:28:23 +02:00
Niklas Fasching
f8b8e73722 make: Add serve-gh-pages target
As github pages is served not on root but /go-org/ we need to move everything
into a subdirectory of that name when serving locally
2022-05-30 17:31:54 +02:00
Niklas Fasching
fa13957511 README: Remove deprecated install target and check for go in setup
seems like i removed that target at some point and forgot to update the
readme. As installing go is os specific let's just check for go instead and
let the user handle the installing.
2022-03-19 18:39:14 +01:00
Niklas Fasching
429602aba7 make: fix preview command 2021-07-13 22:13:58 +02:00
Niklas Fasching
e5ae608865 Improve Makefile: Only install dependencies and rebuild when required
By getting rid of the PHONY install and bundling the go get with its uses we
can prevent unnecessary go gets in `make build` - this speeds up development as
I run `make generate-fixtures` a lot and fetching dependencies takes
comparatively long.

We also add the `-d` flag to go get to get rid of the deprecation warning
```
go get: installing executables with 'go get' in module mode is deprecated.
	To adjust and download dependencies of the current module, use 'go get -d'.
	To install using requirements of the current module, use 'go install'.
	To install ignoring the current module, use 'go install' with a version,
	like 'go install example.com/cmd@latest'.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
```
2021-04-17 15:48:41 +02:00
Niklas Fasching
de302bbc0a Add make preview & update README with basic development instructions
not sure how helpful this really this but something is better than nothing i
guess
2019-09-22 02:02:32 +02:00
Niklas Fasching
6dd8e90bb8 Cleanup: UPDATE README & Makefile
render hasn't been used for a long time now - time to get rid of it.
2019-01-07 20:31:12 +01:00
Niklas Fasching
8e154c2fd8 Set up fuzzing with go-fuzz 2018-12-20 00:30:58 +01:00
Niklas Fasching
ade2a1c875 Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that
when the input is not pretty printed already - with the introduction of blocks
with unindented content that will be the case.
2018-12-18 23:54:04 +01:00
Niklas Fasching
2947d7632d Support basic #+INCLUDE (src/example/export block only)
including org files is more complex - e.g. footnotes need to be namespaced to
their source file. org does this by prefixing each included files footnotes
with a number - but even that is not enough as it doesn't guarantee
uniqueness.

As I don't have a usecase for it, I'll avoid the additional complexity for
now.
2018-12-14 17:09:00 +01:00
Niklas Fasching
9826aa2143 Add make target to automatically regenerate html fixtures
After changing something the fixtures need to be updated to reflect the new
output. This just moves those steps from my bash history to make.
2018-12-11 15:42:41 +01:00
Niklas Fasching
8cefd9fabc Set up github pages 2018-12-11 15:42:41 +01:00
Niklas Fasching
6adad92e8b Update main.go: Log to stdout & support both html and html-chroma
Could be moved into a flag but I'll significantly refactor the main.go later on
anyways - for now this works TM
2018-12-11 14:42:05 +01:00
Niklas Fasching
b1f9bfc9e9 Fix make test: also get test packages 2018-12-02 18:59:03 +01:00
Niklas Fasching
fc982125c9 Restructure directory layout: org subpackage 2018-12-02 18:37:55 +01:00
Niklas Fasching
6c683dfbdb Add basic html rendering 2018-12-02 16:49:44 +01:00
Niklas Fasching
00aa120bf4 Setup basic development environment: make, git hooks & CI 2018-12-02 16:49:44 +01:00