reveal-hugo
reveal-hugo copied to clipboard
Upgrade revealjs to 4.0.2
Hi, first of all, thank you for this awesome project!! I converted all my presentations to reveal-hugo.
I saw #90 and I need your help to improve this PR. I checked and everything seems to work properly but I have probably missed something.
steps taken:
- used the
/dist/
folder of the revealjs repo - removed the print-pdf css reference (automatically included in
reveal.css
) - moved plugins loading before initialization of
Reveal
Let me know everything that can be improved or that you would like to see :-)
@veggiemonk Thanks for putting the PR together! I'll set aside a few minutes later this week to review. Cheers.
Good PR
Hello there, @dzello hope you are doing fine. Did you happen to find some time to merge this PR? I'd love to see this feature implemented.
@ccamara Thanks for the ping. I've struggled to find time to review it but I'd love to merge this in. I know you're very familiar with the project and have contributed a lot before - by chance do you have a minute to test this PR and confirm that everything is working?
@veggiemonk Thanks for being patient, we'll get this handled soon!
@dzello I'll try to do so, sure! (probably on weekend, though).
TLDR: Dear all, I have reviewed this PR and while most of the things work well, I have found some problems with custom themes and code line numbering.
Full version:
Since it is my first PR revision in this repo (or for hugo) and I am not an expert at all neither with hugo nor with reveal (nor javascript in general), let me explain step by step what I have done:
- Created a new hugo site from scratch
- Added reveal-hugo theme as submodule as explained in the readme file
- Created a branch with the changes made in this PR (it has to be noted that since it was made some time ago, it is now one commit below the master branch here).
- Copied
exampleSite
's content to hugo site's root, so I could get some default content. - Generated the site with
hugo-serve
- Reviewed all slides within
exampleSite/content
and compared with the results without appliying this PR - Copied my own slides from my repo and compared with live site
That's what I found so far:
- Slides with custom theming fail to apply all the rules (such as background). This is the case of
custom-theme-example
and my own slides (all of them use a custom scss file). - Code line numbers are not displayed on
content/highlightjs-linenumbers-example/
. Funny enough, line numbers are shown this other slide deck:/hugo-hl-example/#/4
(
To be tested:
- New reveal 4.x features, such as auto-animate (the one I am most interested with so far).
What I cannot assess:
I see this PR makes quite some changes in static/reveal-js
file names, structure and content, which I do not have enough knowledge to assess. At first I thought that would be following the upgrade from 3.x to 4.x instructions on official documentation, but I was wrong, as I haven't been able to find those specific changes and there are even more. Surely @veggiemonk has an explanation for that
Sorry for not being more helpful.
Hi @ccamara
Thank you for testing.
I did not follow the upgrade guide as far as I can remember.
steps taken:
- used the
/dist/
folder of the revealjs repo - removed the print-pdf css reference (automatically included in
reveal.css
) - moved plugins loading before initialization of
Reveal
It was a straightforward delete of the previous version of revealjs and a dump of the production file of the new revealjs. Modified some plugins initialization. Check if my site was working properly. Find the time to make a PR so that other may benefit from it.
I'll look at it this weekend.
Great, @veggiemonk , thank you again for sharing your solution and your time!
Hi @ccamara @dzello
All should now be fixed.
Regarding 1. The asset were missing. They are now added.
Regarding 2.
For the line number, they are explicitly hidden, see exampleSite/layouts/partials/highlightjs-linenumbers-example/reveal-hugo/body.html
Let me know what you think,
Great, @veggiemonk ! Thank you very much! Unfortunately, I am not sure if it is because it's late and I'm sleepy, but after updating repo with your last commit, slides are not working at all. I can't see any content, nor the navigation arrows. In fact, I can't navigate through the slides. I'll check more thoroughly on weekend or end of next week.
Any news? :wave:
Any update?
@dzello Is there something you need from me to merge this ?
@veggiemonk, @dzello - I'm interested to know the latest on this PR. I've been looking around at different options for Markdown Presentation generators. As i'm using Hugo already, I thought that this theme could be a great option :)
It looks like reveal-hugo is using reveal.js v3.9.2, whereas the latest reveal.js is v4.2.1.
Any status on updates/plans would be great! thank you!
FYI - I have made a separate pull request (#115) to take the dependency to 4.2.1
@dzello This can be closed now that #146 is in. Thanks!