Skip to content
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

Set output folder in config.js #348

Open
dhicks opened this issue May 10, 2022 · 0 comments
Open

Set output folder in config.js #348

dhicks opened this issue May 10, 2022 · 0 comments

Comments

@dhicks
Copy link

dhicks commented May 10, 2022

I'm learning my way around the configuration files, and having some trouble setting the output folder.

Here's a minimal argdown file test.argdown:

[foo]: foo!
    +> [bar]: barrr

What I'd like to do is generate a PDF and place it at foo/test.pdf. Here's an attempt at an argdown.config.js file to do that:

module.exports = {
    processes: {
        pdf: {
            process: "export-pdf",
            outputPath: "foo"
        }
    }
}

But when I run argdown run pdf test.argdown --cfg argdown.config.js it instead creates foo.pdf in the working directory. I suppose outputPath: "foo/test.pdf" works. But I don't want to hardcode the basename, because eventually I want to use this as an Rmarkdown/Quarto engine that works with programmatically-generated tempfiles.

Edit: It turns out the command line doesn't recognize ad files as argdown files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant