├── .github └── workflows │ └── semgrep.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── archetypes ├── default.md └── slide.md ├── build ├── example-gulpfile.js ├── example-package.json ├── exampleSite ├── config.toml └── content │ ├── _header.html │ ├── _index.html │ └── getting-started │ └── _index.md ├── gulpfile.js ├── i18n ├── en.toml ├── fr.toml └── nb.toml ├── images ├── screenshot.png └── tn.png ├── layouts ├── 404.html ├── _default │ ├── baseof.html │ ├── landing-page.html │ ├── li.html │ ├── list.html │ └── single.html ├── index.html ├── index.json ├── logo-cloudflare.svg ├── partials │ ├── breadcrumb-schema.html │ ├── meta.html │ ├── navigation.html │ ├── newsletter-form.html │ ├── pagination.html │ ├── search.html │ ├── sidebar.html │ └── toc.html ├── shortcodes │ ├── alert.html │ ├── anchor.html │ ├── anchorlink.html │ ├── attachmentlink.html │ ├── attachments.html │ ├── button.html │ ├── children.html │ ├── code.html │ ├── emoticon.html │ ├── excerpt-include.html │ ├── excerpt.html │ ├── expand.html │ ├── header.html │ ├── icon.html │ ├── image.html │ ├── info.html │ ├── label.html │ ├── mermaid.html │ ├── note.html │ ├── notice.html │ ├── pagelink.html │ ├── pagetreesearch.html │ ├── panel.html │ ├── recently-updated.html │ ├── relref.html │ ├── revealjs.html │ ├── section.html │ ├── task.html │ ├── tasklist.html │ ├── tip.html │ ├── toc.html │ ├── unknow.html │ ├── userlink.html │ ├── viewppt.html │ ├── viewxls.html │ ├── warning.html │ └── well.html └── slide │ └── single.html ├── package-lock.json ├── package.json ├── src └── styl │ ├── body-typography.styl │ ├── box-sizing-border-box.styl │ ├── browser-mock.styl │ ├── button.styl │ ├── event-summary.styl │ ├── hero-buttons.styl │ ├── hero-links-list.styl │ ├── hero.styl │ ├── more.styl │ ├── navigation.styl │ ├── normalize.styl │ ├── sponsorship.styl │ ├── stripe.styl │ ├── theme.styl │ └── tooltipped.styl ├── start ├── static ├── css │ ├── body-typography.css │ ├── bootstrap.min.css │ ├── box-sizing-border-box.css │ ├── browser-mock.css │ ├── button.css │ ├── docsearch.min.css │ ├── event-summary.css │ ├── featherlight.min.css │ ├── font-awesome.min.css │ ├── hero-buttons.css │ ├── hero-links-list.css │ ├── hero.css │ ├── more.css │ ├── navigation.css │ ├── normalize.css │ ├── sponsorship.css │ ├── stripe.css │ └── tooltipped.css ├── fonts │ ├── FontAwesome.otf │ ├── Inconsolata.eot │ ├── Inconsolata.svg │ ├── Inconsolata.ttf │ ├── Inconsolata.woff │ ├── Lato-Bold.ttf │ ├── Lato-Regular.ttf │ ├── Novecentosanswide-Normal-webfont.eot │ ├── Novecentosanswide-Normal-webfont.svg │ ├── Novecentosanswide-Normal-webfont.ttf │ ├── Novecentosanswide-Normal-webfont.woff │ ├── Novecentosanswide-Normal-webfont.woff2 │ ├── Novecentosanswide-UltraLight-webfont.eot │ ├── Novecentosanswide-UltraLight-webfont.svg │ ├── Novecentosanswide-UltraLight-webfont.ttf │ ├── Novecentosanswide-UltraLight-webfont.woff │ ├── Novecentosanswide-UltraLight-webfont.woff2 │ ├── Work_Sans_200.eot │ ├── Work_Sans_200.svg │ ├── Work_Sans_200.ttf │ ├── Work_Sans_200.woff │ ├── Work_Sans_200.woff2 │ ├── Work_Sans_300.eot │ ├── Work_Sans_300.svg │ ├── Work_Sans_300.ttf │ ├── Work_Sans_300.woff │ ├── Work_Sans_300.woff2 │ ├── Work_Sans_500.eot │ ├── Work_Sans_500.svg │ ├── Work_Sans_500.ttf │ ├── Work_Sans_500.woff │ ├── Work_Sans_500.woff2 │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── images │ ├── clippy.svg │ ├── favicon.png │ └── gopher-404.jpg ├── js │ ├── clipboard.min.js │ ├── docsearch.min.js │ ├── featherlight.min.js │ ├── highlight.pack.js │ ├── horsey.js │ ├── html5shiv-printshiv.min.js │ ├── hugo-learn.js │ ├── jquery-2.x.min.js │ ├── learn.js │ ├── lunr.min.js │ ├── modernizr.custom.71422.js │ └── search.js ├── mermaid │ ├── mermaid.css │ ├── mermaid.dark.css │ ├── mermaid.forest.css │ └── mermaid.js ├── none.html └── revealjs │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── css │ ├── print │ │ ├── paper.css │ │ └── pdf.css │ ├── reveal.css │ ├── reveal.scss │ └── theme │ │ ├── README.md │ │ ├── beige.css │ │ ├── black.css │ │ ├── blood.css │ │ ├── league.css │ │ ├── moon.css │ │ ├── night.css │ │ ├── serif.css │ │ ├── simple.css │ │ ├── sky.css │ │ ├── solarized.css │ │ ├── source │ │ ├── beige.scss │ │ ├── black.scss │ │ ├── blood.scss │ │ ├── league.scss │ │ ├── moon.scss │ │ ├── night.scss │ │ ├── serif.scss │ │ ├── simple.scss │ │ ├── sky.scss │ │ ├── solarized.scss │ │ └── white.scss │ │ ├── template │ │ ├── mixins.scss │ │ ├── settings.scss │ │ └── theme.scss │ │ └── white.css │ ├── demo.html │ ├── index.html │ ├── js │ └── reveal.js │ ├── lib │ ├── css │ │ └── zenburn.css │ ├── font │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── 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 │ └── js │ │ ├── classList.js │ │ ├── head.min.js │ │ └── html5shiv.js │ ├── plugin │ ├── highlight │ │ └── highlight.js │ ├── markdown │ │ ├── example.html │ │ ├── example.md │ │ ├── markdown.js │ │ └── marked.js │ ├── math │ │ └── math.js │ ├── multiplex │ │ ├── client.js │ │ ├── index.js │ │ ├── master.js │ │ └── package.json │ ├── notes-server │ │ ├── client.js │ │ ├── index.js │ │ └── notes.html │ ├── notes │ │ ├── notes.html │ │ └── notes.js │ ├── print-pdf │ │ └── print-pdf.js │ ├── search │ │ └── search.js │ └── zoom-js │ │ └── zoom.js │ └── test │ ├── examples │ ├── assets │ │ ├── image1.png │ │ └── image2.png │ ├── barebones.html │ ├── embedded-media.html │ ├── math.html │ ├── slide-backgrounds.html │ └── slide-transitions.html │ ├── qunit-1.12.0.css │ ├── qunit-1.12.0.js │ ├── simple.md │ ├── test-markdown-element-attributes.html │ ├── test-markdown-element-attributes.js │ ├── test-markdown-external.html │ ├── test-markdown-external.js │ ├── test-markdown-options.html │ ├── test-markdown-options.js │ ├── test-markdown-slide-attributes.html │ ├── test-markdown-slide-attributes.js │ ├── test-markdown.html │ ├── test-markdown.js │ ├── test-pdf.html │ ├── test-pdf.js │ ├── test.html │ └── test.js └── theme.toml /.github/workflows/semgrep.yml: -------------------------------------------------------------------------------- 1 | 2 | on: 3 | pull_request: {} 4 | workflow_dispatch: {} 5 | push: 6 | branches: 7 | - main 8 | - master 9 | schedule: 10 | - cron: '0 0 * * *' 11 | name: Semgrep config 12 | jobs: 13 | semgrep: 14 | name: semgrep/ci 15 | runs-on: ubuntu-20.04 16 | env: 17 | SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} 18 | SEMGREP_URL: https://cloudflare.semgrep.dev 19 | SEMGREP_APP_URL: https://cloudflare.semgrep.dev 20 | SEMGREP_VERSION_CHECK_URL: https://cloudflare.semgrep.dev/api/check-version 21 | container: 22 | image: returntocorp/semgrep 23 | steps: 24 | - uses: actions/checkout@v3 25 | - run: semgrep ci 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .DS_Store 3 | static/css/theme.css 4 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Grav 4 | Copyright (c) 2016 MATHIEU CORNIC 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cloudflare Docs Theme 2 | 3 | This repo contains the assets shared between Cloudflare Docs projects. 4 | At its core it is the theme resources, and shared code used by the build process. 5 | 6 | ## Usage 7 | 8 | The project should be npm required into your project. Copy the example project.json and 9 | gulpfile.js into your project and run: 10 | 11 | - `npm install` 12 | - `npm start` 13 | 14 | This project also contains an example site you can use for development. Feel free to run 15 | the above commands here to develop against it. 16 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title= "{{ replace .TranslationBaseName "-" " " | title }}" 3 | date= {{ .Date }} 4 | description = "" 5 | draft= true 6 | +++ 7 | 8 | Lorem Ipsum. 9 | Notice `draft` is set to true. 10 | -------------------------------------------------------------------------------- /archetypes/slide.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Slide title" 3 | type="slide" 4 | 5 | theme = "league" 6 | [revealOptions] 7 | transition= 'concave' 8 | controls= true 9 | progress= true 10 | history= true 11 | center= true 12 | +++ 13 | 14 | # Slide 1 15 | 16 | ___ 17 | 18 | ## Slide 1.1 19 | 20 | - Turn off alarm 21 | - Get out of bed 22 | 23 | ___ 24 | 25 | ## Slide 1.2 26 | 27 | - Eat eggs 28 | - Drink coffee 29 | 30 | --- 31 | 32 | # Slide 2 33 | 34 | ___ 35 | 36 | ## Slide 2.1 37 | 38 | - Eat spaghetti 39 | - Drink wine 40 | 41 | ___ 42 | 43 | ## Slide 2.2 44 | 45 | - Get in bed 46 | - Count sheep -------------------------------------------------------------------------------- /build: -------------------------------------------------------------------------------- 1 | gulp build 2 | -------------------------------------------------------------------------------- /example-gulpfile.js: -------------------------------------------------------------------------------- 1 | require('hugo-cloudflare-docs/gulpfile.js') 2 | -------------------------------------------------------------------------------- /example-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "developer-docs", 3 | "version": "1.0.0", 4 | "description": "Cloudflare developer docs", 5 | "license": "UNLICENSED", 6 | "scripts": { 7 | "start": "./node_modules/hugo-cloudflare-docs/start", 8 | "build": "./node_modules/hugo-cloudflare-docs/build" 9 | }, 10 | "dependencies": { 11 | "hugo-cloudflare-docs": "git+ssh://git@stash.cfops.it:7999/design/hugo-cloudflare-docs.git", 12 | "gulp": "^4.0.0" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | baseURL = "/" 2 | languageCode = "en-us" 3 | DefaultContentLanguage = "en" 4 | 5 | title = "Cloudflare" 6 | theme = "hugo-cloudflare-docs" 7 | themesdir = "../.." 8 | 9 | [params] 10 | editURL = "https://github.com/cloudflare/hugo-cloudflare-docs" 11 | noHomeIcon = false # default is false 12 | showVisitedLinks = true # default is false 13 | ordersectionsby = "weight" # ordersectionsby = "title" 14 | 15 | [outputs] 16 | home = [ "HTML", "RSS", "JSON"] 17 | 18 | 19 | [[menu.shortcuts]] 20 | pre = "

More

" 21 | name = "Github repo" 22 | identifier = "ds" 23 | url = "https://github.com/cloudflare/hugo-cloudflare-docs" 24 | weight = 10 25 | 26 | [[menu.shortcuts]] 27 | name = "Showcases" 28 | url = "/showcase" 29 | weight = 11 30 | 31 | [[menu.shortcuts]] 32 | name = "Hugo Documentation" 33 | identifier = "hugodoc" 34 | url = "https://gohugo.io/" 35 | weight = 20 36 | 37 | [[menu.shortcuts]] 38 | name = " Credits" 39 | url = "/credits" 40 | weight = 30 41 | -------------------------------------------------------------------------------- /exampleSite/content/_header.html: -------------------------------------------------------------------------------- 1 | Docs Product Name 2 | -------------------------------------------------------------------------------- /exampleSite/content/_index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 5 | 6 | 7 |
Docs Product Name
8 |

The catchphrase for your docs site.

9 |

A short description of your product, what it’s all about, and what a user should expect to find in the docs linked below.

10 |
11 | Get started 12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /exampleSite/content/getting-started/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Getting Started" 3 | +++ 4 | 5 | Built on Hugo, a static site generator, the `hugo-cloudflare-docs` contains the frontend templates and styles for building great developer sites and documentation at Cloudflare. This repo powers the sites listed below. 6 | 7 | ### Developer Documentation Sites 8 | 9 | - **[Access Docs](https://developers.cloudflare.com/access/)** – [EA/access-docs](https://stash.cfops.it/projects/EA/repos/access-docs) 10 | - **[Workers Docs](https://developers.cloudflare.com/workers/)** – [EW/workers-docs](https://stash.cfops.it/projects/EW/repos/workers-docs) 11 | - **[Warp Docs](https://developers.cloudflare.com/warp/)** – [TUN/warp-docs](https://stash.cfops.it/projects/TUN/repos/warp-docs) 12 | - **[Stream Docs](https://developers.cloudflare.com/stream/)** 13 | - **[Mobile SDK](https://developers.cloudflare.com/mobile-sdk/)** 14 | - and many more upcoming... 15 | 16 | If you’d like to create a new documentation site for a Cloudflare product, create a new repo modelled after one of these and you’ll be ready to go. 17 | 18 | ### Other Sites 19 | 20 | - **[Cloudflare Developers site](https://developers.cloudflare.com/)** – [PS/developer-docs](https://stash.cfops.it/projects/PS/repos/developer-docs) 21 | - **[Incidents Status site](https://incidents.cfdata.org/)** – [PLAT/incident-status-hugo](https://stash.cfops.it/projects/PLAT/repos/incident-status-hugo) 22 | 23 | If you’d like to contribute to the look and feel of all of the docs, then make a PR on this repo, [DESIGN/hugo-cloudflare-docs](https://stash.cfops.it/projects/DESIGN/repos/hugo-cloudflare-docs). 24 | 25 | Good luck! 26 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | const Path = require('path') 2 | const gulp = require('gulp') 3 | const gulpif = require('gulp-if') 4 | const postcss = require('gulp-postcss') 5 | const cleanCSS = require('gulp-clean-css') 6 | const autoprefixer = require('autoprefixer') 7 | const rename = require('gulp-rename') 8 | const stylus = require('gulp-stylus') 9 | const nib = require('nib') 10 | const beeper = require('beeper') 11 | const log = require('fancy-log') 12 | 13 | const joinP = Path.join.bind(null, __dirname) 14 | 15 | function handleError (err) { 16 | log(err) 17 | beeper() 18 | 19 | this.emit('end') 20 | } 21 | 22 | const compressAssets = false 23 | const buildDirectory = './static' 24 | 25 | function css () { 26 | const STYLUS_OPTS = { 27 | use: [nib()], 28 | errors: true, 29 | paths: [ 30 | __dirname, 31 | joinP('bower_components') 32 | ] 33 | } 34 | 35 | const minifyOptions = { 36 | advanced: false 37 | } 38 | 39 | return gulp 40 | .src(joinP('./src/styl/*.styl')) 41 | .pipe(stylus(STYLUS_OPTS)) 42 | .on('error', handleError) 43 | .pipe(postcss([autoprefixer({remove: false})])) 44 | .on('error', handleError) 45 | .pipe(gulpif(compressAssets, cleanCSS(minifyOptions))) 46 | .on('error', handleError) 47 | .pipe(rename({extName: '.css'})) 48 | .pipe(gulp.dest(joinP(buildDirectory, 'css'))) 49 | } 50 | 51 | function watch () { 52 | gulp.watch(joinP('./src/**'), css) 53 | } 54 | 55 | const buildTasks = [ 56 | css 57 | ] 58 | 59 | function register (gulp) { 60 | gulp.task('build', gulp.series(...buildTasks)) 61 | gulp.task('watch', gulp.series(...buildTasks, watch)) 62 | } 63 | 64 | register(gulp) 65 | 66 | module.exports = {register} 67 | -------------------------------------------------------------------------------- /i18n/en.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Create a _header.md to customize this" 3 | 4 | [Search-placeholder] 5 | other = "Search..." 6 | 7 | [Clear-History] 8 | other = "Clear History" 9 | 10 | [Page] 11 | other = "Page" 12 | 13 | [Next-Pages] 14 | other = "Next Pages" 15 | 16 | [Previous-Pages] 17 | other = "Previous Pages" 18 | 19 | [pagination-on] 20 | other = "on" 21 | 22 | [Attachments-label] 23 | other = "Attachments" 24 | 25 | [title-404] 26 | other = "Error" 27 | 28 | [message-404] 29 | other = "Woops. Looks like this page doesn't exist." 30 | 31 | [Go-to-homepage] 32 | other = "Go to homepage" 33 | 34 | [Edit-this-page] 35 | other = "Edit page" -------------------------------------------------------------------------------- /i18n/fr.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Créez un fichier _header.md pour personaliser cet encart" 3 | 4 | [Search-placeholder] 5 | other = "Rechercher..." 6 | 7 | [Clear-History] 8 | other = "Supprimer historique" 9 | 10 | [Page] 11 | other = "Page" 12 | 13 | [Next-Pages] 14 | other = "Pages suivantes" 15 | 16 | [Previous-Pages] 17 | other = "Pages précédentes" 18 | 19 | [pagination-on] 20 | other = "sur" 21 | 22 | [Attachments-label] 23 | other = "Documents attachés" 24 | 25 | [title-404] 26 | other = "Erreur" 27 | 28 | [message-404] 29 | other = "Woops. Looks like this page doesn't exist." 30 | 31 | [Go-to-homepage] 32 | other = "Vers la page d'accueil" 33 | 34 | [Edit-this-page] 35 | other = "Modifier" -------------------------------------------------------------------------------- /i18n/nb.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Opprett en _header.md for å tilpasse denne" 3 | 4 | [Search-placeholder] 5 | other = "Søk..." 6 | 7 | [Clear-History] 8 | other = "Fjern historikk" 9 | 10 | [Page] 11 | other = "Side" 12 | 13 | [Next-Pages] 14 | other = "Neste" 15 | 16 | [Previous-Pages] 17 | other = "Forrige" 18 | 19 | [pagination-on] 20 | other = "av" 21 | 22 | [Attachments-label] 23 | other = "Vedlegg" 24 | 25 | [title-404] 26 | other = "Feil" 27 | 28 | [message-404] 29 | other = "Ups... Ser ikke ut som denne siden eksisterer." 30 | 31 | [Go-to-homepage] 32 | other = "Gå til hovedsiden" 33 | 34 | [Edit-this-page] 35 | other = "Editer" -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/images/screenshot.png -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/images/tn.png -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | {{ partial "sidebar.html" . }} 4 | 5 |
6 |
7 |
8 |

404

9 |

Page not found

10 |
11 |
12 |
13 | {{ end }} 14 | -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | {{ .Hugo.Generator }} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | {{ if .Description }} 23 | {{ $.Scratch.Set "description" .Description }} 24 | {{ else }} 25 | {{ $.Scratch.Set "description" "Use Cloudflare’s APIs and edge network to build secure, ultra-fast applications." }} 26 | {{ end }} 27 | 28 | 29 | 30 | 31 | 32 | {{ partial "breadcrumb-schema.html" . }} 33 | 34 | {{ if .IsHome }} 35 | 36 | {{ else if ne (len .Keywords) 0 }} 37 | 38 | {{ end }} 39 | 40 | {{ if .IsHome }} 41 | 42 | 43 | {{ .Site.Title}} 44 | {{ else }} 45 | 46 | 47 | {{ .Title}} - {{ .Site.Title}} 48 | {{ end }} 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | {{ block "endOfHead" . }} 63 | {{ end }} 64 | 65 | 66 | 67 | 68 | 70 | 71 | {{ block "body" . }} 72 | 73 | {{ end }} 74 | 75 | {{ block "endOfBody" . }} 76 | 77 | 78 | 84 | 85 | 89 | {{ end }} 90 | 91 | 92 | -------------------------------------------------------------------------------- /layouts/_default/landing-page.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | 4 | {{ .Content }} 5 | {{ end }} 6 | -------------------------------------------------------------------------------- /layouts/_default/li.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | {{ partial "sidebar.html" . }} 4 | 5 |
6 |
7 | 8 | {{if .Params.tags }} 9 |
10 | {{ range $index, $tag := .Params.tags }} 11 | {{ $tag }} 12 | {{ end }} 13 |
14 | {{end}} 15 | 16 |
17 | {{if not .IsHome}} 18 |

{{.Title}}

19 | {{end}} 20 | 21 | {{ .Content }} 22 |
23 |
24 | 37 |
38 | {{ end }} 39 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | {{ partial "sidebar.html" . }} 4 | 5 |
6 |
7 | 8 | {{if .Params.tags }} 9 |
10 | {{ range $index, $tag := .Params.tags }} 11 | {{ $tag }} 12 | {{ end }} 13 |
14 | {{end}} 15 | 16 |
17 | {{if not .IsHome}} 18 |

{{.Title}}

19 | {{end}} 20 | 21 | {{ .Content }} 22 |
23 |
24 | 37 |
38 | {{ end }} 39 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | {{ partial "sidebar.html" . }} 4 | 5 |
6 |
7 | 8 | {{if .Params.tags }} 9 |
10 | {{ range $index, $tag := .Params.tags }} 11 | {{ $tag }} 12 | {{ end }} 13 |
14 | {{end}} 15 | 16 |
17 | {{if not .IsHome}} 18 |

{{.Title}}

19 | {{end}} 20 | 21 | {{ .Content }} 22 |
23 |
24 | 37 |
38 | {{ end }} 39 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "body" }} 2 | {{ partial "navigation.html" . }} 3 | 4 | {{ .Content }} 5 | {{ end }} 6 | -------------------------------------------------------------------------------- /layouts/index.json: -------------------------------------------------------------------------------- 1 | [{{ range $index, $page := .Site.Pages }} 2 | {{- if ne $page.Type "json" -}} 3 | {{- if and $index (gt $index 0) -}},{{- end }} 4 | { 5 | "uri": "{{ $page.Permalink }}", 6 | "title": "{{ htmlEscape $page.Title}}", 7 | "tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}], 8 | "description": "{{ htmlEscape .Description}}", 9 | "content": {{$page.Plain | jsonify}} 10 | } 11 | {{- end -}} 12 | {{- end -}}] -------------------------------------------------------------------------------- /layouts/logo-cloudflare.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/layouts/logo-cloudflare.svg -------------------------------------------------------------------------------- /layouts/partials/breadcrumb-schema.html: -------------------------------------------------------------------------------- 1 | {{/* NOTE: Hugo has limited support for variable scoping and looping. This is a work around these limitations. */}} 2 | 3 | {{ $.Scratch.Set "page" . }} 4 | {{ $.Scratch.Set "pagePresent" true }} 5 | 6 | {{/* Assuming there will never be more than 5 levels of page depth... */}} 7 | {{ range (slice 1 2 3 4 5) }} 8 | {{ $page := $.Scratch.Get "page" }} 9 | 10 | {{ if $.Scratch.Get "pagePresent" }} 11 | {{ if $page.IsHome }} 12 | {{ $.Scratch.Add "pageEntries" (slice (dict "id" $page.Permalink "name" $.Site.Title)) }} 13 | {{ else }} 14 | {{ $.Scratch.Add "pageEntries" (slice (dict "id" $page.Permalink "name" $page.Title)) }} 15 | {{ end }} 16 | {{ end }} 17 | 18 | {{ if $page.Parent }} 19 | {{ $.Scratch.Set "page" $page.Parent }} 20 | {{ else }} 21 | {{ $.Scratch.Set "pagePresent" false }} 22 | {{ end }} 23 | {{ end }} 24 | 25 | {{ $pageEntries := $.Scratch.Get "pageEntries" }} 26 | {{ $breadcrumbListLength := sub (len $pageEntries) 1 }} 27 | 28 | {{ range $listIndex, $_ := $pageEntries }} 29 | {{ with (index $pageEntries (sub $breadcrumbListLength $listIndex)) }} 30 | {{ $.Scratch.Add "itemListElement" (slice (dict "@type" "ListItem" "position" (add $listIndex 1) "item" (dict "@id" .id "name" .name))) }} 31 | {{ end }} 32 | {{ end }} 33 | 34 | 37 | 38 | -------------------------------------------------------------------------------- /layouts/partials/meta.html: -------------------------------------------------------------------------------- 1 | 2 | {{ with .Site.Params.author }}{{ end }} 3 | -------------------------------------------------------------------------------- /layouts/partials/navigation.html: -------------------------------------------------------------------------------- 1 | 13 | 14 | 22 | -------------------------------------------------------------------------------- /layouts/partials/newsletter-form.html: -------------------------------------------------------------------------------- 1 | 83 | 84 |
85 | 86 |
87 | 93 | Your privacy is important to us 94 |
-------------------------------------------------------------------------------- /layouts/partials/pagination.html: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /layouts/partials/search.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /layouts/partials/sidebar.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 48 | 49 | 50 | {{ define "section-tree-nav" }} 51 | {{ $currentNode := .currentnode }} 52 | {{ with .sect }} 53 | {{ if .IsSection }} 54 | {{safeHTML .Params.head}} 55 |
  • 61 | 62 | {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} 63 | 64 | {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} 65 | {{ if ne $numberOfPages 0 }} 66 | 67 | {{ if or (.IsAncestor $currentNode) (.Params.alwaysopen) }} 68 | 69 | {{ else }} 70 | 71 | {{ end }} 72 | 73 | {{ end }} 74 | 75 | {{ if ne $numberOfPages 0 }} 76 | 99 | {{ end }} 100 |
  • 101 | {{ else }} 102 | {{ if not .Params.Hidden }} 103 |
  • 106 | 107 | {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} 108 |
  • 109 | {{ end }} 110 | {{ end }} 111 | {{ end }} 112 | {{ end }} 113 | 114 | 121 | -------------------------------------------------------------------------------- /layouts/partials/toc.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | {{ .TableOfContents }} 4 |
    5 |
    6 | -------------------------------------------------------------------------------- /layouts/shortcodes/alert.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /layouts/shortcodes/anchor.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/anchorlink.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/attachmentlink.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "filename")}} 3 | {{$.Inner}} ({{$att.nicefilesize}}) 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/attachments.html: -------------------------------------------------------------------------------- 1 |
    2 | 6 | {{if eq .Page.File.BaseFileName "index"}} 7 | {{$.Scratch.Add "filesName" "files"}} 8 | {{else}} 9 | {{$.Scratch.Add "filesName" (printf "%s.files" .Page.File.BaseFileName)}} 10 | {{end}} 11 | {{ range (readDir (printf "./content/%s%s" .Page.File.Dir ($.Scratch.Get "filesName")) ) }} 12 | {{ $fileDir := replace $.Page.File.Dir "\\" "/" }} 13 | {{if ($.Get "pattern")}} 14 | {{if (findRE ($.Get "pattern") .Name)}} 15 |
  • 16 | 17 | {{.Name}} 18 | 19 | ({{div .Size 1024 }} ko) 20 |
  • 21 | {{end}} 22 | {{else}} 23 |
  • 24 | 25 | {{.Name}} 26 | 27 | ({{div .Size 1024 }} ko) 28 |
  • 29 | {{end}} 30 | {{end}} 31 |
    32 | 33 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/button.html: -------------------------------------------------------------------------------- 1 | 2 | {{ with .Get "align" }}
    {{end}} 3 | 4 | {{ with .Get "align" }}
    {{end}} 5 | 6 | -------------------------------------------------------------------------------- /layouts/shortcodes/children.html: -------------------------------------------------------------------------------- 1 | {{ $showhidden := .Get "showhidden"}} 2 | {{ $style := .Get "style" | default "li" }} 3 | {{ $depth := .Get "depth" | default 1 }} 4 | {{ $withDescription := .Get "description" | default false }} 5 | {{ $sortTerm := .Get "sort" | default "Weight" }} 6 | 7 | {{ .Scratch.Set "current" .Page }} 8 | 9 | {{if (.Get "page")}} 10 | {{ with .Site.GetPage "section" (.Get "page") }} 11 | {{ $.Scratch.Set "current" . }} 12 | {{ end }} 13 | {{ end }} 14 | 15 | {{ $cpage := (.Scratch.Get "current") }} 16 | 17 | 38 | 39 | {{.Inner|safeHTML}} 40 | 41 | {{ define "childs" }} 42 | {{ range .menu }} 43 | {{ if and .Params.hidden (not $.showhidden) }} 44 | {{else}} 45 | 46 | 47 | {{if hasPrefix $.style "h"}} 48 | {{$num := sub ( int (trim $.style "h") ) 1 }} 49 | {{$numn := add $num $.count }} 50 | 51 | {{(printf "" $numn)|safeHTML}} 52 | {{ .Title }} 53 | {{(printf "" $numn)|safeHTML}} 54 | 55 | {{else}} 56 | {{(printf "<%s>" $.style)|safeHTML}} 57 | {{ .Title }} 58 | {{(printf "" $.style)|safeHTML}} 59 | {{end}} 60 | 61 | 62 | 63 | 64 | 65 | {{if $.description}} 66 | {{if .Description}} 67 |

    {{.Description}}

    68 | {{else}} 69 |

    {{.Summary}}

    70 | {{end}} 71 | {{end}} 72 | 73 | 74 | 75 | {{ if lt $.count $.depth}} 76 | {{if eq $.style "li"}} 77 | 100 | {{end}} 101 | {{end}} 102 | 103 | {{end}} 104 | {{end}} 105 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/code.html: -------------------------------------------------------------------------------- 1 |
    {{.Inner}}
    -------------------------------------------------------------------------------- /layouts/shortcodes/emoticon.html: -------------------------------------------------------------------------------- 1 | {{ $name := .Get "name"}} 2 | 3 | {{ if eq "smile" $name}} 4 | 😀 5 | {{ else if eq "sad" $name}} 6 | 🙁 7 | {{ else if eq "cheeky" $name}} 8 | 😛 9 | {{ else if eq "laugh" $name}} 10 | 😃 11 | {{ else if eq "wink" $name}} 12 | 😉 13 | {{ else if eq "thumbs-up" $name}} 14 | 15 | {{ else if eq "thumbs-down" $name}} 16 | 17 | {{ else if eq "information" $name}} 18 | 19 | {{ else if eq "tick" $name}} 20 | 21 | {{ else if eq "cross" $name}} 22 | 23 | {{ else if eq "warning" $name}} 24 | 25 | {{else}} 26 | ( Emoticon: {{$name}} ) 27 | {{end}} 28 | 29 | {{.Inner}} 30 | -------------------------------------------------------------------------------- /layouts/shortcodes/excerpt-include.html: -------------------------------------------------------------------------------- 1 | {{ $excerpt := findRE "(?ms){{%\\s*excerpt[^%]*%}}(.|\n)*?{{%\\s*/excerpt\\s*%}}" ( readFile (printf "./content/%s" (.Get "filename")) ) }} 2 | {{ range $excerpt }} 3 | {{if ($.Get "panel")}} 4 |
    5 |
    {{$.Get "panel"}}
    6 |
    7 | {{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }} 8 |
    9 |
    10 | {{else}} 11 | {{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }} 12 | {{ end }} 13 | {{ end }} 14 | {{.Inner}} 15 | -------------------------------------------------------------------------------- /layouts/shortcodes/excerpt.html: -------------------------------------------------------------------------------- 1 | {{with .Get "hidden"}} 2 | {{if eq . "false"}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{else}} 6 | {{.Inner}} 7 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/expand.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 4 | 5 | {{ if .IsNamedParams }} 6 | {{.Get "default" | default "Expand me..."}} 7 | {{else}} 8 | {{.Get 0 | default "Expand me..."}} 9 | {{end}} 10 | 11 |
    12 | 15 |
    16 | 17 | -------------------------------------------------------------------------------- /layouts/shortcodes/header.html: -------------------------------------------------------------------------------- 1 |
    2 | Résumé
    3 | {{.Inner}} 4 | 5 |
    Sur cette page
    6 | {{.Page.TableOfContents}} 7 |
    Pages liées
    8 | 16 |
    17 | -------------------------------------------------------------------------------- /layouts/shortcodes/icon.html: -------------------------------------------------------------------------------- 1 | {{ if .IsNamedParams }} 2 | {{if not (hasPrefix (.Get "name") "fa-") }} 3 | 4 | {{else}} 5 | 6 | {{end}} 7 | {{else}} 8 | {{if not (hasPrefix (.Get 0) "fa-") }} 9 | 10 | {{else}} 11 | 12 | {{end}} 13 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/image.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{.Inner}} 5 | 6 | -------------------------------------------------------------------------------- /layouts/shortcodes/info.html: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Get "title" -}} 3 |
    4 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 5 |
    {{.Inner}}
    6 |
    7 | {{- else -}} 8 | 9 | {{- end -}} 10 | 11 | -------------------------------------------------------------------------------- /layouts/shortcodes/label.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/mermaid.html: -------------------------------------------------------------------------------- 1 |
    {{ safeHTML .Inner }}
    -------------------------------------------------------------------------------- /layouts/shortcodes/note.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /layouts/shortcodes/notice.html: -------------------------------------------------------------------------------- 1 |
    {{ .Inner }}
    2 | -------------------------------------------------------------------------------- /layouts/shortcodes/pagelink.html: -------------------------------------------------------------------------------- 1 | {{ if ne (.Get "spacekey") "" }} 2 | 3 | {{else}} 4 | {{$pages := where .Site.AllPages "Title" (( $.Get "pagename") | htmlUnescape ) }} 5 | {{ if eq 0 (len $pages) }} 6 | 7 | {{else}} 8 | {{ range $pages }} 9 | {{$.Inner}} 10 | {{end}} 11 | {{ end }} 12 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/pagetreesearch.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/panel.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ with .Get "header" }}
    {{ htmlUnescape . | markdownify}}
    {{end}} 3 |
    {{.Inner}}
    4 | {{ with .Get "footer" }}{{end}} 5 |
    6 | -------------------------------------------------------------------------------- /layouts/shortcodes/recently-updated.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} 2 | 3 | {{- range first 10 .Site.Pages }} 4 |
  • 5 | {{ .Date.Format "02/01/2006" }} - {{ .Title }} 6 |
  • 7 | {{ end }} 8 | -------------------------------------------------------------------------------- /layouts/shortcodes/relref.html: -------------------------------------------------------------------------------- 1 | {{- if in (.Get 0) "/_index.md" -}} 2 | {{- $path := (trim (.Get 0) "_index.md") -}} 3 | {{- with .Site.GetPage "section" (trim $path "/") -}} 4 | {{- .URL -}} 5 | {{- end -}} 6 | {{- else -}} 7 | {{- with .Site.GetPage "section" (.Get 0) }} 8 | {{- .URL -}} 9 | {{- else -}} 10 | {{- .Get 0 | relref .Page -}} 11 | {{- end -}} 12 | {{- end -}} -------------------------------------------------------------------------------- /layouts/shortcodes/revealjs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 8 |
    9 |
    10 |
    15 | {{ .Inner | safeHTML}} 16 |
    17 |
    18 |
    19 | 20 | 21 | 22 | 46 |
    47 |
  • See it fullscreen
  • 48 | 49 | -------------------------------------------------------------------------------- /layouts/shortcodes/section.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/task.html: -------------------------------------------------------------------------------- 1 |
    2 | 9 | 10 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/tasklist.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 | {{.Inner}} 4 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/tip.html: -------------------------------------------------------------------------------- 1 | 2 | {{if .Get "title" }} 3 |
    4 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 5 |
    {{.Inner}}
    6 |
    7 | {{else}} 8 | 9 | {{end}} 10 | 11 | -------------------------------------------------------------------------------- /layouts/shortcodes/toc.html: -------------------------------------------------------------------------------- 1 | {{.TableOfContents}} 2 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/unknow.html: -------------------------------------------------------------------------------- 1 |
    {{.Inner}}
    -------------------------------------------------------------------------------- /layouts/shortcodes/userlink.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/viewppt.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "name")}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/viewxls.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "name")}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/warning.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{if .Get "title" }} 5 |
    6 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 7 |
    {{.Inner}}
    8 |
    9 | {{else}} 10 | 11 | {{end}} 12 | 13 | -------------------------------------------------------------------------------- /layouts/shortcodes/well.html: -------------------------------------------------------------------------------- 1 |
    {{.Inner}}
    2 | -------------------------------------------------------------------------------- /layouts/slide/single.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
    7 |
    8 |
    13 | {{ .RawContent }} 14 |
    15 |
    16 |
    17 | 18 | 19 | 38 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@cloudflare/hugo-cloudflare-docs", 3 | "version": "1.0.4", 4 | "description": "This repository contains the assets shared between Cloudflare Docs projects. At its core it is the theme resources, and shared code used by the build process.", 5 | "scripts": { 6 | "start": "cd exampleSite; ../start", 7 | "postinstall": "gulp build" 8 | }, 9 | "license": "UNLICENSED", 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/cloudflare/hugo-cloudflare-docs" 13 | }, 14 | "dependencies": { 15 | "autoprefixer": "^9.3.1", 16 | "beeper": "^1.1.1", 17 | "concurrently": "^4.0.1", 18 | "fancy-log": "^1.3.2", 19 | "gulp": "^4.0.0", 20 | "gulp-clean-css": "^3.10.0", 21 | "gulp-cli": "^2.0.1", 22 | "gulp-if": "^2.0.1", 23 | "gulp-postcss": "^7.0.0", 24 | "gulp-rename": "~1.2.0", 25 | "gulp-stylus": "^2.7.0", 26 | "nib": "^1.0.2" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/styl/body-typography.styl: -------------------------------------------------------------------------------- 1 | body 2 | background #fff 3 | color #242425 4 | font-family -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif 5 | font-style normal 6 | font-weight 400 7 | line-height 1.5 8 | letter-spacing -.005em 9 | -ms-overflow-style -ms-autohiding-scrollbar 10 | -webkit-text-decoration-skip ink 11 | text-decoration-skip ink 12 | -webkit-font-smoothing antialiased 13 | -------------------------------------------------------------------------------- /src/styl/box-sizing-border-box.styl: -------------------------------------------------------------------------------- 1 | * 2 | 3 | &, &::before, &::after 4 | box-sizing inherit 5 | -------------------------------------------------------------------------------- /src/styl/browser-mock.styl: -------------------------------------------------------------------------------- 1 | .browser-mock 2 | background #bcbec0 3 | border-radius 4px 4 | padding 2rem 2px 2px 2px 5 | 6 | .screenshot 7 | background #fff 8 | position relative 9 | 10 | img 11 | display block 12 | position absolute 13 | height 100% 14 | width 100% 15 | 16 | .spacer 17 | height 0 18 | padding-bottom 50% // Should be set on element 19 | -------------------------------------------------------------------------------- /src/styl/button.styl: -------------------------------------------------------------------------------- 1 | .button 2 | -webkit-font-smoothing subpixel-antialiased 3 | -moz-osx-font-smoothing auto 4 | position relative 5 | text-rendering optimizeLegibility 6 | -webkit-tap-highlight-color transparent 7 | user-select none 8 | appearance none 9 | display inline-block 10 | cursor pointer 11 | color inherit 12 | background transparent 13 | border 0 14 | border-radius 2px 15 | font-size inherit 16 | padding .6em 1em 17 | line-height 1.2 18 | margin 0 19 | text-align center 20 | font-family inherit 21 | font-weight 400 22 | text-decoration none 23 | 24 | // Useful utility until this Chrome bug is fixed 25 | // https://code.google.com/p/chromium/issues/detail?id=406658 26 | &.nowrap 27 | white-space nowrap 28 | max-width 100% 29 | 30 | &:hover 31 | text-decoration none 32 | 33 | &[disabled] 34 | opacity .7 35 | cursor default 36 | box-shadow none !important 37 | 38 | &:hover, &:focus, &:focus:hover 39 | box-shadow none !important 40 | 41 | &:hover 42 | // Implement Cloudflare button hover background color change as box shadow mask 43 | box-shadow inset 0 0 0 999em rgba(#000, .0625) 44 | 45 | &:hover:active, &.active 46 | // Implement Cloudflare active button background color change as box shadow mask 47 | box-shadow inset 0 .125em .375em rgba(#000, .125), inset 0 0 0 999em rgba(#000, .125) 48 | 49 | &:focus 50 | outline none 51 | 52 | &::before 53 | content "" 54 | position absolute 55 | z-index 1 56 | top 2px // Avoid dumb `em` rounding issues 57 | right 2px // Avoid dumb `em` rounding issues 58 | bottom 2px // Avoid dumb `em` rounding issues 59 | left 2px // Avoid dumb `em` rounding issues 60 | border-radius .1em 61 | box-shadow inset 0 0 0 1px #fff // Avoid dumb `em` rounding issues 62 | pointer-events none 63 | transition opacity .3s ease-in-out 64 | 65 | &:active:before 66 | opacity 0 67 | 68 | &.orange 69 | background #f38020 70 | color #fff 71 | 72 | &.black 73 | background #000 74 | color #fff 75 | 76 | &:active 77 | background darkerGray 78 | 79 | &.white 80 | background #fff 81 | color #000 82 | 83 | &.juicier 84 | padding-top .8em 85 | padding-bottom .8em 86 | 87 | &.juiciest 88 | padding-top 1em 89 | padding-bottom 1em 90 | 91 | &.large 92 | font-size 1.25em 93 | 94 | &.full-width 95 | width 100% 96 | -------------------------------------------------------------------------------- /src/styl/event-summary.styl: -------------------------------------------------------------------------------- 1 | .event-summary-header 2 | display flex 3 | font-size .8em 4 | 5 | .event-summary-date 6 | text-transform uppercase 7 | 8 | .event-summary-location 9 | padding-left 1em 10 | opacity .5 11 | -------------------------------------------------------------------------------- /src/styl/hero-buttons.styl: -------------------------------------------------------------------------------- 1 | .hero-buttons-column 2 | width 90% 3 | 4 | @media (max-width 48em) 5 | width 100% 6 | max-width 100% 7 | 8 | @media (min-width 48em) 9 | max-width 1200px 10 | 11 | .hero-buttons 12 | // TODO - import colors from APPS/UI? move to DESIGN/UI? 13 | standardGutterSize = 24px 14 | cloudFlarePrimaryBrandOrange = #f38020 15 | lightGray = #f3f3f4 16 | 17 | display flex 18 | justify-content center 19 | flex-wrap wrap 20 | margin 0 21 | 22 | @media (max-width 420px) 23 | margin-left -1em 24 | margin-right -1em 25 | 26 | a.hero-button 27 | border-radius 3px 28 | text-align center 29 | padding standardGutterSize standardGutterSize (.875 * standardGutterSize) 30 | margin (standardGutterSize / 2) 31 | white-space nowrap 32 | background lightGray 33 | border 1px solid rgba(0, 0, 0, .1) 34 | border-bottom-color rgba(0, 0, 0, .2) 35 | text-decoration none 36 | font-weight 500 37 | color inherit 38 | 39 | &:hover 40 | background #fafafa 41 | color inherit 42 | 43 | &:active 44 | border-color rgba(0, 0, 0, .1) 45 | border-top-color rgba(0, 0, 0, .2) 46 | background darken(lightGray, 5%) 47 | 48 | svg 49 | display block 50 | width 160px 51 | height 90px 52 | margin -5px auto 10px 53 | fill currentColor 54 | 55 | &:not(:hover) svg 56 | fill #404041 57 | 58 | @media (max-width 48em) 59 | &.more::after 60 | display none 61 | -------------------------------------------------------------------------------- /src/styl/hero-links-list.styl: -------------------------------------------------------------------------------- 1 | ul.hero-links-list 2 | margin 0 auto 3 | padding 0 4 | list-style none 5 | 6 | ul.hero-links-list li 7 | padding 0 8 | 9 | ul.hero-links-list li > p 10 | margin 0 11 | 12 | ul.hero-links-list li:not(:last-child) 13 | margin-bottom .5em 14 | 15 | ul.hero-links-list.hero-events-link-list li:not(:last-child) 16 | margin-bottom 1em 17 | -------------------------------------------------------------------------------- /src/styl/hero.styl: -------------------------------------------------------------------------------- 1 | .hero 2 | text-align center 3 | 4 | .hero-header-icon 5 | height 6em 6 | width 6em 7 | max-width 100% 8 | margin 0 auto 9 | 10 | h5 11 | font-size 1.2em 12 | text-transform uppercase 13 | letter-spacing .09em 14 | text-indent .09em 15 | margin-top 0 16 | margin-bottom .6em 17 | font-weight 400 18 | 19 | @media (max-width 48em) 20 | font-size .9em 21 | 22 | h1 23 | line-height 1.2 24 | max-width 22em 25 | margin 0 auto .4em 26 | font-weight 700 27 | font-size 2.5em 28 | 29 | @media (max-width 48em) 30 | font-size 1.33em 31 | 32 | p 33 | width 28em 34 | max-width 100% 35 | margin-left auto 36 | margin-right auto 37 | font-size 1.3em 38 | line-height 1.5 39 | margin-bottom 1.5em 40 | 41 | @media (max-width 48em) 42 | font-size 1em 43 | 44 | &:last-child 45 | margin-bottom 0 46 | 47 | .hero-block 48 | width 28em 49 | font-size 1.125em 50 | max-width 100% 51 | margin-left auto 52 | margin-right auto 53 | 54 | @media (max-width 48em) 55 | font-size 1em 56 | 57 | p 58 | line-height 1.5 59 | margin-bottom 1em 60 | color #646567 61 | 62 | &:last-child 63 | margin-bottom 0 64 | -------------------------------------------------------------------------------- /src/styl/more.styl: -------------------------------------------------------------------------------- 1 | @css { 2 | @font-face { 3 | font-family: "cloudflare-icons"; 4 | font-style: normal; 5 | font-weight: normal; 6 | src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRk9UVE8AAAQQAAoAAAAABewAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAAARQAAAEw7LPuDUZGVE0AAAIIAAAAGgAAABx04jsnT1MvMgAAAiQAAABLAAAAYGFpBYRjbWFwAAACcAAAAEcAAAFOP7UHcGhlYWQAAAK4AAAALwAAADYGoUQqaGhlYQAAAugAAAAfAAAAJAe/AetobXR4AAADCAAAABAAAAAQCwoAAG1heHAAAAMYAAAABgAAAAYABFAAbmFtZQAAAyAAAADaAAABsE3GDFBwb3N0AAAD/AAAABMAAAAg/50AZnicTY69S8NQFMXvbV5aLI/4GXEIzSJYAh0dXPwXLNpgVymvH6AtpMHJsWglk06CuPXvEPyg9E9wt2SVt/huk2exWUo5HPgdONx7EBgDROTioiWCSqfR6/YBc4BwTKUcuQbtsTo3JGelIrBh2Y2iJfBCFM5GydB04GXdAdhwYLTpwJqDB1tgZjfysA0ueHAYdq5EP+i02mGl0RbXQa97KZpLXvm9OgMA73CI98AQ90+aN+onkgmXKCVpacjd2ST5+pvk5TywE056zgsW+XRrq281rX2m0zROYxXXTtU0zRS/n6lFVhl9mBY90sDW5/RUrZOnhV547JvWLw0Y+fp5/KbLJMgjUX1dlB92Zkd2xIv/gw+CN3icY2BgYGQAggsF9tdA9CWLvytgNABOBQe1AAB4nGNgZopgnMDAysDBasw6k4GBUQ5CM19nSGMSYgACVgYIaGBgYGJAAgFprikMDgzXFazY0v6lMexg/sIgDhRmhCtQAEJGABgTC0oAeJxjYGBgZoBgGQZGBhDwAPIYwXwWBh0gzQakGRmYGK4rWP3/D+RfV7D8//+/FpAFUsUC1s0E5LAxQA0YnoCZibAaAF3eCGYAeJxjYGRgYADisx3H/eL5bb4ycHMwgMAli78rEPT/l8wCzF+AXA4GJpAoAFzJDHkAeJxjYGRgYP7y/yXDDmYBBoZ/b4EkUAQFsAAAloYFrwAEAAAAAf0AAAH9AAADEAAAAABQAAAEAAB4nI2PvQ3CMBCFXyCJxI8oEaULJCpHTiRSMEBKSvoIWVGaWHKYgREYgzEYgDEYgJoXc0UKCizZ/u7euzsbwBI3RBhWhAU2whMkMMJT7HAVjul5CCfkl3CKRbSiM4pnzKxD1cATzLEVnuKIUjim5y6ckJ/CKfkNixoNTw+NFmc4dOgBWzfW6/bsOgajvGSqEF/C7UO9QoGM/1A4cP/u+tVK5nI6NSsMac92rrtUzjdWFZlRBzWazqjUudGFyWn857WnoPfUB1VxwvAunKzvW9epPDN/9fkAFF9DNgAAeJxjYGYAg/+zGNIYsAAALpkCAwA=) format("woff"); 7 | } 8 | } 9 | 10 | .more 11 | 12 | &::after 13 | font-family "cloudflare-icons" 14 | position relative 15 | display inline-block 16 | vertical-align baseline 17 | color inherit 18 | font-style normal 19 | font-weight inherit 20 | font-size 1.2em 21 | line-height 1 22 | height .9em 23 | text-decoration none 24 | content "\203A" // › 25 | padding-left .3em 26 | flex 0 0 27 | 28 | &.more-heavy::after 29 | font-weight 900 30 | -------------------------------------------------------------------------------- /src/styl/navigation.styl: -------------------------------------------------------------------------------- 1 | // TODO - Remove/handle a different way 2 | body 3 | padding-top 69px 4 | 5 | .navigation 6 | navigationColorStripeHeight = 3px 7 | 8 | position fixed 9 | z-index 10 10 | top 0 11 | left 0 12 | width 100% 13 | display flex 14 | align-items stretch 15 | background #fff 16 | box-shadow 0 1px rgba(0, 0, 0, .2) 17 | 18 | &::before 19 | content "" 20 | position absolute 21 | display block 22 | height navigationColorStripeHeight 23 | width 100% 24 | background #f38020 25 | 26 | > a 27 | display flex 28 | align-items center 29 | padding 1rem 30 | padding-top "calc(1rem + %s)" % navigationColorStripeHeight 31 | font-size 15px 32 | text-decoration none 33 | 34 | &:not(:hover) 35 | color inherit 36 | 37 | &:hover 38 | background rgba(243, 128, 32, .1) 39 | color #f38020 40 | 41 | @media (min-width 48em) 42 | box-shadow 0 1px #fbc99e // TODO 43 | 44 | &.active 45 | color #f38020 46 | 47 | &:first-child 48 | padding-left 2rem 49 | padding-top 1rem 50 | 51 | @media (max-width 47.938em) 52 | padding-left .5rem 53 | padding-right .5rem 54 | 55 | &:first-child 56 | padding-left 1rem 57 | 58 | &:not(:nth-child(1)):not(:nth-child(2)) 59 | display none 60 | 61 | .navigation-subbrand 62 | text-transform uppercase 63 | letter-spacing .01em 64 | font-weight 700 65 | 66 | .logo 67 | width 140px 68 | height 37px 69 | 70 | svg 71 | display block 72 | width 100% 73 | height 100% 74 | margin auto 75 | 76 | :target:before 77 | /* Fix scrolling to anchors */ 78 | content "" 79 | display block 80 | height 70px /* Fixed header height */ 81 | margin -70px 0 0 82 | -------------------------------------------------------------------------------- /src/styl/sponsorship.styl: -------------------------------------------------------------------------------- 1 | .sponsorship-grid 2 | standardGutterSize = 1.5em 3 | lightGray = #f6f6f6 4 | 5 | display flex 6 | justify-content center 7 | align-items flex-center 8 | flex-wrap wrap 9 | margin 0 10 | 11 | @media (max-width 420px) 12 | margin-left -1em 13 | margin-right -1em 14 | 15 | .sponsorship 16 | display flex 17 | flex-flow column 18 | width 16em 19 | text-align left 20 | margin (standardGutterSize / 2) 21 | background lightGray 22 | text-decoration none 23 | 24 | @media (max-width 48em) 25 | font-size .8em 26 | width 14em 27 | 28 | @media (max-width 420px) 29 | width auto 30 | font-size .95em 31 | 32 | .sponsorship-icon 33 | position relative 34 | 35 | &::after 36 | content "" 37 | display block 38 | height 0 39 | width 100% 40 | padding-bottom 66% 41 | 42 | &:hover 43 | opacity .8 44 | 45 | img 46 | position absolute 47 | top 0 48 | left 0 49 | right 0 50 | bottom 0 51 | height 6em 52 | width 6em 53 | margin auto 54 | max-width 100% 55 | max-height 100% 56 | 57 | .sponsorship-title 58 | display block 59 | padding 0 standardGutterSize 60 | 61 | > h3 62 | font-weight 500 63 | margin 0 64 | 65 | @media (max-width 48em) 66 | font-size 1.25em 67 | 68 | &:not(:hover) 69 | color inherit 70 | 71 | .sponsorship-description 72 | padding .5em standardGutterSize 73 | 74 | > *:last-child 75 | margin-bottom 0 76 | 77 | .sponsorship-links 78 | margin-top auto 79 | padding-bottom .75 * standardGutterSize 80 | 81 | > a 82 | padding .375em standardGutterSize 83 | display block 84 | overflow hidden 85 | text-overflow ellipsis 86 | white-space nowrap 87 | text-decoration none 88 | font-weight 500 89 | 90 | &:hover 91 | background #3279b3 92 | color #fff 93 | -------------------------------------------------------------------------------- /src/styl/stripe.styl: -------------------------------------------------------------------------------- 1 | .stripe 2 | display flex 3 | justify-content center 4 | padding-left 1rem 5 | padding-right 1rem 6 | 7 | &:not(.is-top-abutted) 8 | padding-top 4rem 9 | 10 | &:not(.is-bottom-abutted) 11 | padding-bottom 4rem 12 | 13 | @media (max-width 48em) 14 | &:not(.is-top-abutted) 15 | padding-top 2rem 16 | 17 | &:not(.is-bottom-abutted) 18 | padding-bottom 2rem 19 | 20 | .content 21 | max-width 100% 22 | 23 | > h2:first-child 24 | margin-top 0 25 | 26 | .stripe-figure 27 | width 80% // TODO 28 | 29 | .actions 30 | display flex 31 | justify-content center 32 | 33 | > *:not(:last-child) 34 | margin-right 1rem 35 | -------------------------------------------------------------------------------- /src/styl/tooltipped.styl: -------------------------------------------------------------------------------- 1 | .tooltipped 2 | position relative 3 | 4 | &::after 5 | position absolute 6 | z-index 1000000 7 | display none 8 | padding 5px 8px 9 | color #fff 10 | text-align center 11 | text-decoration none 12 | text-shadow none 13 | text-transform none 14 | letter-spacing normal 15 | word-wrap break-word 16 | white-space pre 17 | pointer-events none 18 | content attr(aria-label) 19 | background rgba(0, 0, 0, .8) 20 | border-radius 3px 21 | -webkit-font-smoothing subpixel-antialiased 22 | 23 | &::before 24 | position absolute 25 | z-index 1000001 26 | display none 27 | width 0 28 | height 0 29 | color rgba(0, 0, 0, .8) 30 | pointer-events none 31 | content "" 32 | border 5px solid transparent 33 | 34 | &:hover::before, &:hover::after, &:active::before, &:active::after, &:focus::before, &:focus::after 35 | display inline-block 36 | text-decoration none 37 | 38 | .tooltipped-s::after, .tooltipped-se::after, .tooltipped-sw::after 39 | top 100% 40 | right 50% 41 | margin-top 5px 42 | 43 | .tooltipped-s::before, .tooltipped-se::before, .tooltipped-sw::before 44 | top auto 45 | right 50% 46 | bottom -5px 47 | margin-right -5px 48 | border-bottom-color rgba(0, 0, 0, .8) 49 | 50 | .tooltipped-se::after 51 | right auto 52 | left 50% 53 | margin-left -15px 54 | 55 | .tooltipped-sw::after 56 | margin-right -15px 57 | 58 | .tooltipped-n::after, .tooltipped-ne::after, .tooltipped-nw::after 59 | right 50% 60 | bottom 100% 61 | margin-bottom 5px 62 | 63 | .tooltipped-n::before, .tooltipped-ne::before, .tooltipped-nw::before 64 | top -5px 65 | right 50% 66 | bottom auto 67 | margin-right -5px 68 | border-top-color rgba(0, 0, 0, .8) 69 | 70 | .tooltipped-ne::after 71 | right auto 72 | left 50% 73 | margin-left -15px 74 | 75 | .tooltipped-nw::after 76 | margin-right -15px 77 | 78 | .tooltipped-s::after, .tooltipped-n::after 79 | transform translateX(50%) 80 | 81 | .tooltipped-w::after 82 | right 100% 83 | bottom 50% 84 | margin-right 5px 85 | transform translateY(50%) 86 | 87 | .tooltipped-w::before 88 | top 50% 89 | bottom 50% 90 | left -5px 91 | margin-top -5px 92 | border-left-color rgba(0, 0, 0, .8) 93 | 94 | .tooltipped-e::after 95 | bottom 50% 96 | left 100% 97 | margin-left 5px 98 | transform translateY(50%) 99 | 100 | .tooltipped-e::before 101 | top 50% 102 | right -5px 103 | bottom 50% 104 | margin-top -5px 105 | border-right-color rgba(0, 0, 0, .8) 106 | -------------------------------------------------------------------------------- /start: -------------------------------------------------------------------------------- 1 | concurrently 'gulp watch' 'hugo server -D' 2 | -------------------------------------------------------------------------------- /static/css/body-typography.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #fff; 3 | color: #242425; 4 | font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif; 5 | font-style: normal; 6 | font-weight: 400; 7 | line-height: 1.5; 8 | letter-spacing: -0.005em; 9 | -ms-overflow-style: -ms-autohiding-scrollbar; 10 | -webkit-text-decoration-skip: ink; 11 | text-decoration-skip: ink; 12 | -webkit-font-smoothing: antialiased; 13 | } 14 | -------------------------------------------------------------------------------- /static/css/box-sizing-border-box.css: -------------------------------------------------------------------------------- 1 | *, 2 | *::before, 3 | *::after { 4 | box-sizing: inherit; 5 | } 6 | -------------------------------------------------------------------------------- /static/css/browser-mock.css: -------------------------------------------------------------------------------- 1 | .browser-mock { 2 | background: #bcbec0; 3 | border-radius: 4px; 4 | padding: 2rem 2px 2px 2px; 5 | } 6 | .browser-mock .screenshot { 7 | background: #fff; 8 | position: relative; 9 | } 10 | .browser-mock .screenshot img { 11 | display: block; 12 | position: absolute; 13 | height: 100%; 14 | width: 100%; 15 | } 16 | .browser-mock .screenshot .spacer { 17 | height: 0; 18 | padding-bottom: 50%; 19 | } 20 | -------------------------------------------------------------------------------- /static/css/button.css: -------------------------------------------------------------------------------- 1 | .button { 2 | -webkit-font-smoothing: subpixel-antialiased; 3 | -moz-osx-font-smoothing: auto; 4 | position: relative; 5 | text-rendering: optimizeLegibility; 6 | -webkit-tap-highlight-color: transparent; 7 | -webkit-user-select: none; 8 | -moz-user-select: none; 9 | -ms-user-select: none; 10 | user-select: none; 11 | -webkit-appearance: none; 12 | -moz-appearance: none; 13 | appearance: none; 14 | display: inline-block; 15 | cursor: pointer; 16 | color: inherit; 17 | background: transparent; 18 | border: 0; 19 | border-radius: 2px; 20 | font-size: inherit; 21 | padding: 0.6em 1em; 22 | line-height: 1.2; 23 | margin: 0; 24 | text-align: center; 25 | font-family: inherit; 26 | font-weight: 400; 27 | text-decoration: none; 28 | } 29 | .button.nowrap { 30 | white-space: nowrap; 31 | max-width: 100%; 32 | } 33 | .button:hover { 34 | text-decoration: none; 35 | } 36 | .button[disabled] { 37 | opacity: 0.7; 38 | cursor: default; 39 | box-shadow: none !important; 40 | } 41 | .button[disabled]:hover, 42 | .button[disabled]:focus, 43 | .button[disabled]:focus:hover { 44 | box-shadow: none !important; 45 | } 46 | .button:hover { 47 | box-shadow: inset 0 0 0 999em rgba(0,0,0,0.063); 48 | } 49 | .button:hover:active, 50 | .button.active { 51 | box-shadow: inset 0 0.125em 0.375em rgba(0,0,0,0.125), inset 0 0 0 999em rgba(0,0,0,0.125); 52 | } 53 | .button:focus { 54 | outline: none; 55 | } 56 | .button:focus::before { 57 | content: ""; 58 | position: absolute; 59 | z-index: 1; 60 | top: 2px; 61 | right: 2px; 62 | bottom: 2px; 63 | left: 2px; 64 | border-radius: 0.1em; 65 | box-shadow: inset 0 0 0 1px #fff; 66 | pointer-events: none; 67 | transition: opacity 0.3s ease-in-out; 68 | } 69 | .button:focus:active:before { 70 | opacity: 0; 71 | } 72 | .button.orange { 73 | background: #f38020; 74 | color: #fff; 75 | } 76 | .button.black { 77 | background: #000; 78 | color: #fff; 79 | } 80 | .button.black:active { 81 | background: darkerGray; 82 | } 83 | .button.white { 84 | background: #fff; 85 | color: #000; 86 | } 87 | .button.juicier { 88 | padding-top: 0.8em; 89 | padding-bottom: 0.8em; 90 | } 91 | .button.juiciest { 92 | padding-top: 1em; 93 | padding-bottom: 1em; 94 | } 95 | .button.large { 96 | font-size: 1.25em; 97 | } 98 | .button.full-width { 99 | width: 100%; 100 | } 101 | -------------------------------------------------------------------------------- /static/css/event-summary.css: -------------------------------------------------------------------------------- 1 | .event-summary-header { 2 | display: flex; 3 | font-size: 0.8em; 4 | } 5 | .event-summary-date { 6 | text-transform: uppercase; 7 | } 8 | .event-summary-location { 9 | padding-left: 1em; 10 | opacity: 0.5; 11 | } 12 | -------------------------------------------------------------------------------- /static/css/featherlight.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Featherlight - ultra slim jQuery lightbox 3 | * Version 1.2.3 - http://noelboss.github.io/featherlight/ 4 | * 5 | * Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com) 6 | * MIT Licensed. 7 | **/ 8 | @media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;min-width:30%;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0}.featherlight iframe{border:0}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:10px;margin-right:10px;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}} -------------------------------------------------------------------------------- /static/css/hero-buttons.css: -------------------------------------------------------------------------------- 1 | .hero-buttons-column { 2 | width: 90%; 3 | } 4 | @media (max-width: 48em) { 5 | .hero-buttons-column { 6 | width: 100%; 7 | max-width: 100%; 8 | } 9 | } 10 | @media (min-width: 48em) { 11 | .hero-buttons-column { 12 | max-width: 1200px; 13 | } 14 | } 15 | .hero-buttons { 16 | display: flex; 17 | justify-content: center; 18 | flex-wrap: wrap; 19 | margin: 0; 20 | } 21 | @media (max-width: 420px) { 22 | .hero-buttons { 23 | margin-left: -1em; 24 | margin-right: -1em; 25 | } 26 | } 27 | .hero-buttons a.hero-button { 28 | border-radius: 3px; 29 | text-align: center; 30 | padding: 24px 24px 21px; 31 | margin: 12px; 32 | white-space: nowrap; 33 | background: #f3f3f4; 34 | border: 1px solid rgba(0,0,0,0.1); 35 | border-bottom-color: rgba(0,0,0,0.2); 36 | text-decoration: none; 37 | font-weight: 500; 38 | color: inherit; 39 | } 40 | .hero-buttons a.hero-button:hover { 41 | background: #fafafa; 42 | color: inherit; 43 | } 44 | .hero-buttons a.hero-button:hover:active { 45 | border-color: rgba(0,0,0,0.1); 46 | border-top-color: rgba(0,0,0,0.2); 47 | background: #e6e6e8; 48 | } 49 | .hero-buttons a.hero-button svg { 50 | display: block; 51 | width: 160px; 52 | height: 90px; 53 | margin: -5px auto 10px; 54 | fill: currentColor; 55 | } 56 | .hero-buttons a.hero-button:not(:hover) svg { 57 | fill: #404041; 58 | } 59 | @media (max-width: 48em) { 60 | .hero-buttons a.hero-button.more::after { 61 | display: none; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /static/css/hero-links-list.css: -------------------------------------------------------------------------------- 1 | ul.hero-links-list { 2 | margin: 0 auto; 3 | padding: 0; 4 | list-style: none; 5 | } 6 | ul.hero-links-list li { 7 | padding: 0; 8 | } 9 | ul.hero-links-list li > p { 10 | margin: 0; 11 | } 12 | ul.hero-links-list li:not(:last-child) { 13 | margin-bottom: 0.5em; 14 | } 15 | ul.hero-links-list.hero-events-link-list li:not(:last-child) { 16 | margin-bottom: 1em; 17 | } 18 | -------------------------------------------------------------------------------- /static/css/hero.css: -------------------------------------------------------------------------------- 1 | .hero { 2 | text-align: center; 3 | } 4 | .hero .hero-header-icon { 5 | height: 6em; 6 | width: 6em; 7 | max-width: 100%; 8 | margin: 0 auto; 9 | } 10 | .hero h5 { 11 | font-size: 1.2em; 12 | text-transform: uppercase; 13 | letter-spacing: 0.09em; 14 | text-indent: 0.09em; 15 | margin-top: 0; 16 | margin-bottom: 0.6em; 17 | font-weight: 400; 18 | } 19 | @media (max-width: 48em) { 20 | .hero h5 { 21 | font-size: 0.9em; 22 | } 23 | } 24 | .hero h1 { 25 | line-height: 1.2; 26 | max-width: 22em; 27 | margin: 0 auto 0.4em; 28 | font-weight: 700; 29 | font-size: 2.5em; 30 | } 31 | @media (max-width: 48em) { 32 | .hero h1 { 33 | font-size: 1.33em; 34 | } 35 | } 36 | .hero p { 37 | width: 28em; 38 | max-width: 100%; 39 | margin-left: auto; 40 | margin-right: auto; 41 | font-size: 1.3em; 42 | line-height: 1.5; 43 | margin-bottom: 1.5em; 44 | } 45 | @media (max-width: 48em) { 46 | .hero p { 47 | font-size: 1em; 48 | } 49 | } 50 | .hero p:last-child { 51 | margin-bottom: 0; 52 | } 53 | .hero-block { 54 | width: 28em; 55 | font-size: 1.125em; 56 | max-width: 100%; 57 | margin-left: auto; 58 | margin-right: auto; 59 | } 60 | @media (max-width: 48em) { 61 | .hero-block { 62 | font-size: 1em; 63 | } 64 | } 65 | .hero-block p { 66 | line-height: 1.5; 67 | margin-bottom: 1em; 68 | color: #646567; 69 | } 70 | .hero-block p:last-child { 71 | margin-bottom: 0; 72 | } 73 | -------------------------------------------------------------------------------- /static/css/more.css: -------------------------------------------------------------------------------- 1 | 2 | @font-face { 3 | font-family: "cloudflare-icons"; 4 | font-style: normal; 5 | font-weight: normal; 6 | src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRk9UVE8AAAQQAAoAAAAABewAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAAARQAAAEw7LPuDUZGVE0AAAIIAAAAGgAAABx04jsnT1MvMgAAAiQAAABLAAAAYGFpBYRjbWFwAAACcAAAAEcAAAFOP7UHcGhlYWQAAAK4AAAALwAAADYGoUQqaGhlYQAAAugAAAAfAAAAJAe/AetobXR4AAADCAAAABAAAAAQCwoAAG1heHAAAAMYAAAABgAAAAYABFAAbmFtZQAAAyAAAADaAAABsE3GDFBwb3N0AAAD/AAAABMAAAAg/50AZnicTY69S8NQFMXvbV5aLI/4GXEIzSJYAh0dXPwXLNpgVymvH6AtpMHJsWglk06CuPXvEPyg9E9wt2SVt/huk2exWUo5HPgdONx7EBgDROTioiWCSqfR6/YBc4BwTKUcuQbtsTo3JGelIrBh2Y2iJfBCFM5GydB04GXdAdhwYLTpwJqDB1tgZjfysA0ueHAYdq5EP+i02mGl0RbXQa97KZpLXvm9OgMA73CI98AQ90+aN+onkgmXKCVpacjd2ST5+pvk5TywE056zgsW+XRrq281rX2m0zROYxXXTtU0zRS/n6lFVhl9mBY90sDW5/RUrZOnhV547JvWLw0Y+fp5/KbLJMgjUX1dlB92Zkd2xIv/gw+CN3icY2BgYGQAggsF9tdA9CWLvytgNABOBQe1AAB4nGNgZopgnMDAysDBasw6k4GBUQ5CM19nSGMSYgACVgYIaGBgYGJAAgFprikMDgzXFazY0v6lMexg/sIgDhRmhCtQAEJGABgTC0oAeJxjYGBgZoBgGQZGBhDwAPIYwXwWBh0gzQakGRmYGK4rWP3/D+RfV7D8//+/FpAFUsUC1s0E5LAxQA0YnoCZibAaAF3eCGYAeJxjYGRgYADisx3H/eL5bb4ycHMwgMAli78rEPT/l8wCzF+AXA4GJpAoAFzJDHkAeJxjYGRgYP7y/yXDDmYBBoZ/b4EkUAQFsAAAloYFrwAEAAAAAf0AAAH9AAADEAAAAABQAAAEAAB4nI2PvQ3CMBCFXyCJxI8oEaULJCpHTiRSMEBKSvoIWVGaWHKYgREYgzEYgDEYgJoXc0UKCizZ/u7euzsbwBI3RBhWhAU2whMkMMJT7HAVjul5CCfkl3CKRbSiM4pnzKxD1cATzLEVnuKIUjim5y6ckJ/CKfkNixoNTw+NFmc4dOgBWzfW6/bsOgajvGSqEF/C7UO9QoGM/1A4cP/u+tVK5nI6NSsMac92rrtUzjdWFZlRBzWazqjUudGFyWn857WnoPfUB1VxwvAunKzvW9epPDN/9fkAFF9DNgAAeJxjYGYAg/+zGNIYsAAALpkCAwA=) format("woff"); 7 | } 8 | .more::after { 9 | font-family: "cloudflare-icons"; 10 | position: relative; 11 | display: inline-block; 12 | vertical-align: baseline; 13 | color: inherit; 14 | font-style: normal; 15 | font-weight: inherit; 16 | font-size: 1.2em; 17 | line-height: 1; 18 | height: 0.9em; 19 | text-decoration: none; 20 | content: "\203A"; 21 | padding-left: 0.3em; 22 | flex: 0 0; 23 | } 24 | .more.more-heavy::after { 25 | font-weight: 900; 26 | } 27 | -------------------------------------------------------------------------------- /static/css/navigation.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 69px; 3 | } 4 | .navigation { 5 | position: fixed; 6 | z-index: 10; 7 | top: 0; 8 | left: 0; 9 | width: 100%; 10 | display: flex; 11 | align-items: stretch; 12 | background: #fff; 13 | box-shadow: 0 1px rgba(0,0,0,0.2); 14 | } 15 | .navigation::before { 16 | content: ""; 17 | position: absolute; 18 | display: block; 19 | height: 3px; 20 | width: 100%; 21 | background: #f38020; 22 | } 23 | .navigation > a { 24 | display: flex; 25 | align-items: center; 26 | padding: 1rem; 27 | padding-top: calc(1rem + 3px); 28 | font-size: 15px; 29 | text-decoration: none; 30 | } 31 | .navigation > a:not(:hover) { 32 | color: inherit; 33 | } 34 | .navigation > a:hover { 35 | background: rgba(243,128,32,0.1); 36 | color: #f38020; 37 | } 38 | @media (min-width: 48em) { 39 | .navigation > a:hover { 40 | box-shadow: 0 1px #fbc99e; 41 | } 42 | } 43 | .navigation > a.active { 44 | color: #f38020; 45 | } 46 | .navigation > a:first-child { 47 | padding-left: 2rem; 48 | padding-top: 1rem; 49 | } 50 | @media (max-width: 47.938em) { 51 | .navigation > a { 52 | padding-left: 0.5rem; 53 | padding-right: 0.5rem; 54 | } 55 | .navigation > a:first-child { 56 | padding-left: 1rem; 57 | } 58 | .navigation > a:not(:nth-child(1)):not(:nth-child(2)) { 59 | display: none; 60 | } 61 | } 62 | .navigation .navigation-subbrand { 63 | text-transform: uppercase; 64 | letter-spacing: 0.01em; 65 | font-weight: 700; 66 | } 67 | .navigation .logo { 68 | width: 140px; 69 | height: 37px; 70 | } 71 | .navigation .logo svg { 72 | display: block; 73 | width: 100%; 74 | height: 100%; 75 | margin: auto; 76 | } 77 | :target:before { 78 | /* Fix scrolling to anchors */ 79 | content: ""; 80 | display: block; 81 | height: 70px /* Fixed header height */; 82 | margin: -70px 0 0; 83 | } 84 | -------------------------------------------------------------------------------- /static/css/sponsorship.css: -------------------------------------------------------------------------------- 1 | .sponsorship-grid { 2 | display: flex; 3 | justify-content: center; 4 | align-items: flex-center; 5 | flex-wrap: wrap; 6 | margin: 0; 7 | } 8 | @media (max-width: 420px) { 9 | .sponsorship-grid { 10 | margin-left: -1em; 11 | margin-right: -1em; 12 | } 13 | } 14 | .sponsorship-grid .sponsorship { 15 | display: flex; 16 | flex-flow: column; 17 | width: 16em; 18 | text-align: left; 19 | margin: 0.75em; 20 | background: #f6f6f6; 21 | text-decoration: none; 22 | } 23 | @media (max-width: 48em) { 24 | .sponsorship-grid .sponsorship { 25 | font-size: 0.8em; 26 | width: 14em; 27 | } 28 | } 29 | @media (max-width: 420px) { 30 | .sponsorship-grid .sponsorship { 31 | width: auto; 32 | font-size: 0.95em; 33 | } 34 | } 35 | .sponsorship-grid .sponsorship .sponsorship-icon { 36 | position: relative; 37 | } 38 | .sponsorship-grid .sponsorship .sponsorship-icon::after { 39 | content: ""; 40 | display: block; 41 | height: 0; 42 | width: 100%; 43 | padding-bottom: 66%; 44 | } 45 | .sponsorship-grid .sponsorship .sponsorship-icon:hover { 46 | opacity: 0.8; 47 | } 48 | .sponsorship-grid .sponsorship .sponsorship-icon img { 49 | position: absolute; 50 | top: 0; 51 | left: 0; 52 | right: 0; 53 | bottom: 0; 54 | height: 6em; 55 | width: 6em; 56 | margin: auto; 57 | max-width: 100%; 58 | max-height: 100%; 59 | } 60 | .sponsorship-grid .sponsorship .sponsorship-title { 61 | display: block; 62 | padding: 0 1.5em; 63 | } 64 | .sponsorship-grid .sponsorship .sponsorship-title > h3 { 65 | font-weight: 500; 66 | margin: 0; 67 | } 68 | @media (max-width: 48em) { 69 | .sponsorship-grid .sponsorship .sponsorship-title > h3 { 70 | font-size: 1.25em; 71 | } 72 | } 73 | .sponsorship-grid .sponsorship .sponsorship-title:not(:hover) { 74 | color: inherit; 75 | } 76 | .sponsorship-grid .sponsorship .sponsorship-description { 77 | padding: 0.5em 1.5em; 78 | } 79 | .sponsorship-grid .sponsorship .sponsorship-description > *:last-child { 80 | margin-bottom: 0; 81 | } 82 | .sponsorship-grid .sponsorship .sponsorship-links { 83 | margin-top: auto; 84 | padding-bottom: 1.125em; 85 | } 86 | .sponsorship-grid .sponsorship .sponsorship-links > a { 87 | padding: 0.375em 1.5em; 88 | display: block; 89 | overflow: hidden; 90 | text-overflow: ellipsis; 91 | white-space: nowrap; 92 | text-decoration: none; 93 | font-weight: 500; 94 | } 95 | .sponsorship-grid .sponsorship .sponsorship-links > a:hover { 96 | background: #3279b3; 97 | color: #fff; 98 | } 99 | -------------------------------------------------------------------------------- /static/css/stripe.css: -------------------------------------------------------------------------------- 1 | .stripe { 2 | display: flex; 3 | justify-content: center; 4 | padding-left: 1rem; 5 | padding-right: 1rem; 6 | } 7 | .stripe:not(.is-top-abutted) { 8 | padding-top: 4rem; 9 | } 10 | .stripe:not(.is-bottom-abutted) { 11 | padding-bottom: 4rem; 12 | } 13 | @media (max-width: 48em) { 14 | .stripe:not(.is-top-abutted) { 15 | padding-top: 2rem; 16 | } 17 | .stripe:not(.is-bottom-abutted) { 18 | padding-bottom: 2rem; 19 | } 20 | } 21 | .stripe .content { 22 | max-width: 100%; 23 | } 24 | .stripe .content > h2:first-child { 25 | margin-top: 0; 26 | } 27 | .stripe .stripe-figure { 28 | width: 80%; 29 | } 30 | .stripe .actions { 31 | display: flex; 32 | justify-content: center; 33 | } 34 | .stripe .actions > *:not(:last-child) { 35 | margin-right: 1rem; 36 | } 37 | -------------------------------------------------------------------------------- /static/css/tooltipped.css: -------------------------------------------------------------------------------- 1 | .tooltipped { 2 | position: relative; 3 | } 4 | .tooltipped::after { 5 | position: absolute; 6 | z-index: 1000000; 7 | display: none; 8 | padding: 5px 8px; 9 | color: #fff; 10 | text-align: center; 11 | text-decoration: none; 12 | text-shadow: none; 13 | text-transform: none; 14 | letter-spacing: normal; 15 | word-wrap: break-word; 16 | white-space: pre; 17 | pointer-events: none; 18 | content: attr(aria-label); 19 | background: rgba(0,0,0,0.8); 20 | border-radius: 3px; 21 | -webkit-font-smoothing: subpixel-antialiased; 22 | } 23 | .tooltipped::before { 24 | position: absolute; 25 | z-index: 1000001; 26 | display: none; 27 | width: 0; 28 | height: 0; 29 | color: rgba(0,0,0,0.8); 30 | pointer-events: none; 31 | content: ""; 32 | border: 5px solid transparent; 33 | } 34 | .tooltipped:hover::before, 35 | .tooltipped:hover::after, 36 | .tooltipped:active::before, 37 | .tooltipped:active::after, 38 | .tooltipped:focus::before, 39 | .tooltipped:focus::after { 40 | display: inline-block; 41 | text-decoration: none; 42 | } 43 | .tooltipped-s::after, 44 | .tooltipped-se::after, 45 | .tooltipped-sw::after { 46 | top: 100%; 47 | right: 50%; 48 | margin-top: 5px; 49 | } 50 | .tooltipped-s::before, 51 | .tooltipped-se::before, 52 | .tooltipped-sw::before { 53 | top: auto; 54 | right: 50%; 55 | bottom: -5px; 56 | margin-right: -5px; 57 | border-bottom-color: rgba(0,0,0,0.8); 58 | } 59 | .tooltipped-se::after { 60 | right: auto; 61 | left: 50%; 62 | margin-left: -15px; 63 | } 64 | .tooltipped-sw::after { 65 | margin-right: -15px; 66 | } 67 | .tooltipped-n::after, 68 | .tooltipped-ne::after, 69 | .tooltipped-nw::after { 70 | right: 50%; 71 | bottom: 100%; 72 | margin-bottom: 5px; 73 | } 74 | .tooltipped-n::before, 75 | .tooltipped-ne::before, 76 | .tooltipped-nw::before { 77 | top: -5px; 78 | right: 50%; 79 | bottom: auto; 80 | margin-right: -5px; 81 | border-top-color: rgba(0,0,0,0.8); 82 | } 83 | .tooltipped-ne::after { 84 | right: auto; 85 | left: 50%; 86 | margin-left: -15px; 87 | } 88 | .tooltipped-nw::after { 89 | margin-right: -15px; 90 | } 91 | .tooltipped-s::after, 92 | .tooltipped-n::after { 93 | -webkit-transform: translateX(50%); 94 | transform: translateX(50%); 95 | } 96 | .tooltipped-w::after { 97 | right: 100%; 98 | bottom: 50%; 99 | margin-right: 5px; 100 | -webkit-transform: translateY(50%); 101 | transform: translateY(50%); 102 | } 103 | .tooltipped-w::before { 104 | top: 50%; 105 | bottom: 50%; 106 | left: -5px; 107 | margin-top: -5px; 108 | border-left-color: rgba(0,0,0,0.8); 109 | } 110 | .tooltipped-e::after { 111 | bottom: 50%; 112 | left: 100%; 113 | margin-left: 5px; 114 | -webkit-transform: translateY(50%); 115 | transform: translateY(50%); 116 | } 117 | .tooltipped-e::before { 118 | top: 50%; 119 | right: -5px; 120 | bottom: 50%; 121 | margin-top: -5px; 122 | border-right-color: rgba(0,0,0,0.8); 123 | } 124 | -------------------------------------------------------------------------------- /static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /static/fonts/Inconsolata.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Inconsolata.eot -------------------------------------------------------------------------------- /static/fonts/Inconsolata.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Inconsolata.ttf -------------------------------------------------------------------------------- /static/fonts/Inconsolata.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Inconsolata.woff -------------------------------------------------------------------------------- /static/fonts/Lato-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Lato-Bold.ttf -------------------------------------------------------------------------------- /static/fonts/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Lato-Regular.ttf -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-Normal-webfont.eot -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-Normal-webfont.ttf -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-Normal-webfont.woff -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-Normal-webfont.woff2 -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-UltraLight-webfont.eot -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-UltraLight-webfont.ttf -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-UltraLight-webfont.woff -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_200.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_200.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_200.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_200.woff2 -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_300.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_300.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_300.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_300.woff2 -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_500.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_500.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_500.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/Work_Sans_500.woff2 -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /static/images/clippy.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /static/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/images/favicon.png -------------------------------------------------------------------------------- /static/images/gopher-404.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/images/gopher-404.jpg -------------------------------------------------------------------------------- /static/js/html5shiv-printshiv.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=x.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=w[a[u]];return b||(b={},v++,a[u]=v,w[v]=b),b}function f(a,c,d){if(c||(c=b),p)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():t.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||s.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),p)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return x.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(x,b.frag)}function i(a){a||(a=b);var d=e(a);return!x.shivCSS||o||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||h(a,d),a}function j(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(k(b)));return g}function k(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(z+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function l(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+z+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function m(a){for(var b=a.length;b--;)a[b].removeNode()}function n(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,f,g=e(a),h=a.namespaces,i=a.parentWindow;return!A||a.printShived?a:("undefined"==typeof h[z]&&h.add(z),i.attachEvent("onbeforeprint",function(){b();for(var e,g,h,i=a.styleSheets,k=[],m=i.length,n=Array(m);m--;)n[m]=i[m];for(;h=n.pop();)if(!h.disabled&&y.test(h.media)){try{e=h.imports,g=e.length}catch(o){g=0}for(m=0;g>m;m++)n.push(e[m]);try{k.push(h.cssText)}catch(o){}}k=l(k.reverse().join("")),f=j(a),d=c(a,k)}),i.attachEvent("onafterprint",function(){m(f),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var o,p,q="3.7.0",r=a.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,t=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",v=0,w={};!function(){try{var a=b.createElement("a");a.innerHTML="",o="hidden"in a,p=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){o=!0,p=!0}}();var x={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:q,shivCSS:r.shivCSS!==!1,supportsUnknownElements:p,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=x,i(b);var y=/^$|\b(?:all|print)\b/,z="html5shiv",A=!p&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();x.type+=" print",x.shivPrint=n,n(b)}(this,document); -------------------------------------------------------------------------------- /static/js/hugo-learn.js: -------------------------------------------------------------------------------- 1 | // Get Parameters from some url 2 | var getUrlParameter = function getUrlParameter(sPageURL) { 3 | var url = sPageURL.split('?'); 4 | var obj = {}; 5 | if (url.length == 2) { 6 | var sURLVariables = url[1].split('&'), 7 | sParameterName, 8 | i; 9 | for (i = 0; i < sURLVariables.length; i++) { 10 | sParameterName = sURLVariables[i].split('='); 11 | obj[sParameterName[0]] = sParameterName[1]; 12 | } 13 | return obj; 14 | } else { 15 | return undefined; 16 | } 17 | }; 18 | 19 | // Execute actions on images generated from Markdown pages 20 | var images = $("div#body-inner img").not(".inline"); 21 | // Wrap image inside a featherlight (to get a full size view in a popup) 22 | images.wrap(function(){ 23 | var image =$(this); 24 | if (!image.parent("a").length) { 25 | return ""; 26 | } 27 | }); 28 | 29 | // Change styles, depending on parameters set to the image 30 | images.each(function(index){ 31 | var image = $(this) 32 | var o = getUrlParameter(image[0].src); 33 | if (typeof o !== "undefined") { 34 | var h = o["height"]; 35 | var w = o["width"]; 36 | var c = o["classes"]; 37 | image.css("width", function() { 38 | if (typeof w !== "undefined") { 39 | return w; 40 | } else { 41 | return "auto"; 42 | } 43 | }); 44 | image.css("height", function() { 45 | if (typeof h !== "undefined") { 46 | return h; 47 | } else { 48 | return "auto"; 49 | } 50 | }); 51 | if (typeof c !== "undefined") { 52 | var classes = c.split(','); 53 | for (i = 0; i < classes.length; i++) { 54 | image.addClass(classes[i]); 55 | } 56 | } 57 | } 58 | }); 59 | 60 | jQuery(document).ready(function() { 61 | // Add link button for every 62 | var text, clip = new Clipboard('.anchor'); 63 | $("h1~h2,h1~h3,h1~h4,h1~h5,h1~h6").append(function(index, html){ 64 | var element = $(this); 65 | var url = document.location.origin + document.location.pathname; 66 | var link = url + "#"+element[0].id; 67 | return " " + 68 | "" + 69 | "" 70 | ; 71 | }); 72 | 73 | $(".anchor").on('mouseleave', function(e) { 74 | $(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w'); 75 | }); 76 | 77 | clip.on('success', function(e) { 78 | e.clearSelection(); 79 | $(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s'); 80 | }); 81 | 82 | }); 83 | -------------------------------------------------------------------------------- /static/js/search.js: -------------------------------------------------------------------------------- 1 | var lunrIndex, pagesIndex; 2 | 3 | function endsWith(str, suffix) { 4 | return str.indexOf(suffix, str.length - suffix.length) !== -1; 5 | } 6 | 7 | // Initialize lunrjs using our generated index file 8 | function initLunr() { 9 | if (!endsWith(baseurl,"/")){ 10 | baseurl = baseurl+'/' 11 | }; 12 | 13 | // First retrieve the index file 14 | $.getJSON(baseurl +"index.json") 15 | .done(function(index) { 16 | pagesIndex = index; 17 | // Set up lunrjs by declaring the fields we use 18 | // Also provide their boost level for the ranking 19 | lunrIndex = new lunr.Index 20 | lunrIndex.ref("uri"); 21 | lunrIndex.field('title', { 22 | boost: 15 23 | }); 24 | lunrIndex.field('tags', { 25 | boost: 10 26 | }); 27 | lunrIndex.field("content", { 28 | boost: 5 29 | }); 30 | 31 | // Feed lunr with each file and let lunr actually index them 32 | pagesIndex.forEach(function(page) { 33 | lunrIndex.add(page); 34 | }); 35 | lunrIndex.pipeline.remove(lunrIndex.stemmer) 36 | }) 37 | .fail(function(jqxhr, textStatus, error) { 38 | var err = textStatus + ", " + error; 39 | console.error("Error getting Hugo index flie:", err); 40 | }); 41 | } 42 | 43 | /** 44 | * Trigger a search in lunr and transform the result 45 | * 46 | * @param {String} query 47 | * @return {Array} results 48 | */ 49 | function search(query) { 50 | // Find the item in our index corresponding to the lunr one to have more info 51 | return lunrIndex.search(query).map(function(result) { 52 | return pagesIndex.filter(function(page) { 53 | return page.uri === result.ref; 54 | })[0]; 55 | }); 56 | } 57 | 58 | // Let's get started 59 | initLunr(); 60 | $( document ).ready(function() { 61 | var horseyList = horsey($("#search-by").get(0), { 62 | suggestions: function (value, done) { 63 | var query = $("#search-by").val(); 64 | var results = search(query); 65 | done(results); 66 | }, 67 | filter: function (q, suggestion) { 68 | return true; 69 | }, 70 | set: function (value) { 71 | location.href=value.uri; 72 | }, 73 | render: function (li, suggestion) { 74 | var uri = suggestion.uri.substring(1,suggestion.uri.length); 75 | 76 | suggestion.href = baseurl + uri; 77 | 78 | var query = $("#search-by").val(); 79 | var numWords = 2; 80 | var text = suggestion.content.match("(?:\\s?(?:[\\w]+)\\s?){0,"+numWords+"}"+query+"(?:\\s?(?:[\\w]+)\\s?){0,"+numWords+"}"); 81 | suggestion.context = text; 82 | var image = '
    ' + '» ' + suggestion.title + '
    ' + (suggestion.context || '') +'
    '; 83 | li.innerHTML = image; 84 | }, 85 | limit: 10 86 | }); 87 | horseyList.refreshPosition(); 88 | }); 89 | -------------------------------------------------------------------------------- /static/none.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/none.html -------------------------------------------------------------------------------- /static/revealjs/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.iws 4 | *.eml 5 | out/ 6 | .DS_Store 7 | .svn 8 | log/*.log 9 | tmp/** 10 | node_modules/ 11 | .sass-cache 12 | css/reveal.min.css 13 | js/reveal.min.js -------------------------------------------------------------------------------- /static/revealjs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 4.1.1 4 | before_script: 5 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /static/revealjs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**. 4 | 5 | 6 | ### Personal Support 7 | If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js). 8 | 9 | 10 | ### Bug Reports 11 | When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested. 12 | 13 | 14 | ### Pull Requests 15 | - Should follow the coding style of the file you work in, most importantly: 16 | - Tabs to indent 17 | - Single-quoted strings 18 | - Should be made towards the **dev branch** 19 | - Should be submitted from a feature/topic branch (not your master) 20 | 21 | 22 | ### Plugins 23 | Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines 24 | -------------------------------------------------------------------------------- /static/revealjs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2016 Hakim El Hattab, http://hakim.se, and reveal.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /static/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 | -webkit-perspective: none; 76 | -moz-perspective: none; 77 | -ms-perspective: none; 78 | perspective: none; 79 | 80 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */ 81 | -moz-perspective-origin: 50% 50%; 82 | -ms-perspective-origin: 50% 50%; 83 | perspective-origin: 50% 50%; 84 | } 85 | 86 | .reveal .slides .pdf-page { 87 | position: relative; 88 | overflow: hidden; 89 | z-index: 1; 90 | } 91 | 92 | .reveal .slides section { 93 | page-break-after: always !important; 94 | 95 | visibility: visible !important; 96 | display: block !important; 97 | position: relative !important; 98 | 99 | margin: 0 !important; 100 | padding: 0 !important; 101 | box-sizing: border-box !important; 102 | min-height: 1px; 103 | 104 | opacity: 1 !important; 105 | 106 | -webkit-transform-style: flat !important; 107 | -moz-transform-style: flat !important; 108 | -ms-transform-style: flat !important; 109 | transform-style: flat !important; 110 | 111 | -webkit-transform: none !important; 112 | -moz-transform: none !important; 113 | -ms-transform: none !important; 114 | transform: none !important; 115 | } 116 | 117 | .reveal section.stack { 118 | margin: 0 !important; 119 | padding: 0 !important; 120 | page-break-after: avoid !important; 121 | height: auto !important; 122 | min-height: auto !important; 123 | } 124 | 125 | .reveal img { 126 | box-shadow: none; 127 | } 128 | 129 | .reveal .roll { 130 | overflow: visible; 131 | line-height: 1em; 132 | } 133 | 134 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */ 135 | .reveal .slide-background { 136 | display: block !important; 137 | position: absolute; 138 | top: 0; 139 | left: 0; 140 | width: 100%; 141 | height: 100%; 142 | z-index: auto !important; 143 | } 144 | 145 | /* Display slide speaker notes when 'showNotes' is enabled */ 146 | .reveal .speaker-notes-pdf { 147 | display: block; 148 | width: 100%; 149 | max-height: none; 150 | top: auto; 151 | right: auto; 152 | bottom: auto; 153 | left: auto; 154 | z-index: 100; 155 | } 156 | 157 | /* Layout option which makes notes appear on a separate page */ 158 | .reveal .speaker-notes-pdf[data-layout="separate-page"] { 159 | position: relative; 160 | color: inherit; 161 | background-color: transparent; 162 | padding: 20px; 163 | page-break-after: always; 164 | } 165 | 166 | /* Display slide numbers when 'slideNumber' is enabled */ 167 | .reveal .slide-number-pdf { 168 | display: block; 169 | position: absolute; 170 | font-size: 14px; 171 | } 172 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/README.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup 4 | 5 | ## Creating a Theme 6 | 7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`. 8 | 9 | Each theme file does four things in the following order: 10 | 11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)** 12 | Shared utility functions. 13 | 14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)** 15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3. 16 | 17 | 3. **Override** 18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please. 19 | 20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** 21 | The template theme file which will generate final CSS output based on the currently defined variables. 22 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/beige.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Beige theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(../../lib/font/league-gothic/league-gothic.css); 17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainColor: #333; 22 | $headingColor: #333; 23 | $headingTextShadow: none; 24 | $backgroundColor: #f7f3de; 25 | $linkColor: #8b743d; 26 | $linkColorHover: lighten( $linkColor, 20% ); 27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99); 28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 29 | 30 | // Background generator 31 | @mixin bodyBackground() { 32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) ); 33 | } 34 | 35 | 36 | 37 | // Theme template ------------------------------ 38 | @import "../template/theme"; 39 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/black.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. This is the opposite of the 'white' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #222; 20 | 21 | $mainColor: #fff; 22 | $headingColor: #fff; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #42affa; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-light-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #222; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/blood.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Blood theme for reveal.js 3 | * Author: Walther http://github.com/Walther 4 | * 5 | * Designed to be used with highlight.js theme 6 | * "monokai_sublime.css" available from 7 | * https://github.com/isagalaev/highlight.js/ 8 | * 9 | * For other themes, change $codeBackground accordingly. 10 | * 11 | */ 12 | 13 | // Default mixins and settings ----------------- 14 | @import "../template/mixins"; 15 | @import "../template/settings"; 16 | // --------------------------------------------- 17 | 18 | // Include theme-specific fonts 19 | 20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); 21 | 22 | // Colors used in the theme 23 | $blood: #a23; 24 | $coal: #222; 25 | $codeBackground: #23241f; 26 | 27 | $backgroundColor: $coal; 28 | 29 | // Main text 30 | $mainFont: Ubuntu, 'sans-serif'; 31 | $mainColor: #eee; 32 | 33 | // Headings 34 | $headingFont: Ubuntu, 'sans-serif'; 35 | $headingTextShadow: 2px 2px 2px $coal; 36 | 37 | // h1 shadow, borrowed humbly from 38 | // (c) Default theme by Hakim El Hattab 39 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 40 | 41 | // Links 42 | $linkColor: $blood; 43 | $linkColorHover: lighten( $linkColor, 20% ); 44 | 45 | // Text selection 46 | $selectionBackgroundColor: $blood; 47 | $selectionColor: #fff; 48 | 49 | 50 | // Theme template ------------------------------ 51 | @import "../template/theme"; 52 | // --------------------------------------------- 53 | 54 | // some overrides after theme template import 55 | 56 | .reveal p { 57 | font-weight: 300; 58 | text-shadow: 1px 1px $coal; 59 | } 60 | 61 | .reveal h1, 62 | .reveal h2, 63 | .reveal h3, 64 | .reveal h4, 65 | .reveal h5, 66 | .reveal h6 { 67 | font-weight: 700; 68 | } 69 | 70 | .reveal p code { 71 | background-color: $codeBackground; 72 | display: inline-block; 73 | border-radius: 7px; 74 | } 75 | 76 | .reveal small code { 77 | vertical-align: baseline; 78 | } -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/league.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * League theme for reveal.js. 3 | * 4 | * This was the default theme pre-3.0.0. 5 | * 6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(../../lib/font/league-gothic/league-gothic.css); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | // Override theme settings (see ../template/settings.scss) 22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2); 23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 24 | 25 | // Background generator 26 | @mixin bodyBackground() { 27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) ); 28 | } 29 | 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/moon.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Dark theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | /** 19 | * Solarized colors by Ethan Schoonover 20 | */ 21 | html * { 22 | color-profile: sRGB; 23 | rendering-intent: auto; 24 | } 25 | 26 | // Solarized colors 27 | $base03: #002b36; 28 | $base02: #073642; 29 | $base01: #586e75; 30 | $base00: #657b83; 31 | $base0: #839496; 32 | $base1: #93a1a1; 33 | $base2: #eee8d5; 34 | $base3: #fdf6e3; 35 | $yellow: #b58900; 36 | $orange: #cb4b16; 37 | $red: #dc322f; 38 | $magenta: #d33682; 39 | $violet: #6c71c4; 40 | $blue: #268bd2; 41 | $cyan: #2aa198; 42 | $green: #859900; 43 | 44 | // Override theme settings (see ../template/settings.scss) 45 | $mainColor: $base1; 46 | $headingColor: $base2; 47 | $headingTextShadow: none; 48 | $backgroundColor: $base03; 49 | $linkColor: $blue; 50 | $linkColorHover: lighten( $linkColor, 20% ); 51 | $selectionBackgroundColor: $magenta; 52 | 53 | 54 | 55 | // Theme template ------------------------------ 56 | @import "../template/theme"; 57 | // --------------------------------------------- 58 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/night.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #111; 20 | 21 | $mainFont: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",Arial, sans-serif; 22 | $linkColor: #e7ad52; 23 | $linkColorHover: lighten( $linkColor, 20% ); 24 | $headingFont: 'Montserrat', Impact, sans-serif; 25 | $headingTextShadow: none; 26 | $headingLetterSpacing: -0.03em; 27 | $headingTextTransform: none; 28 | $selectionBackgroundColor: #e7ad52; 29 | 30 | 31 | // Theme template ------------------------------ 32 | @import "../template/theme"; 33 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/serif.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is brown. 4 | * 5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. 6 | */ 7 | 8 | 9 | // Default mixins and settings ----------------- 10 | @import "../template/mixins"; 11 | @import "../template/settings"; 12 | // --------------------------------------------- 13 | 14 | 15 | 16 | // Override theme settings (see ../template/settings.scss) 17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 18 | $mainColor: #000; 19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 20 | $headingColor: #383D3D; 21 | $headingTextShadow: none; 22 | $headingTextTransform: none; 23 | $backgroundColor: #F0F1EB; 24 | $linkColor: #51483D; 25 | $linkColorHover: lighten( $linkColor, 20% ); 26 | $selectionBackgroundColor: #26351C; 27 | 28 | .reveal a { 29 | line-height: 1.3em; 30 | } 31 | 32 | 33 | // Theme template ------------------------------ 34 | @import "../template/theme"; 35 | // --------------------------------------------- 36 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/simple.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is darkblue. 4 | * 5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. 6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | 22 | // Override theme settings (see ../template/settings.scss) 23 | $mainFont: 'Lato', sans-serif; 24 | $mainColor: #000; 25 | $headingFont: 'News Cycle', Impact, sans-serif; 26 | $headingColor: #000; 27 | $headingTextShadow: none; 28 | $headingTextTransform: none; 29 | $backgroundColor: #fff; 30 | $linkColor: #00008B; 31 | $linkColorHover: lighten( $linkColor, 20% ); 32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99); 33 | 34 | section.has-dark-background { 35 | &, h1, h2, h3, h4, h5, h6 { 36 | color: #fff; 37 | } 38 | } 39 | 40 | 41 | // Theme template ------------------------------ 42 | @import "../template/theme"; 43 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/sky.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Sky theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic); 17 | 18 | 19 | // Override theme settings (see ../template/settings.scss) 20 | $mainFont: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",Arial, sans-serif; 21 | $mainColor: #333; 22 | $headingFont: 'Quicksand', sans-serif; 23 | $headingColor: #333; 24 | $headingLetterSpacing: -0.08em; 25 | $headingTextShadow: none; 26 | $backgroundColor: #f7fbfc; 27 | $linkColor: #3b759e; 28 | $linkColorHover: lighten( $linkColor, 20% ); 29 | $selectionBackgroundColor: #134674; 30 | 31 | // Fix links so they are not cut off 32 | .reveal a { 33 | line-height: 1.3em; 34 | } 35 | 36 | // Background generator 37 | @mixin bodyBackground() { 38 | @include radial-gradient( #add9e4, #f7fbfc ); 39 | } 40 | 41 | 42 | 43 | // Theme template ------------------------------ 44 | @import "../template/theme"; 45 | // --------------------------------------------- 46 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/solarized.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Light theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | 19 | /** 20 | * Solarized colors by Ethan Schoonover 21 | */ 22 | html * { 23 | color-profile: sRGB; 24 | rendering-intent: auto; 25 | } 26 | 27 | // Solarized colors 28 | $base03: #002b36; 29 | $base02: #073642; 30 | $base01: #586e75; 31 | $base00: #657b83; 32 | $base0: #839496; 33 | $base1: #93a1a1; 34 | $base2: #eee8d5; 35 | $base3: #fdf6e3; 36 | $yellow: #b58900; 37 | $orange: #cb4b16; 38 | $red: #dc322f; 39 | $magenta: #d33682; 40 | $violet: #6c71c4; 41 | $blue: #268bd2; 42 | $cyan: #2aa198; 43 | $green: #859900; 44 | 45 | // Override theme settings (see ../template/settings.scss) 46 | $mainColor: $base00; 47 | $headingColor: $base01; 48 | $headingTextShadow: none; 49 | $backgroundColor: $base3; 50 | $linkColor: $blue; 51 | $linkColorHover: lighten( $linkColor, 20% ); 52 | $selectionBackgroundColor: $magenta; 53 | 54 | // Background generator 55 | // @mixin bodyBackground() { 56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) ); 57 | // } 58 | 59 | 60 | 61 | // Theme template ------------------------------ 62 | @import "../template/theme"; 63 | // --------------------------------------------- 64 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/white.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * White theme for reveal.js. This is the opposite of the 'black' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #fff; 20 | 21 | $mainColor: #222; 22 | $headingColor: #222; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #2a76dd; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-dark-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #fff; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/template/mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin vertical-gradient( $top, $bottom ) { 2 | background: $top; 3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); 4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); 5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); 6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% ); 7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); 8 | background: linear-gradient( top, $top 0%, $bottom 100% ); 9 | } 10 | 11 | @mixin horizontal-gradient( $top, $bottom ) { 12 | background: $top; 13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); 14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); 15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); 16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% ); 17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); 18 | background: linear-gradient( left, $top 0%, $bottom 100% ); 19 | } 20 | 21 | @mixin radial-gradient( $outer, $inner, $type: circle ) { 22 | background: $outer; 23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); 25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 29 | } -------------------------------------------------------------------------------- /static/revealjs/css/theme/template/settings.scss: -------------------------------------------------------------------------------- 1 | // Base settings for all themes that can optionally be 2 | // overridden by the super-theme 3 | 4 | // Background of the presentation 5 | $backgroundColor: #2b2b2b; 6 | 7 | // Primary/body text 8 | $mainFont: 'Lato', sans-serif; 9 | $mainFontSize: 40px; 10 | $mainColor: #eee; 11 | 12 | // Vertical spacing between blocks of text 13 | $blockMargin: 20px; 14 | 15 | // Headings 16 | $headingMargin: 0 0 $blockMargin 0; 17 | $headingFont: 'League Gothic', Impact, sans-serif; 18 | $headingColor: #eee; 19 | $headingLineHeight: 1.2; 20 | $headingLetterSpacing: normal; 21 | $headingTextTransform: uppercase; 22 | $headingTextShadow: none; 23 | $headingFontWeight: normal; 24 | $heading1TextShadow: $headingTextShadow; 25 | 26 | $heading1Size: 3.77em; 27 | $heading2Size: 2.11em; 28 | $heading3Size: 1.55em; 29 | $heading4Size: 1.00em; 30 | 31 | // Links and actions 32 | $linkColor: #13DAEC; 33 | $linkColorHover: lighten( $linkColor, 20% ); 34 | 35 | // Text selection 36 | $selectionBackgroundColor: #FF5E99; 37 | $selectionColor: #fff; 38 | 39 | // Generates the presentation background, can be overridden 40 | // to return a background image or gradient 41 | @mixin bodyBackground() { 42 | background: $backgroundColor; 43 | } -------------------------------------------------------------------------------- /static/revealjs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | 24 | 25 |
    26 |
    27 |
    Slide 1
    28 |
    Slide 2
    29 |
    30 |
    31 | 32 | 33 | 34 | 35 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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 | } -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /static/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. -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /static/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 | } -------------------------------------------------------------------------------- /static/revealjs/lib/js/classList.js: -------------------------------------------------------------------------------- 1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ 2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Markdown Demo 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 |
    20 | 21 | 22 |
    23 | 24 | 25 |
    26 | 36 |
    37 | 38 | 39 |
    40 | 54 |
    55 | 56 | 57 |
    58 | 69 |
    70 | 71 | 72 |
    73 | 77 |
    78 | 79 | 80 |
    81 | 86 |
    87 | 88 | 89 |
    90 | 100 |
    101 | 102 |
    103 |
    104 | 105 | 106 | 107 | 108 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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 | options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'; 11 | options.config = options.config || 'TeX-AMS_HTML-full'; 12 | 13 | loadScript( options.mathjax + '?config=' + options.config, function() { 14 | 15 | MathJax.Hub.Config({ 16 | messageStyle: 'none', 17 | tex2jax: { 18 | inlineMath: [['$','$'],['\\(','\\)']] , 19 | skipTags: ['script','noscript','style','textarea','pre'] 20 | }, 21 | skipStartupTypeset: true 22 | }); 23 | 24 | // Typeset followed by an immediate reveal.js layout since 25 | // the typesetting process could affect slide height 26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] ); 27 | MathJax.Hub.Queue( Reveal.layout ); 28 | 29 | // Reprocess equations in slides when they turn visible 30 | Reveal.addEventListener( 'slidechanged', function( event ) { 31 | 32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 33 | 34 | } ); 35 | 36 | } ); 37 | 38 | function loadScript( url, callback ) { 39 | 40 | var head = document.querySelector( 'head' ); 41 | var script = document.createElement( 'script' ); 42 | script.type = 'text/javascript'; 43 | script.src = url; 44 | 45 | // Wrapper for callback to make sure it only fires once 46 | var finish = function() { 47 | if( typeof callback === 'function' ) { 48 | callback.call(); 49 | callback = null; 50 | } 51 | } 52 | 53 | script.onload = finish; 54 | 55 | // IE 56 | script.onreadystatechange = function() { 57 | if ( this.readyState === 'loaded' ) { 58 | finish(); 59 | } 60 | } 61 | 62 | // Normal browsers 63 | head.appendChild( script ); 64 | 65 | } 66 | 67 | })(); 68 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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 ); -------------------------------------------------------------------------------- /static/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 | // Monitor events that trigger a change in state 23 | Reveal.addEventListener( 'slidechanged', post ); 24 | Reveal.addEventListener( 'fragmentshown', post ); 25 | Reveal.addEventListener( 'fragmenthidden', post ); 26 | Reveal.addEventListener( 'overviewhidden', post ); 27 | Reveal.addEventListener( 'overviewshown', post ); 28 | Reveal.addEventListener( 'paused', post ); 29 | Reveal.addEventListener( 'resumed', post ); 30 | 31 | }()); -------------------------------------------------------------------------------- /static/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://lab.hakim.se/reveal-js", 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 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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 | -------------------------------------------------------------------------------- /static/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://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf 6 | * 7 | * @author Manuel Bieh (https://github.com/manuelbieh) 8 | * @author Hakim El Hattab (https://github.com/hakimel) 9 | */ 10 | 11 | // html2pdf.js 12 | var system = require( 'system' ); 13 | 14 | var probePage = new WebPage(); 15 | var printPage = new WebPage(); 16 | 17 | var inputFile = system.args[1] || 'index.html?print-pdf'; 18 | var outputFile = system.args[2] || 'slides.pdf'; 19 | 20 | if( outputFile.match( /\.pdf$/gi ) === null ) { 21 | outputFile += '.pdf'; 22 | } 23 | 24 | console.log( 'Export PDF: Reading reveal.js config [1/3]' ); 25 | 26 | probePage.open( inputFile, function( status ) { 27 | 28 | console.log( 'Export PDF: Preparing print layout [2/3]' ); 29 | 30 | var config = probePage.evaluate( function() { 31 | return Reveal.getConfig(); 32 | } ); 33 | 34 | printPage.paperSize = { 35 | width: config.width * ( 1 + config.margin ), 36 | height: config.height * ( 1 + config.margin ), 37 | border: 0 38 | }; 39 | 40 | printPage.open( inputFile, function( status ) { 41 | window.setTimeout( function() { 42 | console.log( 'Export PDF: Writing file [3/3]' ); 43 | printPage.render( outputFile ); 44 | console.log( 'Export PDF: Finished successfully!' ); 45 | phantom.exit(); 46 | }, 1000 ); 47 | } ); 48 | 49 | } ); 50 | 51 | 52 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/assets/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/test/examples/assets/image1.png -------------------------------------------------------------------------------- /static/revealjs/test/examples/assets/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/hugo-cloudflare-docs/cc6732790877e6c785cf477965d0b8f8ad7443cf/static/revealjs/test/examples/assets/image2.png -------------------------------------------------------------------------------- /static/revealjs/test/examples/barebones.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Barebones 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 |
    17 | 18 |
    19 |

    Barebones Presentation

    20 |

    This example contains the bare minimum includes and markup required to run a reveal.js presentation.

    21 |
    22 | 23 |
    24 |

    No Theme

    25 |

    There's no theme included, so it will fall back on browser defaults.

    26 |
    27 | 28 |
    29 | 30 |
    31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/embedded-media.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Embedded Media 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 |
    20 | 21 |
    22 |

    Embedded Media Test

    23 |
    24 | 25 |
    26 | 27 |
    28 | 29 |
    30 |

    Empty Slide

    31 |
    32 | 33 |
    34 | 35 |
    36 | 37 | 38 | 39 | 40 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/slide-backgrounds.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Backgrounds 8 | 9 | 10 | 11 | 12 | 13 | 23 | 24 | 25 | 26 | 27 |
    28 | 29 |
    30 | 31 |
    32 |

    data-background: #00ffff

    33 |
    34 | 35 |
    36 |

    data-background: #bb00bb

    37 |
    38 | 39 |
    40 |

    data-background: lightblue

    41 |
    42 | 43 |
    44 |
    45 |

    data-background: #ff0000

    46 |
    47 |
    48 |

    data-background: rgba(0, 0, 0, 0.2)

    49 |
    50 |
    51 |

    data-background: salmon

    52 |
    53 |
    54 | 55 |
    56 |
    57 |

    Background applied to stack

    58 |
    59 |
    60 |

    Background applied to stack

    61 |
    62 |
    63 |

    Background applied to slide inside of stack

    64 |
    65 |
    66 | 67 |
    68 |

    Background image

    69 |
    70 | 71 |
    72 |
    73 |

    Background image

    74 |
    75 |
    76 |

    Background image

    77 |
    78 |
    79 | 80 |
    81 |

    Background image

    82 |
    data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"
    83 |
    84 | 85 |
    86 |

    Same background twice (1/2)

    87 |
    88 |
    89 |

    Same background twice (2/2)

    90 |
    91 | 92 |
    93 |

    Video background

    94 |
    95 | 96 |
    97 |

    Iframe background

    98 |
    99 | 100 |
    101 |
    102 |

    Same background twice vertical (1/2)

    103 |
    104 |
    105 |

    Same background twice vertical (2/2)

    106 |
    107 |
    108 | 109 |
    110 |

    Same background from horizontal to vertical (1/3)

    111 |
    112 |
    113 |
    114 |

    Same background from horizontal to vertical (2/3)

    115 |
    116 |
    117 |

    Same background from horizontal to vertical (3/3)

    118 |
    119 |
    120 | 121 |
    122 | 123 |
    124 | 125 | 126 | 127 | 128 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/slide-transitions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Transitions 8 | 9 | 10 | 11 | 21 | 22 | 23 | 24 | 25 |
    26 | 27 |
    28 | 29 |
    30 |

    Default

    31 |
    32 | 33 |
    34 |

    Default

    35 |
    36 | 37 |
    38 |

    data-transition: zoom

    39 |
    40 | 41 |
    42 |

    data-transition: zoom-in fade-out

    43 |
    44 | 45 |
    46 |

    Default

    47 |
    48 | 49 |
    50 |

    data-transition: convex

    51 |
    52 | 53 |
    54 |

    data-transition: convex-in concave-out

    55 |
    56 | 57 |
    58 |
    59 |

    Default

    60 |
    61 |
    62 |

    data-transition: concave

    63 |
    64 |
    65 |

    data-transition: convex-in fade-out

    66 |
    67 |
    68 |

    Default

    69 |
    70 |
    71 | 72 |
    73 |

    data-transition: none

    74 |
    75 | 76 |
    77 |

    Default

    78 |
    79 | 80 |
    81 | 82 |
    83 | 84 | 85 | 86 | 87 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /static/revealjs/test/simple.md: -------------------------------------------------------------------------------- 1 | ## Slide 1.1 2 | 3 | ```js 4 | var a = 1; 5 | ``` 6 | 7 | 8 | ## Slide 1.2 9 | 10 | 11 | 12 | ## Slide 2 13 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-element-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Element Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-element-attributes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' ); 9 | }); 10 | 11 | 12 | test( 'Attributes on element header in vertical slides', function() { 13 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' ); 14 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' ); 15 | }); 16 | 17 | test( 'Attributes on element paragraphs in vertical slides', function() { 18 | strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' ); 19 | }); 20 | 21 | test( 'Attributes on element list items in vertical slides', function() { 22 | strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' ); 23 | }); 24 | 25 | test( 'Attributes on element paragraphs in horizontal slides', function() { 26 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' ); 27 | }); 28 | test( 'Attributes on element list items in horizontal slides', function() { 29 | strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' ); 30 | }); 31 | test( 'Attributes on element list items in horizontal slides', function() { 32 | strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' ); 33 | }); 34 | 35 | test( 'Attributes on elements in vertical slides with default element attribute separator', function() { 36 | strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' ); 37 | }); 38 | 39 | test( 'Attributes on elements in single slides with default element attribute separator', function() { 40 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' ); 41 | }); 42 | 43 | } ); 44 | 45 | Reveal.initialize(); 46 | 47 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-external.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-external.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | test( 'Horizontal separator', function() { 12 | strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); 13 | }); 14 | 15 | test( 'Language highlighter', function() { 16 | strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); 17 | strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); 18 | }); 19 | 20 | 21 | } ); 22 | 23 | Reveal.initialize(); 24 | 25 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Options 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-options.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | test( 'Options are set', function() { 6 | strictEqual( marked.defaults.smartypants, true ); 7 | }); 8 | 9 | test( 'Smart quotes are activated', function() { 10 | var text = document.querySelector( '.reveal .slides>section>p' ).textContent; 11 | 12 | strictEqual( /['"]/.test( text ), false ); 13 | strictEqual( /[“”‘’]/.test( text ), true ); 14 | }); 15 | 16 | } ); 17 | 18 | Reveal.initialize({ 19 | dependencies: [ 20 | { src: '../plugin/markdown/marked.js' }, 21 | { src: '../plugin/markdown/markdown.js' }, 22 | ], 23 | markdown: { 24 | smartypants: true 25 | } 26 | }); 27 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-slide-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-slide-attributes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 6, 'found six vertical slides' ); 9 | }); 10 | 11 | test( 'Id on slide', function() { 12 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section#slide2' ).length, 1, 'found one slide with id slide2' ); 13 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section a[href="#/slide2"]' ).length, 1, 'found one slide with a link to slide2' ); 14 | }); 15 | 16 | test( 'data-background attributes', function() { 17 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A0C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 18 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#ff0000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 19 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C6916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 20 | }); 21 | 22 | test( 'data-transition attributes', function() { 23 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="zoom"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 24 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="fade"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 25 | strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="zoom"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 26 | }); 27 | 28 | test( 'data-background attributes with default separator', function() { 29 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A7C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 30 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#f70000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 31 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C7916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 32 | }); 33 | 34 | test( 'data-transition attributes with default separator', function() { 35 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="concave"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 36 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 37 | strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 38 | }); 39 | 40 | test( 'data-transition attributes with inline content', function() { 41 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' ); 42 | }); 43 | 44 | } ); 45 | 46 | Reveal.initialize(); 47 | 48 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize(); 15 | 16 | -------------------------------------------------------------------------------- /static/revealjs/test/test-pdf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test PDF exports 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    17 |
    18 | 19 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /static/revealjs/test/test-pdf.js: -------------------------------------------------------------------------------- 1 | 2 | Reveal.addEventListener( 'ready', function() { 3 | 4 | // Only one test for now, we're mainly ensuring that there 5 | // are no execution errors when running PDF mode 6 | 7 | test( 'Reveal.isReady', function() { 8 | strictEqual( Reveal.isReady(), true, 'returns true' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize({ pdf: true }); 15 | 16 | -------------------------------------------------------------------------------- /static/revealjs/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Tests 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | # theme.toml template for a Hugo theme 2 | # See https://github.com/spf13/hugoThemes#themetoml for an example 3 | 4 | name = "hugo-cloudflare-docs" 5 | license = "MIT" 6 | licenselink = "https://stash.cfops.it/projects/DESIGN/repos/hugo-cloudflare-docs/browse/LICENSE.md" 7 | description = "Documentation theme for Hugo" 8 | homepage = "https://stash.cfops.it/projects/DESIGN/repos/hugo-cloudflare-docs" 9 | repo = "https://stash.cfops.it/projects/DESIGN/repos/hugo-cloudflare-docs" 10 | tags = ["documentation", "menu"] 11 | features = ["documentation","menu","nested sections"] 12 | min_version = 0.25 13 | 14 | [author] 15 | name = "Cloudflare" 16 | homepage = "http://cloudflare.com" 17 | 18 | [original] 19 | name = "Learn" 20 | homepage = "https://matcornic.github.io/hugo-learn-doc/basics/what-is-this-hugo-theme/" 21 | repo = "https://github.com/matcornic/hugo-theme-learn" 22 | licenselink = "https://github.com/matcornic/hugo-theme-learn/blob/master/LICENSE.md" 23 | --------------------------------------------------------------------------------