From b5054f7dc9237d6a70900b099a2d6e203137a2f7 Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Wed, 5 Jun 2024 10:05:10 -0700 Subject: [PATCH] add html build w and w/o non-normative data Signed-off-by: Kevin Broch --- .gitignore | 1 + projects/csr-format/Makefile | 8 +++++++- projects/csr-format/wavedrom-input.adoc | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/projects/csr-format/Makefile b/projects/csr-format/Makefile index 23785ce..2de2e64 100644 --- a/projects/csr-format/Makefile +++ b/projects/csr-format/Makefile @@ -7,4 +7,10 @@ DST = $(addsuffix -table.adoc, $(REG)) %-table.adoc: %-wavedrom.json5 wavedrom-bitfield-to-adoc-table.j2 jinja2 --strict -f json5 -o $@ wavedrom-bitfield-to-adoc-table.j2 $< -all: $(DST) +all: $(DST) build-html + +build-html: + asciidoctor -D build -r asciidoctor-diagram wavedrom-input.adoc + asciidoctor -D build -r asciidoctor-diagram -a non-norm wavedrom-input.adoc -o wavedrom-input-non-norm.html + xdg-open build/wavedrom-input.html + xdg-open build/wavedrom-input-non-norm.html diff --git a/projects/csr-format/wavedrom-input.adoc b/projects/csr-format/wavedrom-input.adoc index 608c3c0..41316e8 100644 --- a/projects/csr-format/wavedrom-input.adoc +++ b/projects/csr-format/wavedrom-input.adoc @@ -6,6 +6,9 @@ Demonstrate wavedrom input converted to other outputs (ex: table) ## Example +example of including the Zabha register + +ifdef::non-norm[] .Zabha register [wavedrom, zabha-ext-wavedrom-reg, svg] .... @@ -14,6 +17,7 @@ include::zabha-ext-reg-wavedrom.json5[] .Zabha register include::zabha-ext-reg-table.adoc[] +end::non-norm[] ## Implementation details