-
Notifications
You must be signed in to change notification settings - Fork 97
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
PDF export ignores include files #593
Comments
Are you using Asciidoctor PDF or |
I am using the asciidoctor-pdf engin, as checked in the extensions settings. |
And both AsciiDoc files are at the root of the workspace or inside a sub-directory? Do you use a custom |
I tried both moving the files at the root, and in subfolders, but it is the same result.
I had already installed asciidoctor-pdf. If I run the command in bash, everything works fine. |
I created a minimal master adoc and a minimal include adoc, without much content, nor formatting or document attributes, but it still does not work. Have a go and let me know if you managed to produce a PDF like this one using the Export PDF wuick command: |
Thanks for your input, I will try to reproduce. For reference, what is the absolute path to your workspace and to your AsciiDoc file? My guess is that the base directory is wrong and thus Asciidoctor PDF cannot resolve the target |
I meant the absolute path such as |
I cannot reproduce this issue. Could you please share your settings? |
I tried to move the files to another folder, and I got this: |
That's expected, if your AsciiDoc file is not in a workspace folder we cannot continue. We are using the workspace folder to set the base directory. |
C:\Users\istavrak\product_documentation\testmaster.adoc |
Your path does not contain any special character... but maybe it's a Windows related issue 🤔 |
Nothing different I am afraid... and again, it works perfectly for any other adoc that does not have include adocs. And it should not be a problem of the asciidoctor-pdf because running the command from bash works perfectly. This is really strange.. it is definitely a Windows thing. I also selected and unselected the "asciidoc.useWorkspaceRootAsBaseDirectory" setting, but all the same. |
I managed to solve this by using the absolute path to the file: include::C:\Users\istavrak\product_documentation\testinclude.adoc[] It is not ideal, and I am not sure if this will cause any problems later when we will develop our Antora-based portal, but at least it works this way. |
The export relies on a binary (
You shouldn't do that. |
I can reproduce it on Windows. As expected, the base directory is wrong, we are using:
On Windows, Not sure why we do that, I will fix/simplify the code. |
Thank you very much! |
I'm glad you've noticed this small detail 😄 |
Are you kidding me? I live for such details 😅😅😅 |
Description
When exporting a PDF using "AsciiDoc: Export document as PDF" quick command, the resulting PDF does not include the included adoc files. The PDF states the following error message:
Unresolved directive in - include::test.adoc[tag=guide]
System Information
VSCode: 1.68.1
OS: Windows_NT x64 10.0.19044
AsciiDoc v3.0.0.
To Reproduce
Steps to reproduce the issue:
Additional Context
Running the asciidoctor-pdf bash command renders the PDF as expected.
The text was updated successfully, but these errors were encountered: