-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
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 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
—
Reply to this email directly, view it on GitHub
<#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
added a commit
that referenced
this issue
May 23, 2024
I had something wrong in my local copy relating to #45 I cleaned it up and now builds fine. Signed-off-by: Kevin Broch <kbroch@rivosinc.com>
Closing as this was just a problem with my local checkout. sorry for the noise. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tried with docker:
and without:
The text was updated successfully, but these errors were encountered: