Skip to content

Commit

Permalink
add html build w and w/o non-normative data
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Broch <[email protected]>
  • Loading branch information
kbroch-rivosinc committed Jun 5, 2024
1 parent 5e32691 commit b5054f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
8 changes: 7 additions & 1 deletion projects/csr-format/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions projects/csr-format/wavedrom-input.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
....
Expand All @@ -14,6 +17,7 @@ include::zabha-ext-reg-wavedrom.json5[]

.Zabha register
include::zabha-ext-reg-table.adoc[]
end::non-norm[]


## Implementation details
Expand Down

0 comments on commit b5054f7

Please sign in to comment.