Comments (3)
One way would be to add a scripts
in a package.json
file.:
from asciidoctor-vscode.
Neat, is there a way to pass a file name through to this script?
For example, I have a lot of playbooks in one folder, each one points to a different repo with a different repository. This is where my AsciiDoctor PDF theme lives. I'm not edit currently edit doing anything fancy with symbolic links. I just don't know if there's a better way. Perhaps my antora.yml, antora-playbook.yml, and antora-assembler.yml files could all live in the same place... not sure, but right now I have a dozen different playbooks (and growing) pointing to different, unrelated documents.
from asciidoctor-vscode.
hello, disregard my previous comment. I implemented my theme as a git submodule, so now I add that to all my content repos. This allows me to put the antora-playbook.yml and antora-assembler.yml next to each other.
However, I found that the proposed solution doesn't work 100% of the time. I got it working once, but then it complained that I needed to add the NPM extension... but that one is deprecated.
The solution was to create a tasks.json
{
"name": "Render Antora HTML and AsciiDoctorPDF Output",
"version": "2.0.0",
"label": "Render Command",
"type": "shell",
"command": "npx antora antora-playbook.yml",
}
I recycled this from a .bat file I was trying to write, so I also had "presentation" and "group" keys, but I am not sure they are necessary.
Now pressing control+shift+b runs the command.
Great!
from asciidoctor-vscode.
Related Issues (20)
- Test "Antora support with single documentation component" is flaky HOT 1
- Preview stops working if reference to bibliography entry exists in 3.2.1 HOT 5
- `npm install` reports 9 vulnerabilities on `master` HOT 1
- Quotes have a dark overlay in preview but not in .pdf HOT 4
- `package.json` and `package-lock.json` are not in sync after `prepare branch for development [no ci]` HOT 2
- Add test coverage reporting
- Project README / CHANGELOG is Markdown instead of AsciiDoc
- Asciidoc: Export Document as PDF --> prompts user every time HOT 1
- Preview scroll offset wrong when includes are used HOT 1
- Make error more prominent
- Preview scroll offset wrong when working with tables HOT 1
- Disabling SSL verification HOT 2
- Syntax highlighting broken if a variable is used with bash source
- Preview not rendering checkboxes in checklist
- Ctrl + Alt + V break HOT 1
- [Windows Only][Antora Support] `include::example$something` not working on windows
- Cant use asciidoctor in my own extension as soon as i active asciidoctor-vscode extension HOT 3
- Antora preview doesn't work if version is not specified in antora.yml
- Callout and Syntax Highlighting in code blocks
- Right-click causes incorrect multi-select behavior HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-vscode.