GithubHelp home page GithubHelp logo

Comments (3)

ggrossetie avatar ggrossetie commented on June 20, 2024

One way would be to add a scripts in a package.json file.:

image

from asciidoctor-vscode.

bai-yi-bai avatar bai-yi-bai commented on June 20, 2024

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.

bai-yi-bai avatar bai-yi-bai commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.