riscv / docs-spec-template

https://lists.riscv.org/g/sig-documentation
Creative Commons Attribution 4.0 International
18 stars 19 forks source link

Tried to update docs-resources to latest main and getting ERROR: could not locate or load the built-in pdf theme `docs-resources/themes/riscv-pdf.yml' because of NoMethodError undefined method `each' for "646b74":String; #45

Closed kbroch-rivosinc closed 4 months ago

kbroch-rivosinc commented 5 months ago
❯ git submodule status
 005cb0db1c46c31fff163914f3e480dbda0306be docs-resources (remotes/origin/HEAD)

Tried with docker:

❯ make
Checking if Docker is available...
Docker is available, building inside Docker container...
make[1]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template'
Starting build inside Docker container...
make build-docs
make[2]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template'
docker run --rm -v /home/kbroch/rvi/doc-team-repos/docs-spec-template:/build -w /build riscvintl/riscv-docs-base-container-image:latest /bin/sh -c " asciidoctor-pdf --trace -a compress -a mathematical-format=svg -a revnumber=v0.0.0 -a revremark=Draft -a revdate=2024-04-25 -a pdf-fontsdir=docs-resources/fonts -a pdf-theme=docs-resources/themes/riscv-pdf.yml  -D build --failure-level=ERROR --require=asciidoctor-bibtex --require=asciidoctor-diagram --require=asciidoctor-mathematical src/spec-sample.adoc "
asciidoctor: ERROR: could not locate or load the built-in pdf theme `docs-resources/themes/riscv-pdf.yml' because of NoMethodError undefined method `each' for "646b74":String; reverting to default theme
make[2]: *** [Makefile:61: spec-sample.pdf] Error 1
make[2]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template'
make[1]: *** [Makefile:78: build-container] Error 2
make[1]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template'
make: *** [Makefile:68: build] Error 2

and without:

❯ make build-no-container 
Starting build...
make SKIP_DOCKER=true build-docs
make[1]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template'
asciidoctor-pdf --trace -a compress -a mathematical-format=svg -a revnumber=v0.0.0 -a revremark=Draft -a revdate=2024-04-25 -a pdf-fontsdir=docs-resources/fonts -a pdf-theme=docs-resources/themes/riscv-pdf.yml  -D build --failure-level=ERROR --require=asciidoctor-bibtex --require=asciidoctor-diagram --require=asciidoctor-mathematical src/spec-sample.adoc 
asciidoctor: ERROR: could not locate or load the built-in pdf theme `docs-resources/themes/riscv-pdf.yml' because of NoMethodError undefined method `each' for "646b74":String; reverting to default theme

            val.each do |key2, val2|
               ^^^^^
make[1]: *** [Makefile:61: spec-sample.pdf] Error 1
make[1]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template'
make: *** [Makefile:83: build-no-container] Error 2
wmat commented 5 months ago

If you’re building locally you need to pull in the submodule content with git submodule —init. However, I haven’t seen that error before. I’ll look at it tomorrow morning.

Bill Traynor Documentation Build and Release Engineer RISC-V International

On Thu, Apr 25, 2024 at 9:51 PM Kevin Broch @.***> wrote:

❯ git submodule status 005cb0db1c46c31fff163914f3e480dbda0306be docs-resources (remotes/origin/HEAD)

Tried with docker:

❯ make Checking if Docker is available... Docker is available, building inside Docker container... make[1]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template' Starting build inside Docker container... make build-docs make[2]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template' docker run --rm -v /home/kbroch/rvi/doc-team-repos/docs-spec-template:/build -w /build riscvintl/riscv-docs-base-container-image:latest /bin/sh -c " asciidoctor-pdf --trace -a compress -a mathematical-format=svg -a revnumber=v0.0.0 -a revremark=Draft -a revdate=2024-04-25 -a pdf-fontsdir=docs-resources/fonts -a pdf-theme=docs-resources/themes/riscv-pdf.yml -D build --failure-level=ERROR --require=asciidoctor-bibtex --require=asciidoctor-diagram --require=asciidoctor-mathematical src/spec-sample.adoc " asciidoctor: ERROR: could not locate or load the built-in pdf theme docs-resources/themes/riscv-pdf.yml' because of NoMethodError undefined methodeach' for "646b74":String; reverting to default theme make[2]: [Makefile:61: spec-sample.pdf] Error 1 make[2]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template' make[1]: [Makefile:78: build-container] Error 2 make[1]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template' make: *** [Makefile:68: build] Error 2

and without:

❯ make build-no-container Starting build... make SKIP_DOCKER=true build-docs make[1]: Entering directory '/home/kbroch/rvi/riscv/docs-spec-template' asciidoctor-pdf --trace -a compress -a mathematical-format=svg -a revnumber=v0.0.0 -a revremark=Draft -a revdate=2024-04-25 -a pdf-fontsdir=docs-resources/fonts -a pdf-theme=docs-resources/themes/riscv-pdf.yml -D build --failure-level=ERROR --require=asciidoctor-bibtex --require=asciidoctor-diagram --require=asciidoctor-mathematical src/spec-sample.adoc asciidoctor: ERROR: could not locate or load the built-in pdf theme docs-resources/themes/riscv-pdf.yml' because of NoMethodError undefined methodeach' for "646b74":String; reverting to default theme

        val.each do |key2, val2|
           ^^^^^

make[1]: [Makefile:61: spec-sample.pdf] Error 1 make[1]: Leaving directory '/home/kbroch/rvi/riscv/docs-spec-template' make: [Makefile:83: build-no-container] Error 2

— Reply to this email directly, view it on GitHub https://github.com/riscv/docs-spec-template/issues/45, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN6ZHNO3IVMQ2JTYAY3ODY7GXJ3AVCNFSM6AAAAABGZ5NAKKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DINZZGEYDAOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kbroch-rivosinc commented 4 months ago

Closing as this was just a problem with my local checkout. sorry for the noise.