Code Monkey home page Code Monkey logo

present's Introduction

Quick Setup

wget https://raw.githubusercontent.com/anantshri/present/master/present -O $HOME/bin/present
chmod 755 ~/bin/present
~/bin/present init

For MacOSX folks if they don't have wget try following

curl "https://raw.githubusercontent.com/anantshri/present/master/present" -o $HOME/bin/present
chmod 755 ~/bin/present
~/bin/present init

Automated Reveal.js

reveal.js + external markdown mixed with some bash awesomeness to automated routine presentation tasks

Requirements

  1. a copy of reveal.js git repository from https://github.com/hakimel/reveal.js/ (Location to be marked as BASE) (it is assumed that $BASE/reveal.js will contain git clone of reveal.js)
  2. Chrome / Chromium browser as its --app feature is extensively used.
  3. a centeral directory to keep reusable resources such as images marked in RESOURCES (optional to keep images there)
  4. a index.html to be placed as template in $BASE which will contain a #markdownfilename# which will be replaced with acutal markdown filename at setup time.
  5. python 2.7 is what is used to test this. if you are using python 3 then you need to modify python simplehttpserver command (2 places in whole script)

Setup

wget https://raw.githubusercontent.com/anantshri/present/master/present -O $HOME/bin/present
chmod 755 ~/bin/present
~/bin/present init

For MacOSX folks or people who don't have wget try following

curl "https://raw.githubusercontent.com/anantshri/present/master/present" -o $HOME/bin/present
chmod 755 ~/bin/present
~/bin/present init

Usage

  1. perform steps from SETUP section

  2. create a directory at any location on system

  3. create your markdown file. (slides are horizontally seperated by --- and vertical seperation is by -- )

  4. Once markdown file is created run following command

  5. present setup markdown.md (if presentation.md then this command is not needed) This step will do all the necesaary linking and place a index.html

  6. present This step will launch browser with proper parameters which you can just maximize. The usual slide notes and stuff all works by default as per the template.

  7. present print This step will launch browser with proper parameters to provide printing. All you need to do is ctrl + P and save as PDF.

  8. present require This step will take a list of required markdown resources and will create a single presentation out of all those listed entries.

  9. present clean This step will clean all the stuff that present setup performed.

Disclaimer

I have taken care as to not harm the computer by this code but if something happens i am not to be held responsible.

present's People

Contributors

anantshri avatar semgrep-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

present's Issues

Feature Request : header and footers

custom header and footer to be placed at fixed position.

this ideally will have to be of specific size and that too we would need to modify the height and width to accomodate the sections.

New release : 3.9.2

3.9.2

https://github.com/hakimel/reveal.js/releases/tag/3.9.2

Fixes a security vulnerability in the postMessage API. The follow methods are now blacklisted and can not be called via the postMessage API: registerPlugin, registerKeyboardShortcut, addKeyBinding, addEventListener.



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
January 31, 2020 at 03:44PM

powerpoint_css multiple copy

Ensure that only one copy of powerpoint_css set gets pasted to style.css
look for a specific tag if exist don't copy file again.

New release : 4.0.2

4.0.2

https://github.com/hakimel/reveal.js/releases/tag/4.0.2

Changes

  • Enables caching for JavaScript builds, making subsequent builds ~50% faster.
  • In auto-sliding presentations, the data-autoslide attribute now takes precedence over automatic detection of <video> durations.
  • Remove overzealous reset styles when printing to PDF.
  • Reveal.configure and Reveal.isReady are now available in the pre-initialized reveal.js API, to match v3.x behavior.
  • Switches to serving demo presentation assets from a CDN.

Bug fixes

  • Fixes polyfills and adds IE 11 support.
  • Fixes the progress bar direction in right-to-left mode.


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
May 29, 2020 at 03:57PM

New release : 5.0.2

5.0.2

https://github.com/hakimel/reveal.js/releases/tag/5.0.2

Changes

  • Upgrade dependencies (@Mister-Hope in #3505)
  • Make Markdown plugin callable without a reveal deck instance (@hakimel in #3517)
  • Fix exception in speaker view (@hakimel #2512)
  • Fix issue where a future vertical slide background sometimes flashed into view prematurely (@hakimel in #3520)

Full Changelog: 5.0.0...5.0.2



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
November 09, 2023 at 01:43PM

feature request : add backup option

add present backup / archive option.

this option should perform a backup via local copy of markdown's and index page plus other requirements in one single zip file.

New release : 5.1.0

5.1.0

https://github.com/hakimel/reveal.js/releases/tag/5.1.0

Changes

  • Add the enter-fullscreen class to any element in your presentation to turn it into fullscreen trigger (@hakimel)
  • Video backgrounds now continue to play seamlessly across multiple slides (@hakimel)
continuous-video-bg-2.mp4
continuous-video-bg-2.mp4

Fixes

  • MathJax3 plugin now works with in non-singleton reveal.js instances (@jokester in #3595)
  • Changing slides via swipe gestures now works when swiping on videos—unless their controls are visible (@hakimel)
  • Fix exception when destroying uninitialized reveal.js instance (@hakimel in #3593)
  • Fix videos restarting each time a fragment is shown (@hakimel in #2882)
  • Fix broken backwards navigation in RTL mode (@hakimel)
  • Fix error when the notes plugin receives a non-string message (@NatKarmios in #3588)
  • Fix question mark shortcut on non-English keyboard layouts (@lechten in #3603)
  • Fix r-stack overflow behavior in Chromium browsers (@alifeee in #3598)

Full Changelog: 5.0.5...5.1.0



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 11, 2024 at 12:33PM

New release : 4.5.0

4.5.0

https://github.com/hakimel/reveal.js/releases/tag/4.5.0

Changes

Fixes

  • Update dependencies and fix all npm audit warnings (@hakimel)
  • Fix issue with special characters in slide background image URLs (@Martinomagnifico #3315)
  • Fix an issue where leading whitespace was sometimes incorrectly stripped from Markdown (@jerrykan #3358)
  • Fix spacing between slides in overview mode when disableLayout: true (@Proliecan #3291)
  • The reveal.js print styles will no longer apply to content outside of reveal.js (@hakimel #3348)
  • Improve selection color contrast for black theme (@hakimel)

Full Changelog: 4.4.0...4.5.0



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 13, 2023 at 05:53PM

application cache usage

Refer cache manifest and modify accordingly.
hakimel/reveal.js#703

Since all our slide are actually running from a single host + port combination i suppose it will be sharable cache we let the index.html be loaded via network and .md files however the whole of reveal.js could be precached.

present update : git fetch and not pull

we only need to get remote copy updated and not push the branch forward.

but we need to handle this version issue at this point version 3.0.0 is hardcoded.

New release : 3.8.0

3.8.0

https://github.com/hakimel/reveal.js/releases/tag/3.8.0

Changes:

  • The cursor is now automatically hidden after five seconds of inactivity. The timeout can be adjusted with hideCursorTime: <milliseconds>, or you can disable the feature entirely with hideInactiveCursor: false.
  • Presentations can be zoomed on touch devices using the standard pinch-to-zoom gestures.
  • New navigationMode: <default/linear/grid> config option. Set to "grid" to navigate across adjacent vertical stacks. Learn more in the docs. (#2307)
  • New hash: <boolean> config option. When set to true, reveal.js will reflect the current slide in the address bar without pushing each slide change to the browser history. (#2286 by @asottile)
  • New preloadIframes config option for flagging if iframes should be preloaded or not. Can be set per-frame using the data-preload attribute. More info. (#2354 by @maxrothman)
  • A resize event is now dispatched anytime the presentation scale changes. (#2300 by @mw75)
  • The "Resume" button in the pause overlay is hidden if controls are set to false. (#2215 by @anderslemke)
  • New keyboard shortcut: CMD/CTRL + left or right arrow to go to first or last slide.
  • Adds Reveal.getRevealElement() for retrieving the presentation's root element (<div class="reveal">).
  • Removes Head JS as it is no longer required to load dependencies.
  • Removes classList polyfill since browser support caught up.
  • Removes the reset styles from reveal.css to make styles easier to override. Reset styles are now included as a separate reset.css file. (6abc6e0 #1952 & #2248)
  • The zoom transition now zooms between all slides, previously it zoomed between horizontal slides and used a slide transition between vertical.
  • Upgrade to Socket.IO 2.2.0.

Plugin Changes:

  • Adds a new API for registering plugins Reveal.registerPlugin( 'myPlugin', MyPluginInstance ). If a registered plugin returns a promise when initialized, reveal.js will wait for that promise to be fulfilled before firing the ready event. Learn more in the docs.
  • Code highlighting: Support for line numbers! Just add data-line-numbers to your code blocks.
  • Code highlighting: Highlight specific lines by providing a comma separated list of line numbers to data-line-numbers. Line ranges, like 5-15, are supported too.
  • Speaker view: No longer requires a web server, it now works when opened directly from the filesystem. (#2104 by @jurca)
  • Markdown: External .md files are now loaded asynchronously.
  • Markdown: Upgrade to marked 0.6.0. (@sestegra)
  • MathJax config options can now be set via the reveal.js math config option. (#2090 by @bnjmnt4n)

Bug fixes:

  • Fixes npm security warnings by updating all dependencies.
  • Fixes an issue that prevented the same internal link from being clicked twice. (#2350 by @rparree)
  • Fixes an issue with data-transition not working on vertical slides. (b6ce0a9 #1947)
  • Fixes an issue that needless caused the slide method—and all of its corresponding performance heavy DOM operations—to be invoked twice for each slide change. (#2263 by @mbotsch)
  • Fixes a layout bug with overlaid speaker notes when reveal.js is smaller than the browser window.
  • Fixes an error that caused Reveal.getProgress() to return a value higher than 1 when there were fragments on the last slide.
  • The speaker view no longer stops working when opened multiple times. (#2251 by @oyron)
  • Prevents presentations from overflowing vertically in some mobile browsers.
  • Elements using .stretch now show up in the overview mode. (@sanand0)

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 01, 2019 at 07:16PM

New release : 4.3.0

4.3.0

https://github.com/hakimel/reveal.js/releases/tag/4.3.0

tldr — self-destruction and bug fixes

Changes

  • It's now possible to destroy/uninitialize a reveal.js presentation. This will remove all event listeners and roll back all changes made to the DOM. It will also unregister all plugins and destroy them if they expose a destroy method. (#1145 / @hakimel)
    Reveal.destroy();
  • You can now provide an absolute URL to the presentation that should be loaded in the speaker view. This is useful if you have a presentation integrated as part of a web page but still want the speaker view to work.
    Reveal.initialize({ url: 'https://example.com/my-reveal-presentation' })
  • Source maps are now included in dist (#3082 / @dabrahams)

Fixes

  • Fix the speaker view no longer goes out of sync with your presentation after live-reloading (#2822 / @hakimel).
  • Fix XSS vulnerability in speaker view (#3137 / @r0hanSH)
  • Fix issues with scaling embedded presentations when entering fullscreen mode in Safari (#3080 / @Martinomagnifico)


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
February 28, 2022 at 02:54PM

New release : 4.3.1

4.3.1

https://github.com/hakimel/reveal.js/releases/tag/4.3.1

What's Changed

  • Fix bug that prevented speaker view from working from file:// protocol (@hakimel #3158)
  • Fix console errors attempting to parse postMessage events from sources other than reveal.js (@hakimel)
  • Fix issue with providing your own config for MathJax3 plugin (@eric-wieser in #3157)
  • Fix ZIP package gulp task (@dennybiasiolli in #3156)
  • Replace deprecated String.prototype.substr() (@CommanderRoot in #3165)

Full Changelog: 4.3.0...4.3.1



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
March 21, 2022 at 03:16PM

Rewrite in Python

Rewriting in python could help us directly leverage bits and bobs of python we are anyways using additionally we can also leverage pip for package installation and maintainance. This is inverse of #14 hence that will be closed now.

New release : 3.8.0

3.8.0

https://github.com/hakimel/reveal.js/releases/tag/3.8.0

Changes:

  • The cursor is now automatically hidden after five seconds of inactivity. The timeout can be adjusted with hideCursorTime: <milliseconds>, or you can disable the feature entirely with hideInactiveCursor: false.
  • Presentations can be zoomed on touch devices using the standard pinch-to-zoom gestures.
  • New navigationMode: <default/linear/grid> config option. Set to "grid" to navigate across adjacent vertical stacks. Learn more in the docs. (#2307)
  • New hash: <boolean> config option. When set to true, reveal.js will reflect the current slide in the address bar without pushing each slide change to the browser history. (#2286 by @asottile)
  • New preloadIframes config option for flagging if iframes should be preloaded or not. Can be set per-frame using the data-preload attribute. More info. (#2354 by @maxrothman)
  • A resize event is now dispatched anytime the presentation scale changes. (#2300 by @mw75)
  • The "Resume" button in the pause overlay is hidden if controls are set to false. (#2215 by @anderslemke)
  • New keyboard shortcut: CMD/CTRL + left or right arrow to go to first or last slide.
  • Adds Reveal.getRevealElement() for retrieving the presentation's root element (<div class="reveal">).
  • Removes Head JS as it is no longer required to load dependencies.
  • Removes classList polyfill since browser support caught up.
  • Removes the reset styles from reveal.css to make styles easier to override. Reset styles are now included as a separate reset.css file. (6abc6e0 #1952 & #2248)
  • The zoom transition now zooms between all slides, previously it zoomed between horizontal slides and used a slide transition between vertical.
  • Upgrade to Socket.IO 2.2.0.

Plugin Changes:

  • Adds a new API for registering plugins Reveal.registerPlugin( 'myPlugin', MyPluginInstance ). If a registered plugin returns a promise when initialized, reveal.js will wait for that promise to be fulfilled before firing the ready event. Learn more in the docs.
  • Code highlighting: Support for line numbers! Just add data-line-numbers to your code blocks.
  • Code highlighting: Highlight specific lines by providing a comma separated list of line numbers to data-line-numbers. Line ranges, like 5-15, are supported too.
  • Speaker view: No longer requires a web server, it now works when opened directly from the filesystem. (#2104 by @jurca)
  • Markdown: External .md files are now loaded asynchronously.
  • Markdown: Upgrade to marked 0.6.0. (@sestegra)
  • MathJax config options can now be set via the reveal.js math config option. (#2090 by @bnjmnt4n)

Bug fixes:

  • Fixes npm security warnings by updating all dependencies.
  • Fixes an issue that prevented the same internal link from being clicked twice. (#2350 by @rparree)
  • Fixes an issue with data-transition not working on vertical slides. (b6ce0a9 #1947)
  • Fixes an issue that needless caused the slide method—and all of its corresponding performance heavy DOM operations—to be invoked twice for each slide change. (#2263 by @mbotsch)
  • Fixes a layout bug with overlaid speaker notes when reveal.js is smaller than the browser window.
  • Fixes an error that caused Reveal.getProgress() to return a value higher than 1 when there were fragments on the last slide.
  • The speaker view no longer stops working when opened multiple times. (#2251 by @oyron)
  • Prevents presentations from overflowing vertically in some mobile browsers.
  • Elements using .stretch now show up in the overview mode. (@sanand0)

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 01, 2019 at 07:16PM

New release : 5.0.3

5.0.3

https://github.com/hakimel/reveal.js/releases/tag/5.0.3

Changes

  • Search plugin now supports searching for diacritics and searches full phrases (@t-fritsch in #3532)
  • Jump-to-slide now adapts to the configured slide number format (@hakimel in #3501)
  • Slide background XSS prevention (@EastSun5566 in #3548)

Fixes

  • Fix speaker notes not appearing in PDF exports (@hakimel in #3535)
  • Fix exception when stepping backwards through code highlights (@hakimel in #3524)
  • Fix exception when navigating decks in mobile browsers (@hakimel in #3539)
  • Fix pause/help overlay position in scroll view (@hakimel in #3542)
  • Fix mobile scroll view navigation when fragments began at a index higher than 1 (@hakimel #3540)

Full Changelog: 5.0.2...5.0.3



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
December 18, 2023 at 02:49PM

New release : 3.5.0

3.5.0

/hakimel/reveal.js/releases/tag/3.5.0

Changes:

  • Add display config option to control the display mode slide section elements. (#1324 by @mojavelinux)
  • Add Reveal.toggleHelp()for toggling the help overlay. (#1816 by @frazer)
  • Slide fragments can now hold their own speaker notes. (#1636 by @traff)
  • The speaker view can now provide pacing advice. This makes it easy to detect if you're running out of time, or going too quickly. (#1564 by @aspiers, more info)
  • Switch to a <textarea data-template></textarea> wrapper for Markdown to avoid HTML parsing issues. (#1780 by @ccqgithub)
  • Background videos now autoplay in iOS. (#1851 by @astone123)
  • Background iframes are now interactive when there is no content in the slide or data-background-interactive is present on the slide element.
  • Shift dependencies to devDependencies (#1764 by @demoneaux)

Bug fixes:

  • Fix multiple issues with autoplaying <video> and <audio>, particularly on slow connections.
  • Fix overview rendering issues in Firefox.
  • MathJax is now loaded from cdnjs since cdn.mathjax.org was shut down. (#1866 by @christianp)

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
May 05, 2017 at 05:52PM

headless mode

a special mode in which chromium should not be a requirement, it should only check if git wget and python is working.

and when we say present it should just start the python server in background / foreground.

this will allow people to keep all markdown stuff in a container.

New release : 4.6.0

4.6.0

https://github.com/hakimel/reveal.js/releases/tag/4.6.0

Changes

Fixes

  • Auto-slide duration falls back on global setting autoSlide instead of using first fragment auto-slide (@hakimel)
  • When a fragment sets data-autoslide, all fragments of the same index will now use the same auto-slide timing (@hakimel)
  • Fix code block auto-animate bug that caused unmatched lines to appear without fading in (@hakimel)
  • Fix livereload when using root CLI param (@t-fritsch #3441)
  • Fix scss watch tasks broken on syntax error (@t-fritsch #3445)
  • Fix typos in variable names (@individual-it #3453)
  • Fix code blocks font when printing pdf (@t-fritsch #3457)
  • Fix dracula's theme list-style on sub-items (@gildasio #3450)
  • Fix dracula li markers (@t-fritsch #3464)

Full Changelog: 4.5.0...4.6.0



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
September 12, 2023 at 01:09PM

Chrome browser application not found on MacOS High Sierra

I have downloaded the current version of present and performed the setup steps as decscribed.
When I run present I get the following error message:
line 66: /Applications/Google: No such file or directory
Google Chrome is installed version 62.0.3202.94

New release : 4.2.1

4.2.1

https://github.com/hakimel/reveal.js/releases/tag/4.2.1

Bug fix release

Fixes

  • Fix an issue where some slides disappeared (fully or partially) after slide transitions in Chrome (@hakimel)
  • Fix an issue that caused double-navigations and impacted presentation performance (@hakimel #3079)
  • Fix --host not working in npm start -- --host=0.0.0.0 (@cashcat in #3075)
  • Fix incorrect sizing of auto-sized text in PDF exports (#2865 (comment) by @hakimel)
  • Fix background video playback issue in some browsers by inferring MIME type from file extension (#3078 by @vanch3d)


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
December 06, 2021 at 05:06PM

New release : 3.9.0

3.9.0

https://github.com/hakimel/reveal.js/releases/tag/3.9.0

Changes:

  • Adds step-by-step code highlights! Step through multiple line highlights on the same code block.
  • Adds postMessage callbacks. Makes it possible to use the postMessage API to invoke reveal.js methods with return values.
  • The pacing timer functionality now accepts a total time for the whole presentation. Timing was previously worked out on a per-slide level. (#2400 by longtime reveal.js contributor @fghaas!)
  • Background iframes no longer preload by default. They load when you arrive at the given slide. This unifies the behavior of in-slide and background iframes. Learn how to turn on preloading.
  • The slide number format specified through slideNumber is now honored in PDF exports. (#2337 by @dougalsutherland)
    (4c557a5)
  • Adds data-fragment=<index> to any slide with fragments in it. This lets you target specific fragment states with CSS like section[data-fragment="2"] { ... }.
  • Adds Reveal.getHorizontalSlides() and Reveal. getVerticalSlides() for getting all horizontal/vertical slides in a deck.
  • Adds Reveal.hasHorizontalSlides() and Reveal. hasVerticalSlides() for checking whether or not a deck contains any horizontal or vertical slides.
  • Adds mobileViewDistance configuration option. Mobile view distance was previously hardcoded at 2. (#2513 by @TuurDutoit)
  • Adds allow="autoplay" to iframes to comply with Chrome's Autoplay Policy Changes (#2437 by @TehDmitry)
  • Switches to CSS transforms to scale decks up on HDPI displays. Previous use of CSS zoom produced sharper results but led to side effects such as iframes not scaling with the deck content.
  • Switches first/last slide keyboard shortcuts from ⌘←/⌘→ to Shift←/Shift→. The old shortcut conflicted with browser back/forward.
  • Updates highlight.js from 9.11.0 to 9.18.0

Bug fixes:

  • Fixes an issue where the navigation down-arrow was blocked by the progress bar (#2410 by @NoriSte).
  • Fixes swipe navigation for decks with navigationMode set to linear (#2416 by @earboxer).
  • Fixes vertical overflow in iPadOS Safari.
  • Fixes inconsistent fragment slide animations by translating by a fixed unit.
  • Fixes failing npm install because of outdated dependencies.
  • Fixes exception when highlighting empty code blocks.

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
January 29, 2020 at 07:24PM

New release : 4.1.2

4.1.2

https://github.com/hakimel/reveal.js/releases/tag/4.1.2

Changes

  • Adds support for data-auto-animate-restart and data-auto-animate-id. These properties give you finer control over which slides that should auto-animate between each other (@coffeenotfound in #2896).
  • Theme properties are now available as CSS variables, making them easy to override. Full list of variables (#2740 + #2968).
    Here's an example you can drop into your presentation's HTML:
<style type="text/css">
:root {
  --r-background-color: indigo;
  --r-main-color: #f5f5f5;
  --r-main-font: monospace;
}
</style>

Fixes

  • Markdown enabled speaker notes (<aside class="notes" data-markdown>) are no longer visible on-slide.


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
June 09, 2021 at 06:00PM

New release : 3.9.0

3.9.0

https://github.com/hakimel/reveal.js/releases/tag/3.9.0

Changes:

  • Adds step-by-step code highlights! Step through multiple line highlights on the same code block.
  • Adds postMessage callbacks. Makes it possible to use the postMessage API to invoke reveal.js methods with return values.
  • The pacing timer functionality now accepts a total time for the whole presentation. Timing was previously worked out on a per-slide level. (#2400 by longtime reveal.js contributor @fghaas!)
  • Background iframes no longer preload by default. They load when you arrive at the given slide. This unifies the behavior of in-slide and background iframes. Learn how to turn on preloading.
  • The slide number format specified through slideNumber is now honored in PDF exports. (#2337 by @dougalsutherland)
    (4c557a5)
  • Adds data-fragment=<index> to any slide with fragments in it. This lets you target specific fragment states with CSS like section[data-fragment="2"] { ... }.
  • Adds Reveal.getHorizontalSlides() and Reveal. getVerticalSlides() for getting all horizontal/vertical slides in a deck.
  • Adds Reveal.hasHorizontalSlides() and Reveal. hasVerticalSlides() for checking whether or not a deck contains any horizontal or vertical slides.
  • Adds mobileViewDistance configuration option. Mobile view distance was previously hardcoded at 2. (#2513 by @TuurDutoit)
  • Adds allow="autoplay" to iframes to comply with Chrome's Autoplay Policy Changes (#2437 by @TehDmitry)
  • Switches to CSS transforms to scale decks up on HDPI displays. Previous use of CSS zoom produced sharper results but led to side effects such as iframes not scaling with the deck content.
  • Switches first/last slide keyboard shortcuts from ⌘←/⌘→ to Shift←/Shift→. The old shortcut conflicted with browser back/forward.
  • Updates highlight.js from 9.11.0 to 9.18.0

Bug fixes:

  • Fixes an issue where the navigation down-arrow was blocked by the progress bar (#2410 by @NoriSte).
  • Fixes swipe navigation for decks with navigationMode set to linear (#2416 by @earboxer).
  • Fixes vertical overflow in iPadOS Safari.
  • Fixes inconsistent fragment slide animations by translating by a fixed unit.
  • Fixes failing npm install because of outdated dependencies.
  • Fixes exception when highlighting empty code blocks.

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
January 29, 2020 at 07:24PM

Path dependancy

present runs only if the markdown file is present in the working directory. If tried to supply the path, error occurs.

For example:

root@root> present Desktop/mark.md
Present : Reveal.js Workflow Automation
Created by: Anant Shrivastava
Un-identified argument
setup : setup reveal.js environment
setup slide_name.md
clean : clear out all files
Thanks for using present service

It would be better if it handles path of a markdown file and creates or clears in a pre-defined custom Temp folder.

New release : 5.0.0

5.0.0

https://github.com/hakimel/reveal.js/releases/tag/5.0.0

Scroll view

reveal.js 5.0 comes with a groundbreaking new feature; scroll view! (#3482)

Slide decks are a great format for giving presentations, but scrollable web pages are easier for viewers to read on their own.

The scroll view gives you the best of both worlds—without any extra effort. Present in the format best suited for presenting, share in the format best suited for consumption.

Here's what it looks in action:

scroll-view.mp4
scroll-view.mp4

Explore the above demo yourself at https://slides.com/news/scroll-mode/scroll

How to use it

The scroll view is enabled by initializing reveal.js with view: "scroll" or by appending ?view=scroll to a deck URL.

Reveal.initialize({ view: 'scroll' });

It's possible to fine tune this view through multiple new config options. Full documentation available at https://revealjs.com/scroll-view.

Breaking change

The scroll view is automatically enabled for viewports below 435px wide. This is done because I believe the scroll view to be a superior way to browse any deck on a mobile device. If you want to revert this behavior and always paginate between slides, see scrollActivationWidth:

Reveal.initialize({ scrollActivationWidth: null })

Changes

  • The PDF print view can now be activated via config Reveal.initialize({ view: 'print' }) (@hakimel in #3482)
  • The new URL query for activating the print view is ?view=print. It used to be ?print-pdf, which is still supported for backwards compatibility. (@hakimel in #3482)

Fixes

  • Notes from data-notes were not working on the slide-level (@skyboyer in #3477)
  • Add 'wheel' event listener, remove deprecated mousewheel & 'DOMMouseScroll` (@quochuy in #3489)

Full Changelog: 4.6.0...5.0.0



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
October 27, 2023 at 07:30PM

New release : 4.2.0

4.2.0

https://github.com/hakimel/reveal.js/releases/tag/4.2.0

Changes

  • The math plugin now supports three typesetting libraries: KaTeX, MathJax 2 and MathJax 3. We continue to use MathJax 2 as our default so this is fully backwards compatible. Learn how to choose between typesetters and how to configure them in the docs at https://revealjs.com/math#typesetting-libraries (@burgerga in #2559).
  • New event: beforeslidechange (#3003). This makes it possible to conditionally prevent navigations:
    // This prevents all slide changes
    Reveal.addEventListener( 'beforeslidechange', e => e.preventDefault() );
  • New keyboard shortcut for skipping fragments while navigating: alt + ←/↑/→/↓.
  • New API option for skipping fragments in directional navigation Reveal.right({ skipFragments: true }).
  • Adds a beforeHighlight callback to the highlight plugin (@rajgoel in #3026).
    Reveal.initialize({ 
      highlight: {
        beforeHighlight: (hljs) => {
          // interact with highlight.js, for example to register a new language
        }
      } 
    })
  • Code line numbers can now start from an offset (#3050). For example, this code block would begin its line numbering from 10: <code data-ln-start-from="10">.
  • Better error messaging when the .reveal or .slides containers are missing #2217.

Fixes

  • The last slide keyboard shortcut now works for looped presentations (#3007).
  • Markdown code blocks can be turned into fragments (@nicojs in #2982).
  • Unit tests can now run in Windows (@Vandivier in #3027).
  • Restored support for base64 background images, broken since 4.1.1 (#2978).
  • Fixes an issue that prevented presentations from looping when navigationMode was set to linear.
  • Internal links leading to a slide with video/audio element will now correctly start media playback. This issue only affected mobile browsers.


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
November 12, 2021 at 04:42PM

New release : 4.1.1

4.1.1

https://github.com/hakimel/reveal.js/releases/tag/4.1.1

Mostly enhancements and bug fixes

Changes

  • Adds support for Node.js 16.
  • data-background-image now accepts multiple images (#2940).
  • New Markdown config option animateLists — automatically turns all lists into stepped fragments (#2956).
  • Reduce the tab size in code blocks from 8 to 2.
  • More accurate calculation of which slide to jump to when clicking on the progress bar (#2836).
  • Optimize DOM interactions and reduce forced layouts when exporting to PDF (#2843).

Fixes

  • Video/audio inside of a fragment now stop playing when the fragment is hidden.
  • Markdown is now split into individual slides by the default separator (---) as advertised.
  • The r-fit-text layout helper now sizes text correctly in PDF exports.
  • Fixes an issue where some slide-specific transitions were incorrectly overridden by the global transition setting.
  • The has-dark-background helper class now works when using named colors for data-background-color (#2933).


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
May 20, 2021 at 10:43PM

Feature Request : unify

create a single html file with all markdown inside it and style.css and script.js integrated in single html file for hosting the content on website.

New release : 3.8.0

3.8.0

https://github.com/hakimel/reveal.js/releases/tag/3.8.0

Changes:

  • The cursor is now automatically hidden after five seconds of inactivity. The timeout can be adjusted with hideCursorTime: <milliseconds>, or you can disable the feature entirely with hideInactiveCursor: false.
  • Presentations can be zoomed on touch devices using the standard pinch-to-zoom gestures.
  • New navigationMode: <default/linear/grid> config option. Set to "grid" to navigate across adjacent vertical stacks. Learn more in the docs. (#2307)
  • New hash: <boolean> config option. When set to true, reveal.js will reflect the current slide in the address bar without pushing each slide change to the browser history. (#2286 by @asottile)
  • New preloadIframes config option for flagging if iframes should be preloaded or not. Can be set per-frame using the data-preload attribute. More info. (#2354 by @maxrothman)
  • A resize event is now dispatched anytime the presentation scale changes. (#2300 by @mw75)
  • The "Resume" button in the pause overlay is hidden if controls are set to false. (#2215 by @anderslemke)
  • New keyboard shortcut: CMD/CTRL + left or right arrow to go to first or last slide.
  • Adds Reveal.getRevealElement() for retrieving the presentation's root element (<div class="reveal">).
  • Removes Head JS as it is no longer required to load dependencies.
  • Removes classList polyfill since browser support caught up.
  • Removes the reset styles from reveal.css to make styles easier to override. Reset styles are now included as a separate reset.css file. (6abc6e0 #1952 & #2248)
  • The zoom transition now zooms between all slides, previously it zoomed between horizontal slides and used a slide transition between vertical.
  • Upgrade to Socket.IO 2.2.0.

Plugin Changes:

  • Adds a new API for registering plugins Reveal.registerPlugin( 'myPlugin', MyPluginInstance ). If a registered plugin returns a promise when initialized, reveal.js will wait for that promise to be fulfilled before firing the ready event. Learn more in the docs.
  • Code highlighting: Support for line numbers! Just add data-line-numbers to your code blocks.
  • Code highlighting: Highlight specific lines by providing a comma separated list of line numbers to data-line-numbers. Line ranges, like 5-15, are supported too.
  • Speaker view: No longer requires a web server, it now works when opened directly from the filesystem. (#2104 by @jurca)
  • Markdown: External .md files are now loaded asynchronously.
  • Markdown: Upgrade to marked 0.6.0. (@sestegra)
  • MathJax config options can now be set via the reveal.js math config option. (#2090 by @bnjmnt4n)

Bug fixes:

  • Fixes npm security warnings by updating all dependencies.
  • Fixes an issue that prevented the same internal link from being clicked twice. (#2350 by @rparree)
  • Fixes an issue with data-transition not working on vertical slides. (b6ce0a9 #1947)
  • Fixes an issue that needless caused the slide method—and all of its corresponding performance heavy DOM operations—to be invoked twice for each slide change. (#2263 by @mbotsch)
  • Fixes a layout bug with overlaid speaker notes when reveal.js is smaller than the browser window.
  • Fixes an error that caused Reveal.getProgress() to return a value higher than 1 when there were fragments on the last slide.
  • The speaker view no longer stops working when opened multiple times. (#2251 by @oyron)
  • Prevents presentations from overflowing vertically in some mobile browsers.
  • Elements using .stretch now show up in the overview mode. (@sanand0)

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 01, 2019 at 07:16PM

New release : 4.1.0

4.1.0

https://github.com/hakimel/reveal.js/releases/tag/4.1.0

Changes

  • New: Add data-visibility="hidden" to a slide to hide it from view. Docs & examples
  • New: Add the r-fit-text class to make a text node grow to be as large as possible without overflowing the slide. Docs & examples
  • The configured slide width/height is now exposed as CSS variables (--slide-width/--slide-height).
  • The shuffle config option now shuffles vertical slides as well.
  • All themes now invert the text color based on the current slide background color.
  • Include /css and /js in npm package.

Fixes

  • Don't append #/ to the URL on first slide.
  • Don't fill the progress bar when there's only one slide in a deck
  • Correct slide count when using data-visibility="uncounted" (#2675)


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
October 12, 2020 at 03:21PM

New release : 4.4.0

4.4.0

https://github.com/hakimel/reveal.js/releases/tag/4.4.0

Changes

  • Gradient slide backgrounds, read the docs (@gcmznt in #2510)
  • If multiple separate notes are provided for the same slide they will now all show in the speaker view (@lechten in #3010)
  • Updated browser targets from > 0.5%, IE 11, not dead to > 2%, not dead
  • Stop using zoom for presentation scaling. Zoom produced sharper upsizing than CSS transforms but it's a non-standard CSS property with a few too many quirks. e281b32

Fixes

  • Fix issue where speaker view wasn't syncing (@hakimel #3285)
  • Fix incorrect slide numbers when exporting vertical slides to PDF (@chivongv in 3182)
  • Fix inconsistent fragment visibility in looped presentations (@hakimel in #3123)
  • Fix bug where r-fit-text caused text to truncate in PDF exports (@hakimel in #3120)
  • Fix bug where auto-animate could interfere with inherited line-height (@hakimel)

Full Changelog: 4.3.1...4.4.0



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
October 17, 2022 at 01:17PM

New release : 4.0.0

4.0.0

https://github.com/hakimel/reveal.js/releases/tag/4.0.0

Breaking Changes

This release includes a small number of breaking changes. Please read the Upgrade Instructions if you want to migrate an existing presentation.

Highlights

  • New website, docs and logo! https://revealjs.com/
  • Auto-Animate lets you create complex animations by automatically transitioning between matched elements across slides. Duration, delay and easing can be set on a per-slide or per-element basis.
  • We now support multiple presentations on the same page.
    • This also introduces a new embedded config option, which allows presentations to reside within a portion of a page. Previously reveal.js always covered 100% of the page width and height.
    • The new keyboardCondition: 'focused' config option lets presentations capture keyboard events only when they're focused by the viewer.
  • The reveal.js core and built-in plugins have been rewritten as ES modules. This makes the project easier to maintain and makes reveal.js itself easier to include in a bundle. Two bundles are provided:
    • dist/reveal.js uses UMD and has broad cross browser support (ES5).
    • dist/reveal.esm.js is an ES module. More info
  • Code highlights are now automatically scrolled into view and it looks soooo good. You've got to try it out.

Changes

  • The Reveal.initialize method now returns a promise that resolves once reveal.js is ready and all plugins have finished initializing.
  • Switches build systems from to gulp, using rollup for bundling.
  • Moves all compiled CSS (reveal.css, reset.css and themes) from css/ to dist/. See Upgrade Instructions.
  • Moves all print CSS into reveal.js. The old script-based print styles can be removed. by @quilicicf
  • Adds a new slidetransitionend event.
  • Adds a new r-stack layout helper for placing elements on top of each other.
  • Adds support for data-visibility="uncounted" to exclude slides from the progress bar and slide number count. #2543 by @lassepe
  • Adds Reveal.getComputedSlideSize API method.
  • Renames the Reveal.addEventListener and Reveal.removeEventListener API methods to Reveal.on and Reveal.off. Old names are aliased for backwards compatibility.
  • Removes the default border style from <img>s. Can be added with the r-frame class.
  • Removes bower.json.

Plugins

  • New syntax for registering plugins.
  • All built-in plugins—such as markdown and highlight—are now available as ES modules. More info
  • Notes: No longer depends on resolving an external notes.html file to work. Everything is baked into the plugin JS.
  • Highlight: Upgraded to highlight.js 10.0.1.
  • Highlight: Moved highlight themes from lib/css/monokai.css to plugin/highlight/monokai.css.
  • Highlight: 'highlight.js' library is now installed from npm instead of being saved in the repo.
  • Markdown: Support for line numbers and highlights in syntax highlighted code.
  • Markdown: Support for boolean data- attributes. by @Bagira80
  • Markdown: 'marked' library is now installed from npm instead of being saved in the repo.
  • Multiplex: Moved out to https://github.com/reveal/multiplex
  • Notes Server: Moved out to https://github.com/reveal/notes-server

Bug fixes

  • Fixes a bug that prevented links from working in exported PDFs. #2628 by @telliott22
  • Fixes a bug where navigationMode: 'linear' incorrectly hid valid vertical directions. #2582 by @earboxer
  • Fixes an issue that caused reveal.js to incorrectly block keyboard events when an element with contentedtable=false was focused. #2650


via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
May 20, 2020 at 04:25PM

New release : 5.0.5

5.0.5

https://github.com/hakimel/reveal.js/releases/tag/5.0.5

Changes

Fixes

Full Changelog: 5.0.4...5.0.5



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
February 26, 2024 at 03:54PM

New release : 3.8.0

3.8.0

https://github.com/hakimel/reveal.js/releases/tag/3.8.0

Changes:

  • The cursor is now automatically hidden after five seconds of inactivity. The timeout can be adjusted with hideCursorTime: <milliseconds>, or you can disable the feature entirely with hideInactiveCursor: false.
  • Presentations can be zoomed on touch devices using the standard pinch-to-zoom gestures.
  • New navigationMode: <default/linear/grid> config option. Set to "grid" to navigate across adjacent vertical stacks. Learn more in the docs. (#2307)
  • New hash: <boolean> config option. When set to true, reveal.js will reflect the current slide in the address bar without pushing each slide change to the browser history. (#2286 by @asottile)
  • New preloadIframes config option for flagging if iframes should be preloaded or not. Can be set per-frame using the data-preload attribute. More info. (#2354 by @maxrothman)
  • A resize event is now dispatched anytime the presentation scale changes. (#2300 by @mw75)
  • The "Resume" button in the pause overlay is hidden if controls are set to false. (#2215 by @anderslemke)
  • New keyboard shortcut: CMD/CTRL + left or right arrow to go to first or last slide.
  • Adds Reveal.getRevealElement() for retrieving the presentation's root element (<div class="reveal">).
  • Removes Head JS as it is no longer required to load dependencies.
  • Removes classList polyfill since browser support caught up.
  • Removes the reset styles from reveal.css to make styles easier to override. Reset styles are now included as a separate reset.css file. (6abc6e0 #1952 & #2248)
  • The zoom transition now zooms between all slides, previously it zoomed between horizontal slides and used a slide transition between vertical.
  • Upgrade to Socket.IO 2.2.0.

Plugin Changes:

  • Adds a new API for registering plugins Reveal.registerPlugin( 'myPlugin', MyPluginInstance ). If a registered plugin returns a promise when initialized, reveal.js will wait for that promise to be fulfilled before firing the ready event. Learn more in the docs.
  • Code highlighting: Support for line numbers! Just add data-line-numbers to your code blocks.
  • Code highlighting: Highlight specific lines by providing a comma separated list of line numbers to data-line-numbers. Line ranges, like 5-15, are supported too.
  • Speaker view: No longer requires a web server, it now works when opened directly from the filesystem. (#2104 by @jurca)
  • Markdown: External .md files are now loaded asynchronously.
  • Markdown: Upgrade to marked 0.6.0. (@sestegra)
  • MathJax config options can now be set via the reveal.js math config option. (#2090 by @bnjmnt4n)

Bug fixes:

  • Fixes npm security warnings by updating all dependencies.
  • Fixes an issue that prevented the same internal link from being clicked twice. (#2350 by @rparree)
  • Fixes an issue with data-transition not working on vertical slides. (b6ce0a9 #1947)
  • Fixes an issue that needless caused the slide method—and all of its corresponding performance heavy DOM operations—to be invoked twice for each slide change. (#2263 by @mbotsch)
  • Fixes a layout bug with overlaid speaker notes when reveal.js is smaller than the browser window.
  • Fixes an error that caused Reveal.getProgress() to return a value higher than 1 when there were fragments on the last slide.
  • The speaker view no longer stops working when opened multiple times. (#2251 by @oyron)
  • Prevents presentations from overflowing vertically in some mobile browsers.
  • Elements using .stretch now show up in the overview mode. (@sanand0)

And more...



via Release notes from reveal.js https://github.com/hakimel/reveal.js/releases
April 01, 2019 at 07:16PM

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.