From d170b8027fb7f279482372c0e51a8e5a3f2f29ea Mon Sep 17 00:00:00 2001
From: mazenovi <vmazenod@gmail.com>
Date: Mon, 2 Oct 2017 17:29:18 +0200
Subject: [PATCH] add reveal presentation

---
 .gitignore                |  1 +
 content/package.json      | 14 +++++++++++
 content/slides/example.md | 11 ++++++++
 content/slides/index.html | 53 +++++++++++++++++++++++++++++++++++++++
 pelicanconf.py            |  3 ++-
 5 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 content/package.json
 create mode 100644 content/slides/example.md
 create mode 100644 content/slides/index.html

diff --git a/.gitignore b/.gitignore
index 196fd92..e8b13dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ pelican.pid
 *.pyc
 srv.pid
 blog_limos.egg-info
+node_modules
diff --git a/content/package.json b/content/package.json
new file mode 100644
index 0000000..5a7c6ca
--- /dev/null
+++ b/content/package.json
@@ -0,0 +1,14 @@
+{
+  "name": "*",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": "ISC",
+  "dependencies": {
+    "reveal.js": "^3.5.0"
+  }
+}
diff --git a/content/slides/example.md b/content/slides/example.md
new file mode 100644
index 0000000..eacd860
--- /dev/null
+++ b/content/slides/example.md
@@ -0,0 +1,11 @@
+## section 1
+### slide 1
+
+
+
+## section 2
+### slide 1
+
+
+## section 2
+### slide 2
diff --git a/content/slides/index.html b/content/slides/index.html
new file mode 100644
index 0000000..68c4d05
--- /dev/null
+++ b/content/slides/index.html
@@ -0,0 +1,53 @@
+<!doctype html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+
+    <title>reveal.js</title>
+
+    <link rel="stylesheet" href="../node_modules/reveal.js/css/reveal.css">
+    <link rel="stylesheet" href="../node_modules/reveal.js/css/theme/black.css">
+
+    <!-- Theme used for syntax highlighting of code -->
+    <link rel="stylesheet" href="../node_modules/reveal.js/lib/css/zenburn.css">
+
+    <!-- Printing and PDF exports -->
+    <script>
+      var link = document.createElement( 'link' );
+      link.rel = 'stylesheet';
+      link.type = 'text/css';
+      link.href = window.location.search.match( /print-pdf/gi ) ? '../node_modules/reveal.js/css/print/pdf.css' : '../node_modules/reveal.js/css/print/paper.css';
+      document.getElementsByTagName( 'head' )[0].appendChild( link );
+    </script>
+  </head>
+  <body>
+    <div class="reveal">
+      <div class="slides">
+        <section data-markdown="example.md"
+         data-separator="^\n\n\n"
+         data-separator-vertical="^\n\n"
+         data-separator-notes="^Note:"
+         data-charset="iso-8859-15">
+       </section>
+      </div>
+    </div>
+
+    <script src="../node_modules/reveal.js/lib/js/head.min.js"></script>
+    <script src="../node_modules/reveal.js/js/reveal.js"></script>
+
+    <script>
+      // More info about config & dependencies:
+      // - https://github.com/hakimel/reveal.js#configuration
+      // - https://github.com/hakimel/reveal.js#dependencies
+      Reveal.initialize({
+        dependencies: [
+          { src: '../node_modules/reveal.js/plugin/markdown/marked.js' },
+          { src: '../node_modules/reveal.js/plugin/markdown/markdown.js' },
+          { src: '../node_modules/reveal.js/plugin/notes/notes.js', async: true },
+          { src: '../node_modules/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
+        ]
+      });
+    </script>
+  </body>
+</html>
diff --git a/pelicanconf.py b/pelicanconf.py
index 0ba439f..f0b2478 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -121,7 +121,8 @@ SHOW_ARTICLE_AUTHOR = False
 SHOW_ARTICLE_CATEGORY = True
 SHOW_DATE_MODIFIED = True
 CUSTOM_CSS = 'static/custom.css'
-STATIC_PATHS = ['images', 'extra/custom.css']
+STATIC_PATHS = ['images', 'extra/custom.css', 'node_modules', 'slides']
+ARTICLE_EXCLUDES = ['node_modules', 'slides']
 EXTRA_PATH_METADATA = {
     'extra/custom.css': {'path': 'static/custom.css'}
 }
-- 
GitLab