-
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
.asciidoctorconfig #380
Comments
I like this idea, however, can I ask how this is different from including a I like it, because it might solve the issue I have with my workflow, which is, I edit with vs-code using asciidoctor-vscode , and publish with Antora, and asciidoc-pdf. The two things that stand out to me though are if it is included like it is shown in the example, as a straight The second bit, I like, is that there can be more than one existing, I guess if It worked more like a So if I think about my workflow, where would the you have an antora project structure such as the following. There is the opportunity to have the file live within the pages directory (feels like it would have the same issues as I currently face with the
Having this added, might at least in vs-code, fix the antora issue for some people ? |
I've been playing with a setup that might share the root cause for this issue. My setup looks like this:
This works just perfectly fine when using asciidoctor / asciidoctor-pdf to render the document, but the preview in VS Code fails to handle it. ifeval::["{docname}" == "main"]
:imagesdir: legal/
endif::[]
ifeval::["{docname}" == "legal"]
:imagesdir: ./
endif::[] When I add |
@bovinemagnet - sorry, I didn't notice your comment until now. The big difference between the For instance, I use it to add a corporate style sheet for my previews in IntelliJ. Another example is the fix for image previews with nested documents where you only define the |
I used ifdef::backend-html5[]
++++
<style>
body {
font-family: "Linux Libertine O", "Helvetica"
}
h1, h2, h3, h4, h5 {
font-family: "Linux Libertine O", "Helvetica"
}
</style>
++++
endif::backend-html5[] this |
@thammegowda interesting that this warning does not pop up without the you can avoid it by adding a
before your title or even in your hope this helps |
part of asciidoctor#380 TODO: - provide test - provide documentation - support other places
part of asciidoctor#380 TODO: - provide test - provide documentation - support other places
part of asciidoctor#380 TODO: - provide test - provide documentation - support other places
part of asciidoctor#380 TODO: - provide test - provide documentation - support other places - support `.asciidoctorconfig.adoc`
part of asciidoctor#380 TODO in this PR: - provide test TODO in other iteration: - support other places - support `.asciidoctorconfig.adoc` - provide cache mechanism
part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
Current state:
|
part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
It allows to better understand the different tested parts part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
It allows to better understand the different tested parts part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
It allows to better understand the different tested parts part of asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
Current state:
TODO:
|
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
Current state:
TODO:
|
fixes asciidoctor#380 Signed-off-by: Aurélien Pupier <[email protected]>
Unless I forgot something, we have reached the same level of support than in IntelliJ. A point to watch is if there is a performance issue. In this case, we could provide a cache mechanism to avoid reading config file every time. Not detected performance issue with my small use case so far. I think that we can open another issue if we observe that. @Mogztter How release of new version is planned? Do you have an idea when this feature will be available in a released version? |
This is a very nice feature and have just used it. Thank you to the contributors. .asciidoctorconfig really helps to set up a repeatable, multi-IDE functional preview for people who are foundation level AsciiDoc users and use it on a casual basis. It also helps lower the bar for project adoption. |
Thanks for your feedback @sturtison ! @apupier I didn't mention it but I've released a new pre-release version. Please give it a try! |
When I work with included subdocuments, I often face the problem that the preview can't find my images.
This is because I set the
:imagesdir:
in the main.adoc
-File and the included document can't give the preview a hint about this.A nice solution can be found here: https://intellij-asciidoc-plugin.ahus1.de/docs/users-guide/features/advanced/asciidoctorconfig-file.html
A file called
.asciidoctorconfig
which will be prepended for the preview. This gives you the chance to tell the preview about the correctimagesdir
and all images will be displayed.The text was updated successfully, but these errors were encountered: