Here are the installation instructions from the old README, for posterity.
Install kramdown-rfc2629
gem install kramdown-rfc2629
You may need to prefix the above command with sudo if it doesn't have sufficient permissions to complete the installation.
Install xml2rfc:
pip3 install xml2rfc --user
This will place the executable in ~/.local/bin
Install xmlstarlet
On macOS, issue:
brew install xmlstarlet
On Linux, issue something like:
apt-get install -y xmlstarlet
aex is an ABNF extractor and bap an ABNF syntax checker.
- Clone https://github.com/fenner/bap
- In the cloned directory execute
./configuremake
aexandbapbinaries should now exist in the directory- Add them to your path
This will:
- re-generate the
.txtand.htmlfiles - check the ABNF syntax
xml2rfc ./draft-ietf-jsonpath-base.xml --text --html && aex draft-ietf-jsonpath-base.txt | bap -S path -q
A script gen.sh is provided for convenience. You can also use docker-gen.sh version that installs and runs all utilities within a Docker container.