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

Add possibility to export progress bar for RevealJS #331

Merged
merged 1 commit into from
May 28, 2024

Conversation

frodew
Copy link
Contributor

@frodew frodew commented May 28, 2024

This adds the possibility to add the progress bar to revealjs pdf exports as wanted in #330.

// or ...?progress=<true|false>, so we work around that by parsing the page query string
{
fragments: (URI(this.page.url()).query(true)['fragments'] || 'false').toLowerCase() === 'true',
progress: (URI(this.page.url()).query(true)['progress'] || 'false').toLowerCase() === 'true'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we want to replicate the work-around in place for fragments. If it works, it may be simpler / better to define a proper option for the revealjs plugin. Here is an example from the generic plugin:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me - I implemented a version that works for me with decktape reveal --fragments=true --progress=true http://localhost:9999/ test.pdf. Let me know what you think about it.
I force-pushed it to my last commit. I don't know whether this is the right way to "update" pull requests; so if there is a preferred way, let me know :)

Copy link
Owner

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good. I'll do some more testing to make sure removing the fragments URL parameter isn't breaking things too much, but let's merge this PR and I'll iterate if needed.

@astefanutti astefanutti merged commit 83771f9 into astefanutti:master May 28, 2024
0 of 2 checks passed
@astefanutti astefanutti changed the title add possibility to export progress bar with URL option add possibility to export progress bar for RevealJS Jun 22, 2024
@astefanutti astefanutti changed the title add possibility to export progress bar for RevealJS Add possibility to export progress bar for RevealJS Jun 22, 2024
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

Successfully merging this pull request may close these issues.

2 participants