Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjbianco/chapper
An AsciiDoc chapter mapper named Chapper
https://github.com/gjbianco/chapper
Last synced: about 1 month ago
JSON representation
An AsciiDoc chapter mapper named Chapper
- Host: GitHub
- URL: https://github.com/gjbianco/chapper
- Owner: gjbianco
- License: gpl-3.0
- Created: 2021-03-27T12:30:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T17:05:33.000Z (almost 4 years ago)
- Last Synced: 2024-12-09T12:57:35.471Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= chapper
This is chapper: `<<(.*)>>`
He finds reference IDs in your AsciiDoc files.
He uses those to map out how your sections and chapters reference one another and outputs GraphViz syntax.
You can paste the output directly into a tool like https://sketchviz.com/new[SketchViz] to generate the image.== Installation
Chapper is built using https://deno.land/[Deno] and TypeScript.
In order to build or run tests, you will need Deno installed (see main site -- it's a single binary!).
Experimentally, Deno has the ability to build JS/TS applications as a single binary, so releases of Chapper should run without dependencies.With Deno installed and added to your PATH, build Chapper with:
```
deno compile --unstable --allow-read -o chapper src/index.ts
```This will output a binary named `chapper`.
Copy this binary to your PATH.== Usage
Right now, Chapper is very naive in file input handling.
You will need to construct a glob that includes the files chapper should map.
For example:```
chapper path/to/sg-chapters/**/*.adoc
```This will run chapper with all AsciiDoc files found beneath the `sg-chapter` directory.
This is the main way to run chapper.=== Tests
Chapper includes unit tests, which you can run with `deno test`.