Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Smarter PDF export #29

Open
Open

Description

@pepelsbey

Currently the only entry point for CLI is the index.html. In my case I often have multiple versions of my slides:

andersen.html
codefest.html
fwdays.html
yandex.html

It would be good if CLI could do the following:

  • Look for *.(html|htm) file in the root
  • If there’s only one found, just print PDF with the name of this file: index.pdf, not presentation.pdf like it does right now. You don’t expect presentation name because you don’t use it anywhere.
  • If there are multiple files, list all of them and ask which one to print, just like it does for the themes.

@nikolay-govorov what do you think?

Activity

  1. mrdimidium commented on May 2, 2019

    @mrdimidium

    Hey. Sorry for the long answer.

    Why such a hard workflow? Isn't it easier to count all /*.(htm|html) files of the presentation entry points? Then calling shower pdf will just turn all the entry points into PDF file.

  2. pepelsbey commented on May 2, 2019

    @pepelsbey
    ContributorAuthor

    When I run shower pdf I want to export a single file, not every HTML file available. There might be a demo file or something else. To be able to print exactly what I need, I’d love to see something like:

    $ ls
    $ foo.html bar.html
    $ shower pdf foo.html 
    >> foo.pdf
    $ shower pdf
    > foo.html
    > bar.html ←
    >> bar.pdf
    

    shower pdf behavior would be similar to npm run one, where it lists all available options instead of running all of them.

  3. mrdimidium commented on May 2, 2019

    @mrdimidium

    Sounds good, we'll do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions