├── theme ├── scss │ ├── _code.scss │ ├── styles.scss │ ├── _content.scss │ ├── _overrides.scss │ ├── _lists.scss │ ├── _vars.scss │ ├── _fonts.scss │ ├── _base.scss │ ├── _typography.scss │ └── _slides.scss ├── partials │ ├── html.hbs │ ├── markdown.hbs │ └── slides.hbs ├── fonts │ ├── Roboto-Regular.eot │ ├── Roboto-Regular.ttf │ ├── FiraSans-Regular.eot │ ├── FiraSans-Regular.ttf │ ├── Roboto-Regular.woff │ ├── FiraSans-Regular.woff │ ├── FiraSans-Regular.woff2 │ ├── FiraSans-SemiBold.eot │ ├── FiraSans-SemiBold.otf │ ├── FiraSans-SemiBold.ttf │ ├── FiraSans-SemiBold.woff │ ├── FiraSans-SemiBold.woff2 │ ├── FiraSans-SemiBoldItalic.eot │ ├── FiraSans-SemiBoldItalic.otf │ ├── FiraSans-SemiBoldItalic.ttf │ ├── FiraSans-SemiBoldItalic.woff │ └── FiraSans-SemiBoldItalic.woff2 └── index.hbs ├── .gitignore ├── preview.png ├── slides ├── basics │ ├── bulleted-lists.md │ ├── ordered-lists.md │ ├── tables.md │ └── 0-title.html ├── presentations │ ├── 20-example-centered.html │ ├── 0-title.html │ ├── 30-example-quote.html │ └── 10-example-data.md ├── 2.md ├── 1.md └── 0-presentation-title.html ├── images ├── example-stil-vdaJJbls3xE-unsplash.jpg └── example-minh-pham-lB9ylP8e9Sg-unsplash.jpg ├── assets ├── vendor │ ├── revealjs │ │ ├── lib │ │ │ ├── font │ │ │ │ ├── league-gothic │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── league-gothic.eot │ │ │ │ │ ├── league-gothic.ttf │ │ │ │ │ ├── league-gothic.woff │ │ │ │ │ └── league-gothic.css │ │ │ │ └── source-sans-pro │ │ │ │ │ ├── source-sans-pro-italic.eot │ │ │ │ │ ├── source-sans-pro-italic.ttf │ │ │ │ │ ├── source-sans-pro-italic.woff │ │ │ │ │ ├── source-sans-pro-regular.eot │ │ │ │ │ ├── source-sans-pro-regular.ttf │ │ │ │ │ ├── source-sans-pro-regular.woff │ │ │ │ │ ├── source-sans-pro-semibold.eot │ │ │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ │ │ ├── source-sans-pro-semibold.woff │ │ │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ │ │ ├── source-sans-pro.css │ │ │ │ │ └── LICENSE │ │ │ ├── js │ │ │ │ ├── html5shiv.js │ │ │ │ └── promise.js │ │ │ └── css │ │ │ │ ├── monokai.css │ │ │ │ └── zenburn.css │ │ ├── plugin │ │ │ ├── multiplex │ │ │ │ ├── client.js │ │ │ │ ├── package.json │ │ │ │ ├── master.js │ │ │ │ └── index.js │ │ │ ├── markdown │ │ │ │ ├── example.md │ │ │ │ └── example.html │ │ │ ├── notes-server │ │ │ │ ├── index.js │ │ │ │ └── client.js │ │ │ ├── print-pdf │ │ │ │ └── print-pdf.js │ │ │ ├── math │ │ │ │ └── math.js │ │ │ ├── notes │ │ │ │ └── notes.js │ │ │ ├── search │ │ │ │ └── search.js │ │ │ └── zoom-js │ │ │ │ └── zoom.js │ │ └── css │ │ │ ├── reset.css │ │ │ ├── print │ │ │ ├── pdf.css │ │ │ └── paper.css │ │ │ └── theme │ │ │ ├── night.css │ │ │ ├── serif.css │ │ │ ├── moon.css │ │ │ ├── solarized.css │ │ │ ├── white.css │ │ │ ├── black.css │ │ │ ├── simple.css │ │ │ ├── sky.css │ │ │ ├── blood.css │ │ │ ├── beige.css │ │ │ └── league.css │ ├── prism-monokai.css │ └── prism.js └── css │ └── styles.css ├── slides.config.js ├── package.json ├── LICENSE ├── gulpfile.js ├── README.md └── index.html /theme/scss/_code.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build/* 3 | node_modules/* 4 | -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/preview.png -------------------------------------------------------------------------------- /theme/partials/html.hbs: -------------------------------------------------------------------------------- 1 | {{! Raw HTML slides. Must include element }} 2 | {{{ loadHTML content }}} -------------------------------------------------------------------------------- /theme/partials/markdown.hbs: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /theme/fonts/Roboto-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/Roboto-Regular.eot -------------------------------------------------------------------------------- /theme/fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /slides/basics/bulleted-lists.md: -------------------------------------------------------------------------------- 1 | # Marvelous List 2 | 3 | - No order here 4 | - Or here 5 | - Or here 6 | - Or here 7 | -------------------------------------------------------------------------------- /theme/fonts/FiraSans-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-Regular.eot -------------------------------------------------------------------------------- /theme/fonts/FiraSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-Regular.ttf -------------------------------------------------------------------------------- /theme/fonts/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/Roboto-Regular.woff -------------------------------------------------------------------------------- /theme/fonts/FiraSans-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-Regular.woff -------------------------------------------------------------------------------- /theme/fonts/FiraSans-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-Regular.woff2 -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBold.eot -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBold.otf -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBold.ttf -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBold.woff -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBold.woff2 -------------------------------------------------------------------------------- /slides/basics/ordered-lists.md: -------------------------------------------------------------------------------- 1 | # Fantastic Ordered List 2 | 3 | 1. One is smaller than... 4 | 1. Two is smaller than... 5 | 1. Three! 6 | -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBoldItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBoldItalic.eot -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBoldItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBoldItalic.otf -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBoldItalic.woff -------------------------------------------------------------------------------- /theme/fonts/FiraSans-SemiBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/theme/fonts/FiraSans-SemiBoldItalic.woff2 -------------------------------------------------------------------------------- /images/example-stil-vdaJJbls3xE-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/images/example-stil-vdaJJbls3xE-unsplash.jpg -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /images/example-minh-pham-lB9ylP8e9Sg-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/images/example-minh-pham-lB9ylP8e9Sg-unsplash.jpg -------------------------------------------------------------------------------- /slides.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | title: 'tidy-revealjs demo', 3 | description: 'A custom theme and build system for reveal.js', 4 | author: 'Julie Ng' 5 | } -------------------------------------------------------------------------------- /slides/basics/tables.md: -------------------------------------------------------------------------------- 1 | # Tabular Tables (Markdown) 2 | 3 | | Iteam | Value | Quantity 4 | |:--|:--|:--| 5 | | Apples | $1 | 7 | 6 | | Lemonade | $2 | 18 | 7 | | Bread | $3 | 2 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /slides/presentations/20-example-centered.html: -------------------------------------------------------------------------------- 1 |
2 |

Conclusion #1

3 |

Example Conclusion

4 |

A longer subheadline

5 |
-------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /theme/partials/slides.hbs: -------------------------------------------------------------------------------- 1 | {{#each slides}} 2 | {{#if this.slides }} 3 |
4 | {{>slides this }} 5 |
6 | {{ else }} 7 | {{> (lookup . 'type') }} 8 | {{/if }} 9 | {{/each}} 10 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/julie-ng/tidy-revealjs/HEAD/assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /slides/basics/0-title.html: -------------------------------------------------------------------------------- 1 |
2 | 1 3 |

Theme: Basic Styles

4 |

Simple slides with just markdown

5 |
-------------------------------------------------------------------------------- /slides/2.md: -------------------------------------------------------------------------------- 1 | # Features and Reveal.js 2 | 3 | - This template includes a beautiful and simple design for lists, headings, etc. 4 | - Complex features may only work with HTML slides 5 | - Supports _all_ reveal.js features, including: 6 | - speaker notes 7 | - fragments, e.g. animations -------------------------------------------------------------------------------- /slides/presentations/0-title.html: -------------------------------------------------------------------------------- 1 |
2 | 2 3 |

Theme: Presentation Layouts

4 |

Examples of more complex layouts and styles

5 |
-------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/js/html5shiv.js: -------------------------------------------------------------------------------- 1 | document.createElement('header'); 2 | document.createElement('nav'); 3 | document.createElement('section'); 4 | document.createElement('article'); 5 | document.createElement('aside'); 6 | document.createElement('footer'); 7 | document.createElement('hgroup'); -------------------------------------------------------------------------------- /slides/1.md: -------------------------------------------------------------------------------- 1 | # Slide Management 2 | 3 | - Add slides by adding files 4 | - No need to traverse `DOM` 5 | 6 | Example directory structure: 7 | 8 | ```text 9 | ./slides 10 | ├── 1.html 11 | ├── 2.md 12 | ├── 3.md 13 | └── base 14 | ├── bulleted-lists.md 15 | ├── ordered-lists.md 16 | ├── tables-as-html.html 17 | └── tables.md 18 | ``` -------------------------------------------------------------------------------- /slides/0-presentation-title.html: -------------------------------------------------------------------------------- 1 |
2 |

tidy-revealjs

3 | 8 | 9 |
-------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('league-gothic.eot'); 4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('league-gothic.woff') format('woff'), 6 | url('league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/multiplex/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var multiplex = Reveal.getConfig().multiplex; 3 | var socketId = multiplex.id; 4 | var socket = io.connect(multiplex.url); 5 | 6 | socket.on(multiplex.id, function(data) { 7 | // ignore data from sockets that aren't ours 8 | if (data.socketId !== socketId) { return; } 9 | if( window.location.host === 'localhost:1947' ) return; 10 | 11 | Reveal.setState(data.state); 12 | }); 13 | }()); 14 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/multiplex/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal-js-multiplex", 3 | "version": "1.0.0", 4 | "description": "reveal.js multiplex server", 5 | "homepage": "http://revealjs.com", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "engines": { 10 | "node": "~4.1.1" 11 | }, 12 | "dependencies": { 13 | "express": "~4.13.3", 14 | "grunt-cli": "~0.1.13", 15 | "mustache": "~2.2.1", 16 | "socket.io": "~1.3.7" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/markdown/example.md: -------------------------------------------------------------------------------- 1 | # Markdown Demo 2 | 3 | 4 | 5 | ## External 1.1 6 | 7 | Content 1.1 8 | 9 | Note: This will only appear in the speaker notes window. 10 | 11 | 12 | ## External 1.2 13 | 14 | Content 1.2 15 | 16 | 17 | 18 | ## External 2 19 | 20 | Content 2.1 21 | 22 | 23 | 24 | ## External 3.1 25 | 26 | Content 3.1 27 | 28 | 29 | ## External 3.2 30 | 31 | Content 3.2 32 | 33 | 34 | ## External 3.3 35 | 36 | ![External Image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png) 37 | -------------------------------------------------------------------------------- /slides/presentations/30-example-quote.html: -------------------------------------------------------------------------------- 1 |
2 |

Example Quote

3 |
4 |

Conway's Law: Organizations which design systems... are constrained to produce designs which are copies of the communication structures of these organizations.

5 | - Melvin Conway, "How Do Committees Invent?” Datamation (April 1968). 6 |
7 | 13 |
14 | -------------------------------------------------------------------------------- /theme/scss/styles.scss: -------------------------------------------------------------------------------- 1 | @import "vars"; 2 | @import "base"; 3 | @import "fonts"; 4 | @import "typography"; 5 | @import "lists"; 6 | @import "slides"; 7 | @import "content"; 8 | @import "overrides"; 9 | 10 | 11 | // Slides with 1/2 list, 1/2 code 12 | 13 | section[data-markdown-parsed="true"] { 14 | h1 + ul { 15 | max-width: 50%; 16 | } 17 | } 18 | 19 | ul + pre { 20 | position: absolute; 21 | right: 0; 22 | top: 7em; 23 | width: 50%; 24 | padding: 0.5em; 25 | tab-size: 4; 26 | 27 | code { 28 | padding: 1em; 29 | } 30 | } 31 | 32 | pre + pre { 33 | margin-top: 1em; 34 | } 35 | -------------------------------------------------------------------------------- /slides/presentations/10-example-data.md: -------------------------------------------------------------------------------- 1 | Presentation Layouts 2 | 3 | # Example: Lists and Code 4 | 5 | - No HTML Layout required 6 | - Simple with markdown 7 | - just a list 8 | - followed by a code block 9 | 10 | ```javascript 11 | const data = { 12 | nodes: [ 13 | { id: 'web', label: 'Web Frontend' }, 14 | { id: 'mobile', label: 'Mobile Device' }, 15 | { id: 'backend', label: 'Monolith Backend' }, 16 | { id: 'db', label: 'Database' } 17 | ], 18 | links: [ 19 | { source: 'web', target: 'backend' }, 20 | { source: 'mobile', target: 'backend' }, 21 | { source: 'backend', target: 'db' } 22 | ] 23 | } 24 | ``` -------------------------------------------------------------------------------- /theme/scss/_content.scss: -------------------------------------------------------------------------------- 1 | // Talk specific styling 2 | 3 | img { 4 | &[src="./images/intro/graph-1-simple.png"] { 5 | margin: 5em auto; 6 | width: 250px; 7 | } 8 | 9 | &[src="./images/intro/graph-2-devices.png"] { 10 | margin: 5em auto; 11 | width: 350px; 12 | } 13 | 14 | &[src="./images/intro/graph-3-bffs.png"] { 15 | // margin: 1em 0; 16 | width: 300px; 17 | } 18 | 19 | &[src="./images/architecture/dependencies.png"] { 20 | margin: -1em auto 0; 21 | width: 500px; 22 | } 23 | 24 | &[src="./images/organizations/open-office.jpg"] { 25 | border: 10px solid white !important; 26 | } 27 | 28 | // &.img-dashboard { 29 | // height: 400px; 30 | // } 31 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tidy-revealjs", 3 | "version": "0.0.0", 4 | "description": "A tidy template for reveal.js", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "gulp build", 8 | "dev": "gulp dev", 9 | "start": "gulp serve" 10 | }, 11 | "author": "Julie Ng ", 12 | "license": "MIT", 13 | "devDependencies": { 14 | "browser-sync": "^2.26.7", 15 | "del": "^4.1.1", 16 | "directory-tree": "^2.2.3", 17 | "gulp": "^4.0.2", 18 | "gulp-hb": "^8.0.0", 19 | "gulp-rename": "^1.4.0", 20 | "gulp-sass": "^4.0.2", 21 | "merge-stream": "^2.0.0", 22 | "node-sass": "^4.12.0", 23 | "reveal.js": "^3.8.0" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /theme/scss/_overrides.scss: -------------------------------------------------------------------------------- 1 | .reveal { 2 | .slides { 3 | text-align: left; 4 | } 5 | 6 | .controls { 7 | color: #fff; 8 | } 9 | 10 | .progress { 11 | color: var(--progress-bar-color); 12 | } 13 | 14 | pre, code { 15 | font-family: var(--code-font); 16 | font-size: 0.85em; 17 | } 18 | 19 | // .hljs { 20 | // background: var(--code-bg-color); 21 | // padding: 1em; 22 | // font-size: 0.8em; 23 | // } 24 | } 25 | 26 | h1 + pre { 27 | margin-top: -3em; 28 | } 29 | 30 | .slides section img { 31 | border: none; 32 | box-shadow: none; 33 | } 34 | 35 | // Prism.js Override 36 | 37 | :not(pre) > code[class*="language-"], 38 | pre[class*="language-"] { 39 | background: var(--code-bg-color); 40 | } 41 | -------------------------------------------------------------------------------- /theme/scss/_lists.scss: -------------------------------------------------------------------------------- 1 | ul { 2 | padding-left: .1em; 3 | } 4 | 5 | ol { 6 | list-style: none; 7 | counter-reset: counter; 8 | 9 | li { 10 | counter-increment: counter; 11 | 12 | &::before { 13 | content: counter(counter) '. '; 14 | display: inline-block; 15 | margin-right: 0.5em; 16 | // color: var(--bullet-color); 17 | font-weight: bold; 18 | } 19 | } 20 | } 21 | 22 | li { 23 | margin: 0.25em 0; 24 | } 25 | 26 | // Nested Lists 27 | 28 | ol ol, 29 | ul ul { 30 | margin-bottom: 1.5em; 31 | padding-left: 1.5em; 32 | } 33 | 34 | 35 | ul { 36 | ul { 37 | li { 38 | &::before { 39 | color: var(--nested-bullet-color); 40 | } 41 | } 42 | } 43 | 44 | li { 45 | list-style-type: none; 46 | 47 | &::before { 48 | display: inline-block; 49 | position: relative; 50 | vertical-align: top; 51 | margin-right: 0.5em; 52 | content: '•'; 53 | font-size: 1.4em; 54 | // line-height: 1em; 55 | color: var(--bullet-color); 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/css/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v4.0 | 20180602 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | main, menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | /* HTML5 display-role reset for older browsers */ 27 | article, aside, details, figcaption, figure, 28 | footer, header, hgroup, main, menu, nav, section { 29 | display: block; 30 | } -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/multiplex/master.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // Don't emit events from inside of notes windows 4 | if ( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var multiplex = Reveal.getConfig().multiplex; 7 | 8 | var socket = io.connect( multiplex.url ); 9 | 10 | function post() { 11 | 12 | var messageData = { 13 | state: Reveal.getState(), 14 | secret: multiplex.secret, 15 | socketId: multiplex.id 16 | }; 17 | 18 | socket.emit( 'multiplex-statechanged', messageData ); 19 | 20 | }; 21 | 22 | // post once the page is loaded, so the client follows also on "open URL". 23 | window.addEventListener( 'load', post ); 24 | 25 | // Monitor events that trigger a change in state 26 | Reveal.addEventListener( 'slidechanged', post ); 27 | Reveal.addEventListener( 'fragmentshown', post ); 28 | Reveal.addEventListener( 'fragmenthidden', post ); 29 | Reveal.addEventListener( 'overviewhidden', post ); 30 | Reveal.addEventListener( 'overviewshown', post ); 31 | Reveal.addEventListener( 'paused', post ); 32 | Reveal.addEventListener( 'resumed', post ); 33 | 34 | }()); 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Julie Ng 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /theme/scss/_vars.scss: -------------------------------------------------------------------------------- 1 | 2 | :root { 3 | // Colors 4 | --background-color: #101f27; 5 | --text-color: #eee; 6 | --light-text-color: #999; 7 | --primary-color: #50c3c9; 8 | --secondary-color: #f75323; //#ca2d00; // rgb(247,83,35); 9 | --link-color: var(--primary-color); 10 | --link-hover-color: var(--primary-color); 11 | --border-color: #eee; 12 | --bullet-color: var(--secondary-color); 13 | --nested-bullet-color: var(--primary-color); 14 | --heading-block-color: var(--primary-color); 15 | --faded-heading-color: #48555a; 16 | --code-bg-color: #0a161b; 17 | --yellow: #fcd534; 18 | 19 | // Layout 20 | --progress-bar-color: var(--heading-block-color); 21 | 22 | // Fonts 23 | --body-font: 'Roboto', -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 24 | --heading-font: 'Fira Sans Semibold', -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 25 | --code-font: Monaco, Consolas, Monaco, 'Andale Mono', monospace; 26 | 27 | 28 | --base-font-size: 24px; 29 | --sm-font-size: 0.9em; 30 | --xs-font-size: 0.7em; 31 | --quote-font-size: 2rem; 32 | } 33 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/css/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #272822; 10 | color: #ddd; 11 | } 12 | 13 | .hljs-tag, 14 | .hljs-keyword, 15 | .hljs-selector-tag, 16 | .hljs-literal, 17 | .hljs-strong, 18 | .hljs-name { 19 | color: #f92672; 20 | } 21 | 22 | .hljs-code { 23 | color: #66d9ef; 24 | } 25 | 26 | .hljs-class .hljs-title { 27 | color: white; 28 | } 29 | 30 | .hljs-attribute, 31 | .hljs-symbol, 32 | .hljs-regexp, 33 | .hljs-link { 34 | color: #bf79db; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-bullet, 39 | .hljs-subst, 40 | .hljs-title, 41 | .hljs-section, 42 | .hljs-emphasis, 43 | .hljs-type, 44 | .hljs-built_in, 45 | .hljs-builtin-name, 46 | .hljs-selector-attr, 47 | .hljs-selector-pseudo, 48 | .hljs-addition, 49 | .hljs-variable, 50 | .hljs-template-tag, 51 | .hljs-template-variable { 52 | color: #a6e22e; 53 | } 54 | 55 | .hljs-comment, 56 | .hljs-quote, 57 | .hljs-deletion, 58 | .hljs-meta { 59 | color: #75715e; 60 | } 61 | 62 | .hljs-keyword, 63 | .hljs-selector-tag, 64 | .hljs-literal, 65 | .hljs-doctag, 66 | .hljs-title, 67 | .hljs-section, 68 | .hljs-type, 69 | .hljs-selector-id { 70 | font-weight: bold; 71 | } 72 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/css/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } 81 | -------------------------------------------------------------------------------- /theme/scss/_fonts.scss: -------------------------------------------------------------------------------- 1 | @font-face{ 2 | font-family: 'Fira Sans'; 3 | src: url('./../../theme/fonts/FiraSans-Regular.eot'); 4 | src: url('./../../theme/fonts/FiraSans-Regular.eot') format('embedded-opentype'), 5 | url('./../../theme/fonts/FiraSans-Regular.woff2') format('woff2'), 6 | url('./../../theme/fonts/FiraSans-Regular.woff') format('woff'), 7 | url('./../../theme/fonts/FiraSans-Regular.ttf') format('truetype'); 8 | font-weight: 400; 9 | font-style: normal; 10 | } 11 | 12 | 13 | @font-face{ 14 | font-family: 'Fira Sans Semibold'; 15 | src: url('./../../theme/fonts/FiraSans-SemiBold.eot'); 16 | src: url('./../../theme/fonts/FiraSans-SemiBold.eot') format('embedded-opentype'), 17 | url('./../../theme/fonts/FiraSans-SemiBold.woff2') format('woff2'), 18 | url('./../../theme/fonts/FiraSans-SemiBold.woff') format('woff'), 19 | url('./../../theme/fonts/FiraSans-SemiBold.ttf') format('truetype'); 20 | font-weight: 400; 21 | font-style: normal; 22 | } 23 | 24 | @font-face{ 25 | font-family: 'Roboto'; 26 | src: url('./../../theme/fonts/Roboto-Regular.eot'); 27 | src: url('./../../theme/fonts/Roboto-Regular.eot') format('embedded-opentype'), 28 | url('./../../theme/fonts/Roboto-Regular.woff') format('woff'), 29 | url('./../../theme/fonts/Roboto-Regular.ttf') format('truetype'); 30 | font-weight: 400; 31 | font-style: normal; 32 | } -------------------------------------------------------------------------------- /theme/scss/_base.scss: -------------------------------------------------------------------------------- 1 | body { 2 | background: var(--background-color); 3 | color: var(--text-color); 4 | } 5 | 6 | a { 7 | &:link, &:visited { 8 | color: var(--link-color) 9 | } 10 | &:active, &:hover { 11 | color: var(--link-hover-color) 12 | } 13 | } 14 | 15 | .center { 16 | text-align: center; 17 | margin-left: auto; 18 | margin-right: auto; 19 | } 20 | 21 | cite.center { 22 | display: block; 23 | } 24 | 25 | // Images 26 | // ------ 27 | 28 | 29 | img { 30 | max-width: 95%; 31 | } 32 | 33 | .img-center { 34 | display: block; 35 | margin: 3em auto; 36 | max-height: 450px; 37 | 38 | &.img-with-src { 39 | margin-bottom: 0; 40 | & + p { 41 | cite { 42 | display: block; 43 | text-align: center; 44 | } 45 | } 46 | } 47 | } 48 | 49 | .img-full { 50 | display: block; 51 | margin: -1em auto; 52 | max-width: 95%; 53 | min-height: 480px; 54 | max-height: 650px; 55 | } 56 | 57 | .img-right { 58 | float: right; 59 | margin-left: 2em; 60 | max-width: 50%; 61 | } 62 | 63 | 64 | // Tables 65 | // ------ 66 | 67 | table { 68 | margin: 1em 0; 69 | border-spacing: 0; 70 | 71 | th, td { 72 | padding: 0.5em 1em; 73 | border-bottom: 1px solid #ccc; 74 | 75 | &:first-child { 76 | padding-left: 0; 77 | } 78 | 79 | &:last-child { 80 | padding-right: 0; 81 | } 82 | } 83 | 84 | th { 85 | border-bottom-width: 4px; 86 | font-family: var(--heading-font); 87 | // color: var(--secondary-color); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /theme/scss/_typography.scss: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: var(--body-font); 3 | font-size: var(--base-font-size); 4 | font-weight: 400; 5 | line-height: 1.2em; 6 | } 7 | 8 | p, li { 9 | line-height: 1.4em; 10 | } 11 | 12 | p { 13 | margin: 1em 0; 14 | } 15 | 16 | td, li, blockquote { 17 | strong { 18 | color: var(--primary-color); 19 | em { 20 | color: var(--secondary-color); 21 | } 22 | } 23 | } 24 | 25 | // Headings 26 | // -------- 27 | 28 | h1 { 29 | font-family: var(--heading-font); 30 | font-weight: 400; 31 | font-size: 3.5rem; 32 | line-height: 1em; 33 | margin-bottom: 1.2em; 34 | } 35 | 36 | .section-title { 37 | h1 { 38 | max-width: 50%; 39 | margin: 4em 0 1em; 40 | font-size: 4rem; 41 | line-height: 1.15em; 42 | } 43 | 44 | h2 { 45 | color: var(--faded-heading-color); 46 | } 47 | } 48 | 49 | 50 | // Quotes 51 | // ------ 52 | 53 | cite { 54 | font-size: var(--xs-font-size); 55 | color: var(--light-text-color); 56 | 57 | a:link, a:visited { 58 | color: var(--light-text-color); 59 | } 60 | } 61 | 62 | table + cite { 63 | margin-top: -2em; 64 | } 65 | 66 | .blockquote { 67 | margin-left: 3em; 68 | margin-right: 3em; 69 | max-width: 60em; 70 | padding: 0.5em 1.5em; 71 | font-size: var(--quote-font-size); 72 | line-height: 1.3em; 73 | // border: 1px solid var(--faded-heading-color); 74 | border-left: 10px solid var(--primary-color); 75 | // background-color: #0f2833; 76 | background: #eee; 77 | color: #555; 78 | } 79 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('source-sans-pro-regular.eot'); 4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('source-sans-pro-regular.woff') format('woff'), 6 | url('source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('source-sans-pro-italic.eot'); 14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('source-sans-pro-italic.woff') format('woff'), 16 | url('source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('source-sans-pro-semibold.eot'); 24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('source-sans-pro-semibold.woff') format('woff'), 26 | url('source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('source-sans-pro-semibolditalic.eot'); 34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/multiplex/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var crypto = require('crypto'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port: process.env.PORT || 1948, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | socket.on('multiplex-statechanged', function(data) { 20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return; 21 | if (createHash(data.secret) === data.socketId) { 22 | data.secret = null; 23 | socket.broadcast.emit(data.socketId, data); 24 | }; 25 | }); 26 | }); 27 | 28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { 29 | app.use('/' + dir, staticDir(opts.baseDir + dir)); 30 | }); 31 | 32 | app.get("/", function(req, res) { 33 | res.writeHead(200, {'Content-Type': 'text/html'}); 34 | 35 | var stream = fs.createReadStream(opts.baseDir + '/index.html'); 36 | stream.on('error', function( error ) { 37 | res.write('

reveal.js multiplex server.

Generate token'); 38 | res.end(); 39 | }); 40 | stream.on('readable', function() { 41 | stream.pipe(res); 42 | }); 43 | }); 44 | 45 | app.get("/token", function(req,res) { 46 | var ts = new Date().getTime(); 47 | var rand = Math.floor(Math.random()*9999999); 48 | var secret = ts.toString() + rand.toString(); 49 | res.send({secret: secret, socketId: createHash(secret)}); 50 | }); 51 | 52 | var createHash = function(secret) { 53 | var cipher = crypto.createCipher('blowfish', secret); 54 | return(cipher.final('hex')); 55 | }; 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset ); -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/notes-server/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var Mustache = require('mustache'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port : 1947, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | 20 | socket.on( 'new-subscriber', function( data ) { 21 | socket.broadcast.emit( 'new-subscriber', data ); 22 | }); 23 | 24 | socket.on( 'statechanged', function( data ) { 25 | delete data.state.overview; 26 | socket.broadcast.emit( 'statechanged', data ); 27 | }); 28 | 29 | socket.on( 'statechanged-speaker', function( data ) { 30 | delete data.state.overview; 31 | socket.broadcast.emit( 'statechanged-speaker', data ); 32 | }); 33 | 34 | }); 35 | 36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) { 37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) ); 38 | }); 39 | 40 | app.get('/', function( req, res ) { 41 | 42 | res.writeHead( 200, { 'Content-Type': 'text/html' } ); 43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res ); 44 | 45 | }); 46 | 47 | app.get( '/notes/:socketId', function( req, res ) { 48 | 49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) { 50 | res.send( Mustache.to_html( data.toString(), { 51 | socketId : req.params.socketId 52 | })); 53 | }); 54 | 55 | }); 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' ); 65 | 66 | console.log( brown + 'reveal.js - Speaker Notes' + reset ); 67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset ); 68 | console.log( '2. Click on the link in your JS console to go to the notes page' ); 69 | console.log( '3. Advance through your slides and your notes will advance automatically' ); 70 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/notes-server/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // don't emit events from inside the previews themselves 4 | if( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var socket = io.connect( window.location.origin ), 7 | socketId = Math.random().toString().slice( 2 ); 8 | 9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId ); 10 | 11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId ); 12 | 13 | /** 14 | * Posts the current slide data to the notes window 15 | */ 16 | function post() { 17 | 18 | var slideElement = Reveal.getCurrentSlide(), 19 | notesElement = slideElement.querySelector( 'aside.notes' ); 20 | 21 | var messageData = { 22 | notes: '', 23 | markdown: false, 24 | socketId: socketId, 25 | state: Reveal.getState() 26 | }; 27 | 28 | // Look for notes defined in a slide attribute 29 | if( slideElement.hasAttribute( 'data-notes' ) ) { 30 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 31 | } 32 | 33 | // Look for notes defined in an aside element 34 | if( notesElement ) { 35 | messageData.notes = notesElement.innerHTML; 36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string'; 37 | } 38 | 39 | socket.emit( 'statechanged', messageData ); 40 | 41 | } 42 | 43 | // When a new notes window connects, post our current state 44 | socket.on( 'new-subscriber', function( data ) { 45 | post(); 46 | } ); 47 | 48 | // When the state changes from inside of the speaker view 49 | socket.on( 'statechanged-speaker', function( data ) { 50 | Reveal.setState( data.state ); 51 | } ); 52 | 53 | // Monitor events that trigger a change in state 54 | Reveal.addEventListener( 'slidechanged', post ); 55 | Reveal.addEventListener( 'fragmentshown', post ); 56 | Reveal.addEventListener( 'fragmenthidden', post ); 57 | Reveal.addEventListener( 'overviewhidden', post ); 58 | Reveal.addEventListener( 'overviewshown', post ); 59 | Reveal.addEventListener( 'paused', post ); 60 | Reveal.addEventListener( 'resumed', post ); 61 | 62 | // Post the initial state 63 | post(); 64 | 65 | }()); 66 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/print-pdf/print-pdf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * phantomjs script for printing presentations to PDF. 3 | * 4 | * Example: 5 | * phantomjs print-pdf.js "http://revealjs.com?print-pdf" reveal-demo.pdf 6 | * 7 | * @author Manuel Bieh (https://github.com/manuelbieh) 8 | * @author Hakim El Hattab (https://github.com/hakimel) 9 | * @author Manuel Riezebosch (https://github.com/riezebosch) 10 | */ 11 | 12 | // html2pdf.js 13 | var system = require( 'system' ); 14 | 15 | var probePage = new WebPage(); 16 | var printPage = new WebPage(); 17 | 18 | var inputFile = system.args[1] || 'index.html?print-pdf'; 19 | var outputFile = system.args[2] || 'slides.pdf'; 20 | 21 | if( outputFile.match( /\.pdf$/gi ) === null ) { 22 | outputFile += '.pdf'; 23 | } 24 | 25 | console.log( 'Export PDF: Reading reveal.js config [1/4]' ); 26 | 27 | probePage.open( inputFile, function( status ) { 28 | 29 | console.log( 'Export PDF: Preparing print layout [2/4]' ); 30 | 31 | var config = probePage.evaluate( function() { 32 | return Reveal.getConfig(); 33 | } ); 34 | 35 | if( config ) { 36 | 37 | printPage.paperSize = { 38 | width: Math.floor( config.width * ( 1 + config.margin ) ), 39 | height: Math.floor( config.height * ( 1 + config.margin ) ), 40 | border: 0 41 | }; 42 | 43 | printPage.open( inputFile, function( status ) { 44 | console.log( 'Export PDF: Preparing pdf [3/4]') 45 | printPage.evaluate( function() { 46 | Reveal.isReady() ? window.callPhantom() : Reveal.addEventListener( 'pdf-ready', window.callPhantom ); 47 | } ); 48 | } ); 49 | 50 | printPage.onCallback = function( data ) { 51 | // For some reason we need to "jump the queue" for syntax highlighting to work. 52 | // See: http://stackoverflow.com/a/3580132/129269 53 | setTimeout( function() { 54 | console.log( 'Export PDF: Writing file [4/4]' ); 55 | printPage.render( outputFile ); 56 | console.log( 'Export PDF: Finished successfully!' ); 57 | phantom.exit(); 58 | }, 0 ); 59 | }; 60 | } 61 | else { 62 | 63 | console.log( 'Export PDF: Unable to read reveal.js config. Make sure the input address points to a reveal.js page.' ); 64 | phantom.exit( 1 ); 65 | 66 | } 67 | } ); 68 | -------------------------------------------------------------------------------- /assets/vendor/prism-monokai.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Monokai theme for Prism.JS 3 | * 4 | * @author Martijn Swaagman 5 | * @license MIT 2015 6 | */ 7 | code[class*="language-"], 8 | pre[class*="language-"] { 9 | color: #f8f8f2; 10 | text-shadow: 0 1px rgba(0, 0, 0, 0.3); 11 | font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; 12 | direction: ltr; 13 | text-align: left; 14 | white-space: pre; 15 | word-spacing: normal; 16 | word-break: normal; 17 | word-wrap: normal; 18 | line-height: 1.5; 19 | 20 | -moz-tab-size: 4; 21 | -o-tab-size: 4; 22 | tab-size: 4; 23 | 24 | -webkit-hyphens: none; 25 | -moz-hyphens: none; 26 | -ms-hyphens: none; 27 | hyphens: none; 28 | } 29 | 30 | pre[class*="language-"] { 31 | padding: 1em; 32 | margin: .5em 0; 33 | overflow: auto; 34 | border-radius: 0.3em; 35 | } 36 | 37 | :not(pre) > code[class*="language-"], 38 | pre[class*="language-"] { 39 | background: #272822; 40 | } 41 | 42 | :not(pre) > code[class*="language-"] { 43 | padding: .1em; 44 | border-radius: .3em; 45 | } 46 | 47 | .token.comment, 48 | .token.prolog, 49 | .token.doctype, 50 | .token.cdata { 51 | color: #778090; 52 | } 53 | 54 | .token.punctuation { 55 | color: #F8F8F2; 56 | } 57 | 58 | .namespace { 59 | opacity: .7; 60 | } 61 | 62 | .token.property, 63 | .token.tag, 64 | .token.constant, 65 | .token.symbol, 66 | .token.deleted { 67 | color: #F92672; 68 | } 69 | 70 | .token.boolean, 71 | .token.number { 72 | color: #AE81FF; 73 | } 74 | 75 | .token.selector, 76 | .token.attr-name, 77 | .token.string, 78 | .token.char, 79 | .token.builtin, 80 | .token.inserted { 81 | color: #A6E22E; 82 | } 83 | 84 | .token.operator, 85 | .token.entity, 86 | .token.url, 87 | .language-css .token.string, 88 | .style .token.string, 89 | .token.variable { 90 | color: #F8F8F2; 91 | } 92 | 93 | .token.atrule, 94 | .token.attr-value, 95 | .token.function { 96 | color: #E6DB74; 97 | } 98 | 99 | .token.keyword { 100 | color: #F92672; 101 | } 102 | 103 | .token.regex, 104 | .token.important { 105 | color: #FD971F; 106 | } 107 | 108 | .token.important, 109 | .token.bold { 110 | font-weight: bold; 111 | } 112 | .token.italic { 113 | font-style: italic; 114 | } 115 | 116 | .token.entity { 117 | cursor: help; 118 | } -------------------------------------------------------------------------------- /assets/vendor/revealjs/plugin/math/math.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax. 4 | * 5 | * @author Hakim El Hattab 6 | */ 7 | var RevealMath = window.RevealMath || (function(){ 8 | 9 | var options = Reveal.getConfig().math || {}; 10 | var mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'; 11 | var config = options.config || 'TeX-AMS_HTML-full'; 12 | var url = mathjax + '?config=' + config; 13 | 14 | var defaultOptions = { 15 | messageStyle: 'none', 16 | tex2jax: { 17 | inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ], 18 | skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ] 19 | }, 20 | skipStartupTypeset: true 21 | }; 22 | 23 | function defaults( options, defaultOptions ) { 24 | 25 | for ( var i in defaultOptions ) { 26 | if ( !options.hasOwnProperty( i ) ) { 27 | options[i] = defaultOptions[i]; 28 | } 29 | } 30 | 31 | } 32 | 33 | function loadScript( url, callback ) { 34 | 35 | var head = document.querySelector( 'head' ); 36 | var script = document.createElement( 'script' ); 37 | script.type = 'text/javascript'; 38 | script.src = url; 39 | 40 | // Wrapper for callback to make sure it only fires once 41 | var finish = function() { 42 | if( typeof callback === 'function' ) { 43 | callback.call(); 44 | callback = null; 45 | } 46 | } 47 | 48 | script.onload = finish; 49 | 50 | // IE 51 | script.onreadystatechange = function() { 52 | if ( this.readyState === 'loaded' ) { 53 | finish(); 54 | } 55 | } 56 | 57 | // Normal browsers 58 | head.appendChild( script ); 59 | 60 | } 61 | 62 | return { 63 | init: function() { 64 | 65 | defaults( options, defaultOptions ); 66 | defaults( options.tex2jax, defaultOptions.tex2jax ); 67 | options.mathjax = options.config = null; 68 | 69 | loadScript( url, function() { 70 | 71 | MathJax.Hub.Config( options ); 72 | 73 | // Typeset followed by an immediate reveal.js layout since 74 | // the typesetting process could affect slide height 75 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] ); 76 | MathJax.Hub.Queue( Reveal.layout ); 77 | 78 | // Reprocess equations in slides when they turn visible 79 | Reveal.addEventListener( 'slidechanged', function( event ) { 80 | 81 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 82 | 83 | } ); 84 | 85 | } ); 86 | 87 | } 88 | } 89 | 90 | })(); 91 | 92 | Reveal.registerPlugin( 'math', RevealMath ); 93 | -------------------------------------------------------------------------------- /theme/scss/_slides.scss: -------------------------------------------------------------------------------- 1 | // Default Slide Layout 2 | // -------------------- 3 | 4 | section { 5 | 6 | // Slide subheading (grey text, smaller font) 7 | & > p:first-child { 8 | margin: 0 0 0.9em; 9 | font-size: 0.8em; 10 | line-height: 1em; 11 | text-transform: uppercase; 12 | color: var(--faded-heading-color); 13 | } 14 | 15 | // Slide subtitle 16 | & > h1 { 17 | &::after { 18 | display: block; 19 | content: ' '; 20 | margin-top: 10px; 21 | width: 100px; 22 | height: 8px; 23 | background: var(--heading-block-color); 24 | } 25 | } 26 | } 27 | 28 | 29 | // Root Title Slide 30 | // ---------------- 31 | 32 | .presentation-title { 33 | li { 34 | p { 35 | display: inline-block; 36 | margin-top: 0; 37 | } 38 | } 39 | } 40 | 41 | 42 | // Section Titles 43 | // -------------- 44 | 45 | .section-number { 46 | position: absolute; 47 | bottom: 0; 48 | display: block; 49 | text-align: right; 50 | width: 50%; 51 | font-family: var(--heading-font); 52 | font-size: 20rem; 53 | opacity: 0.1; 54 | } 55 | 56 | .section-title { 57 | .slide-background-content { 58 | background-size: contain; 59 | background-repeat: no-repeat; 60 | background-position: top 50% left 90%; 61 | } 62 | } 63 | 64 | 65 | // Quote and Conclusion Slides 66 | // --------------------------- 67 | 68 | .section-conclusion, 69 | .slide-quote { 70 | h1 { 71 | &::after { 72 | margin-left: auto; 73 | margin-right: auto; 74 | } 75 | } 76 | } 77 | 78 | .section-conclusion { 79 | p { 80 | text-transform: uppercase; 81 | font-size: var(--sm-font-size); 82 | color: var(--light-text-color); 83 | } 84 | 85 | // .slide-background-content { 86 | // background: var(--primary-color); 87 | // } 88 | 89 | text-align: center; 90 | // color: #111; 91 | } 92 | 93 | 94 | // Quote slide 95 | // ----------- 96 | 97 | .slide-quote { 98 | text-align: center; 99 | 100 | blockquote { 101 | // font-style: italic; 102 | max-width: 65%; 103 | margin-left: auto; 104 | margin-right: auto; 105 | 106 | p:first-child { 107 | margin-top: 0; 108 | } 109 | 110 | &::before { 111 | display: inline-block; 112 | width: .65em; 113 | height:.65em; 114 | // margin-top: 3em; 115 | content: '“'; 116 | font-family: 'Bookman Old Style', Georgia, Times, Serif; 117 | font-size: 5em; 118 | line-height: 1.1; 119 | vertical-align: baseline; 120 | text-align: center; 121 | background: var(--secondary-color); 122 | border-radius: 100% 123 | } 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /theme/index.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ title }} 6 | {{#if description}} 7 | 8 | {{/if}} 9 | {{#if author}} 10 | 11 | {{/if}} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 33 | 34 | 37 | 38 | 39 | 40 |
41 |
42 | {{> slides }} 43 |
44 |
45 | 46 | 47 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/js/promise.js: -------------------------------------------------------------------------------- 1 | /* MIT | https://github.com/taylorhakes/promise-polyfill */ 2 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t}); -------------------------------------------------------------------------------- /assets/vendor/revealjs/css/print/pdf.css: -------------------------------------------------------------------------------- 1 | /** 2 | * This stylesheet is used to print reveal.js 3 | * presentations to PDF. 4 | * 5 | * https://github.com/hakimel/reveal.js#pdf-export 6 | */ 7 | 8 | * { 9 | -webkit-print-color-adjust: exact; 10 | } 11 | 12 | body { 13 | margin: 0 auto !important; 14 | border: 0; 15 | padding: 0; 16 | float: none !important; 17 | overflow: visible; 18 | } 19 | 20 | html { 21 | width: 100%; 22 | height: 100%; 23 | overflow: visible; 24 | } 25 | 26 | /* Remove any elements not needed in print. */ 27 | .nestedarrow, 28 | .reveal .controls, 29 | .reveal .progress, 30 | .reveal .playback, 31 | .reveal.overview, 32 | .fork-reveal, 33 | .share-reveal, 34 | .state-background { 35 | display: none !important; 36 | } 37 | 38 | h1, h2, h3, h4, h5, h6 { 39 | text-shadow: 0 0 0 #000 !important; 40 | } 41 | 42 | .reveal pre code { 43 | overflow: hidden !important; 44 | font-family: Courier, 'Courier New', monospace !important; 45 | } 46 | 47 | ul, ol, div, p { 48 | visibility: visible; 49 | position: static; 50 | width: auto; 51 | height: auto; 52 | display: block; 53 | overflow: visible; 54 | margin: auto; 55 | } 56 | .reveal { 57 | width: auto !important; 58 | height: auto !important; 59 | overflow: hidden !important; 60 | } 61 | .reveal .slides { 62 | position: static; 63 | width: 100% !important; 64 | height: auto !important; 65 | zoom: 1 !important; 66 | 67 | left: auto; 68 | top: auto; 69 | margin: 0 !important; 70 | padding: 0 !important; 71 | 72 | overflow: visible; 73 | display: block; 74 | 75 | perspective: none; 76 | perspective-origin: 50% 50%; 77 | } 78 | 79 | .reveal .slides .pdf-page { 80 | position: relative; 81 | overflow: hidden; 82 | z-index: 1; 83 | 84 | page-break-after: always; 85 | } 86 | 87 | .reveal .slides section { 88 | visibility: visible !important; 89 | display: block !important; 90 | position: absolute !important; 91 | 92 | margin: 0 !important; 93 | padding: 0 !important; 94 | box-sizing: border-box !important; 95 | min-height: 1px; 96 | 97 | opacity: 1 !important; 98 | 99 | transform-style: flat !important; 100 | transform: none !important; 101 | } 102 | 103 | .reveal section.stack { 104 | position: relative !important; 105 | margin: 0 !important; 106 | padding: 0 !important; 107 | page-break-after: avoid !important; 108 | height: auto !important; 109 | min-height: auto !important; 110 | } 111 | 112 | .reveal img { 113 | box-shadow: none; 114 | } 115 | 116 | .reveal .roll { 117 | overflow: visible; 118 | line-height: 1em; 119 | } 120 | 121 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */ 122 | .reveal .slide-background { 123 | display: block !important; 124 | position: absolute; 125 | top: 0; 126 | left: 0; 127 | width: 100%; 128 | height: 100%; 129 | z-index: auto !important; 130 | } 131 | 132 | /* Display slide speaker notes when 'showNotes' is enabled */ 133 | .reveal.show-notes { 134 | max-width: none; 135 | max-height: none; 136 | } 137 | .reveal .speaker-notes-pdf { 138 | display: block; 139 | width: 100%; 140 | height: auto; 141 | max-height: none; 142 | top: auto; 143 | right: auto; 144 | bottom: auto; 145 | left: auto; 146 | z-index: 100; 147 | } 148 | 149 | /* Layout option which makes notes appear on a separate page */ 150 | .reveal .speaker-notes-pdf[data-layout="separate-page"] { 151 | position: relative; 152 | color: inherit; 153 | background-color: transparent; 154 | padding: 20px; 155 | page-break-after: always; 156 | border: 0; 157 | } 158 | 159 | /* Display slide numbers when 'slideNumber' is enabled */ 160 | .reveal .slide-number-pdf { 161 | display: block; 162 | position: absolute; 163 | font-size: 14px; 164 | } 165 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | const { src, dest, parallel, series, watch } = require('gulp') 2 | const del = require('del') 3 | const fs = require('fs') 4 | const sass = require('gulp-sass') 5 | const merge = require('merge-stream') 6 | const hb = require('gulp-hb') 7 | const rename = require('gulp-rename') 8 | const directoryTree = require('directory-tree') 9 | const browserSync = require('browser-sync') 10 | const server = browserSync.create() 11 | const config = require('./slides.config.js') 12 | 13 | 14 | // Build and Template Setup 15 | // ------------------------ 16 | 17 | function clean () { 18 | return del([ 19 | 'build/**/*', 20 | ]) 21 | } 22 | 23 | function reload (done) { 24 | server.reload() 25 | done() 26 | } 27 | 28 | function serve (done) { 29 | server.init({ 30 | server: { 31 | baseDir: '.' 32 | } 33 | }) 34 | done() 35 | } 36 | 37 | function watcher () { 38 | watch('theme/scss/**/*.scss', series(css, reload)) 39 | watch('theme/**/*.{hbs,html}', series(html, reload)) 40 | watch('theme/*.{hbs,html}', series(html, reload)) 41 | // watch('theme/fonts/**/*', series(fonts, reload)) 42 | // watch('images/**/*.{gif,jpg,png,svg}', series(images, reload)) 43 | watch('slides/**/*.{html,md}', series(html, reload)) 44 | } 45 | 46 | 47 | // Tidy template 48 | // ------------- 49 | 50 | // function images () { 51 | // return src('./images/**/*') 52 | // .pipe(dest('./build/images')) 53 | // } 54 | 55 | // function fonts () { 56 | // return src('./theme/fonts/**/*') 57 | // .pipe(dest('./build/fonts')) 58 | // } 59 | 60 | function css () { 61 | return src('./theme/scss/*.scss') 62 | .pipe(sass().on('error', sass.logError)) 63 | .pipe(dest('./assets/css')) 64 | } 65 | 66 | function html () { 67 | const slides = _findSlides() 68 | // console.log('---- slides ----') 69 | // console.log(JSON.stringify(slides, null, 4)) 70 | // console.log('----') 71 | 72 | const data = Object.assign({}, config, { slides: slides }) 73 | const hbstream = hb() 74 | .helpers({ 75 | loadHTML: function (file) { return fs.readFileSync(file) } 76 | }) 77 | .partials('./theme/partials/*.hbs') 78 | .data(data) 79 | return src('./theme/*.hbs') 80 | .pipe(hbstream) 81 | .pipe(rename({ extname: '.html' })) 82 | .pipe(dest('.')) 83 | } 84 | 85 | // function markdown () { 86 | // return src('./slides/**/*.md') 87 | // .pipe(dest('./build/slides')) 88 | // } 89 | 90 | // function prism () { 91 | // return src('./vendor/**/*') 92 | // .pipe(dest('./build/vendor')) 93 | // } 94 | 95 | 96 | // Reveal.js Library 97 | // ----------------- 98 | 99 | function reveal () { 100 | return merge( 101 | src('./node_modules/reveal.js/css/**/*.css') 102 | .pipe(dest('./assets/vendor/revealjs/css')), 103 | 104 | src('./node_modules/reveal.js/js/reveal.js') 105 | .pipe(dest('./assets/vendor/revealjs')), 106 | 107 | src('./node_modules/reveal.js/lib/**') 108 | .pipe(dest('./assets/vendor/revealjs/lib')), 109 | 110 | src('./node_modules/reveal.js/plugin/**') 111 | .pipe(dest('./assets/vendor/revealjs/plugin')) 112 | ) 113 | } 114 | 115 | // function init () { 116 | // return src('./reveal.init.js') 117 | // .pipe(rename('init.js')) 118 | // .pipe(dest('./build/')) 119 | // } 120 | 121 | 122 | // Helpers 123 | // ------- 124 | 125 | function _findSlides (tree) { 126 | let filtered = [] 127 | 128 | if (tree === undefined) { 129 | tree = directoryTree('./slides').children 130 | } 131 | 132 | tree.forEach(function (child, i) { 133 | if (child.type === 'directory') { 134 | filtered.push({ 135 | folder: child.path, 136 | slides: _findSlides(child.children) 137 | }) 138 | } 139 | else if (child.extension === '.html') { 140 | filtered.push({ 141 | type: 'html', 142 | content: child.path 143 | }) 144 | } 145 | else if (child.extension === '.md') { 146 | filtered.push({ 147 | type: 'markdown', 148 | content: child.path 149 | }) 150 | } 151 | }) 152 | return filtered 153 | } 154 | 155 | 156 | // Public Gulp Tasks 157 | // ----------------- 158 | 159 | function build (done) { 160 | return series( 161 | clean, 162 | parallel( 163 | css, 164 | html, 165 | // fonts, 166 | // images, 167 | // markdown, 168 | reveal, 169 | // prism 170 | )//, 171 | // init 172 | )(done) 173 | } 174 | 175 | 176 | // Exports 177 | // ------- 178 | 179 | exports.default = build 180 | exports.build = build 181 | exports.dev = series(build, serve, watcher) 182 | exports.serve = series(build, serve) -------------------------------------------------------------------------------- /assets/vendor/revealjs/lib/font/source-sans-pro/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License 2 | 3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 4 | 5 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 7 | 8 | —————————————————————————————- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | —————————————————————————————- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 14 | 15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 16 | 17 | DEFINITIONS 18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 19 | 20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s). 21 | 22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). 23 | 24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 25 | 26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 27 | 28 | PERMISSION & CONDITIONS 29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 30 | 31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 32 | 33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 34 | 35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 36 | 37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 38 | 39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 40 | 41 | TERMINATION 42 | This license becomes null and void if any of the above conditions are not met. 43 | 44 | DISCLAIMER 45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tidy-revealjs 2 | 3 | A custom theme and build system for reveal.js 4 | 5 | I love [reveal.js](https://github.com/hakimel/reveal.js) for its ability to let me do slide with code directly in the browser and with [markdown](https://github.com/hakimel/reveal.js/#markdown). Theming and slide management is however tricky. Moving slides means navigating yourself in a potentially large and nested DOM tree. 6 | 7 | _**What if instead you just wrote markdown and the slides were automatically generated for you?**_ How? Continue to ["slides via file structure"](#slides-via-file-structure) 8 | 9 | ### Preview 10 | 11 | - [This demo repository →](https://julie-ng.github.io/tidy-revealjs/) 12 | - [WorkerConf 2019 - Visualizing cloud architectures in real time with d3.js →](https://github.com/julie-ng/newtonjs-talk-slides) 13 | 14 | This [WorkerConf slide](https://github.com/julie-ng/newtonjs-talk-slides) was created using just markdown: 15 | 16 | [![Preview](./preview.png)](https://github.com/julie-ng/newtonjs-talk-slides/#/5/2) 17 | 18 | ## Usage 19 | 20 | First, clone this repository 21 | 22 | ``` 23 | git clone https://github.com/julie-ng/tidy-revealjs 24 | ``` 25 | 26 | Then install dependencies, including reveal.js 27 | 28 | ``` 29 | npm install 30 | ``` 31 | 32 | Then start development server including live-reload while you work on your slides: 33 | 34 | ``` 35 | npm run dev 36 | ``` 37 | 38 | A browser window will automatically open [http://localhost:3000/](http://localhost:3000/) 39 | 40 | ### Config and Handlebars 41 | 42 | Inside `slides.config.js`, you can define variables to use your Handlebars template, for example: 43 | 44 | ``` 45 | module.exports = { 46 | title: 'tidy-revealjs demo' 47 | } 48 | ``` 49 | 50 | and then you can use `{{ title }}` in handlebars. 51 | 52 | ## Slides via File Structure 53 | 54 | When it comes to content, there is no `index.html` with slides. Instead, you create files inside the `slides` folder, which are loaded in alphabetical order. 55 | 56 | ### How to re-order slides 57 | 58 | - slide order is determined by alphabetical order 59 | - subfolders are interpreted as [vertical slides](https://github.com/hakimel/reveal.js/#vertical-slide-navigation) 60 | 61 | Here is an example file structure for `slides/` 62 | 63 | ``` 64 | ./slides 65 | ├── 1.html 66 | ├── 2.md 67 | ├── 3.md 68 | └── base 69 | ├── bulleted-lists.md 70 | ├── ordered-lists.md 71 | ├── tables-as-html.html 72 | └── tables.md 73 | ``` 74 | 75 | The easiest way to manage order of your slides is to **prepend the filenames with numbers**, for example: 76 | 77 | ``` 78 | ├── 1-title.html 79 | ├── 20.md 80 | ├── 30-point-of-view.md 81 | ├── 40-markdown-support.html 82 | ``` 83 | 84 | Tip: consider numbering your slides, e.g. 10, 20, 30… so you can insert and move content easily. 85 | 86 | ## Slide Types: HTML vs Markdown 87 | 88 | - **HTML Slides** must have `
` as root element. 89 | - **Markdown Slides** have the `.md` extension. 90 | 91 | ### Speaker Notes 92 | 93 | This template supports the same syntax for notes as in reveal js. When running in development mode, press `s` key on your keyboard to open up the [speaker mode](https://github.com/hakimel/reveal.js#speaker-notes). 94 | 95 | In HTML, include an `