-
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
add imagesdir setting in asciidoctor attributes when antora is enable #855
Comments
it is odd. the image does not preview by default. unless add the following imagesdir entry in settings.json "asciidoc.preview.asciidoctorAttributes": { "imagesdir":"../images/" } @ggrossetie is your vscode a specific version? nightly build? anything we need to do? |
Do you have I'm using version 3.2.0 of the extension:
|
@man-chi We save this setting in the workspace state but as far as I know there's no easy way to reset this state. You will need to delete files from your disk:
Depending on how VS Code was launched you could have a Single Folder Workspace or a Multi-Folder Workspace that is global or local. Globally, the data lives here:
If you reset the workspace state and open The setting |
I think I will do the following to make it easier to activate/deactivate Antora.
That way you can control if you want a prompt when the extension detects an @man-chi What do you think? |
yes, it sounds awesome. thanks for making such improvement. I love antora. |
problem: many users of asciidoctor would like to use antora as HTML site generation. however, the default image directory structure will be /docs/ROOT/module/images while the *.adoc are stored in /docs/ROOT/module/pages.
due to the vscode webpreview permission setting, web preview is unable to display any image::diagram.jpg[my diagram]
proposed solution:
as a workaround before Antora is fully supported, I managed to preview images in vscode-asciidoctor web preview by doing the following setting in vscode web preview:
• vscode-asciidoc extension > settings > asciidoc >preview : asciidoctor attributes
• Edit in settings.json "asciidoc.preview.asciidoctorAttributes": { "imagesdir":"../images/" }
I want to suggest presetting the settings.json "asciidoc.preview.asciidoctorAttributes": { "imagesdir":"../images/" }
when the Antora checkbox is enabled in the extension setting
The text was updated successfully, but these errors were encountered: