-
Couldn't load subscription status.
- Fork 36
Description
Describe the bug
I organize all my requirements in different .sdoc files and have one main.sdoc (basically as a simple TOC) and include the others via the DOCUMENT_FROM_FILE keyword. When using the html view everything works as expected, but when exported as a PDF or directly converted to a PDF the links from included files do not work anymore. links inside the main.sdoc work.
To Reproduce
Create the files needed to reproduce the above:
main.sdoc:
[DOCUMENT]
TITLE: Project Risk Management
[TEXT]
STATEMENT: Main file
[DOCUMENT_FROM_FILE]
FILE: included.sdoc
[REQUIREMENT]
UID: REQ-003
TITLE: Third one
STATEMENT: Third statement links to fourth: [LINK: REQ-004]
[REQUIREMENT]
UID: REQ-004
TITLE: fourth one
STATEMENT: The fourth statement
included.sdoc:
[DOCUMENT]
TITLE: Included doc
[REQUIREMENT]
UID: REQ-001
TITLE: First one
STATEMENT: First statement links to second: [LINK: REQ-002]
[REQUIREMENT]
UID: REQ-002
TITLE: second one
STATEMENT: The second statement
compile to pdf with:
docker run --rm -v $(pwd):/data -e HOST_UID=$(id -u) -e HOST_GID=$(id -g) -it strictdoc:latest /bin/bash -c 'cd /data && strictdoc export . --output-dir output --formats html2pdf'
I use the Dockerfile from the current repo
Expected behavior
REQ-001 should link to REQ-002, like REQ-003 does to REQ-004
Environment
strictdoc version: 0.14.0
Arch linux and official docker container from the repository to use strictdoc from within the container.