Commit 97018183 authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert
Browse files

Add menu plugin to the deck template

parent 851ac4c8
......@@ -2,6 +2,11 @@ decker := $(shell stack path | grep local-install-root | sed "s/local-install-ro
version := $(shell grep "version: " package.yaml | sed "s/version: *//")
build:
cd resource
cd support
yarn install
cd ..
cd ..
stack build -j 8 --fast
dist: build
......
......@@ -38,7 +38,12 @@ Decker uses a few external tools that need to be installed on the system:
- [*pdf2svg*](https://github.com/dawbarton/pdf2svg) to generate SVG files from
PDF documents
- [*sassc*](https://github.com/sass/sassc) to compile SCSS to CSS
<<<<<<< HEAD
- *libbzip2-dev*
=======
- [*NodeJS*](https://nodejs.org/) as a prerequisite for Yarn
- [*Yarn*](https://yarnpkg.com) to install Javascript dependencies
>>>>>>> 7ac005b... Add menu plugin to the deck template
### Installation of external tools on macOS
......
# Node gitignore
# see https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
\ No newline at end of file
{
"name": "decker-support",
"version": "0.0.4",
"description": "Decker files to control the HTML presentation",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"decker",
"revealjs"
],
"author": "",
"license": "UNLICENSED",
"dependencies": {
"reveal.js": "^3.7.0",
"reveal.js-menu": "^1.1.3"
}
}
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
reveal.js-menu@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/reveal.js-menu/-/reveal.js-menu-1.1.3.tgz#f33a334803be66d9b7b08e2be511a4e94e0d8f14"
reveal.js@^3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/reveal.js/-/reveal.js-3.7.0.tgz#7afaf72fd963000381289d58f3aa54c0c46b150c"
......@@ -269,6 +269,9 @@ $if(notes-server)$
$endif$
$if(mathjax)$
{ src: '$revealjs-url$/plugin/math/math.js', async: true },
$endif$
$if(menu)$
{ src: '$decker-support-dir$/node_modules/reveal.js-menu/menu.js', async: true },
$endif$
{ src: '$revealjs-url$/plugin/notes/notes.js', async: true }
]
......
......@@ -219,7 +219,7 @@ markdownToHtmlDeck markdownFile out = do
MathJax
(supportDirRel </> "MathJax-2.7/MathJax.js?config=TeX-AMS_HTML")
, writerVariables =
[ ("revealjs-url", supportDirRel </> "reveal.js-3.5.0")
[ ("revealjs-url", supportDirRel </> "node_modules" </> "reveal.js")
, ("decker-support-dir", supportDirRel)
]
, writerCiteMethod = Citeproc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment