From b32bb65bcfd484ea3284a7babd137cc5545d41b7 Mon Sep 17 00:00:00 2001 From: patarapolw Date: Sun, 24 Nov 2019 17:46:22 +0700 Subject: [PATCH] update deprecated README --- README.md | 4 ---- package.json | 2 ++ web/readme-slides.md | 6 ------ web/vue.config.js | 6 ++++-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0692222..6092fb6 100755 --- a/README.md +++ b/README.md @@ -26,10 +26,6 @@ Options: By default, media can be put in the folder `media/` alongside the `*.md` file. The media can be referenced using the URL `/media/`. Can be disabled using `--no-media` flag. -## Adding plugins to reveal-md - -Also `plugin/` folder alongside `*.md` file will be loaded. Can be disabled using `--no-plugin` flag. For example, see - ## Global and Hidden slides - Global scripting `` and styling `` is supported in slides marked with diff --git a/package.json b/package.json index 68193e2..1e78f3b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,8 @@ "scripts": { "start": "node ./bin/cli.js .", "help": "node ./bin/cli.js --help", + "build": "cd web && npm run build", + "deploy": "cd web && npm run gh:deploy", "preinstall": "git submodule update --init --recursive && cd ./web && npm i && npm run build", "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/web/readme-slides.md b/web/readme-slides.md index d24f94b..1ce1d79 100644 --- a/web/readme-slides.md +++ b/web/readme-slides.md @@ -94,12 +94,6 @@ By default, media can be put in the folder `media/` alongside the `*.md` file. T === -## Adding plugins to reveal-md - -Also `plugin/` folder alongside `*.md` file will be loaded. Can be disabled using `--no-plugin` flag. For example, see - -=== - ## Save as HTML (and associated assets folder) This is best done by [downloading complete web page, in associated web browser](https://www.makeuseof.com/tag/save-complete-webpage-offline-reading/). diff --git a/web/vue.config.js b/web/vue.config.js index 59a09d4..9ea8ead 100644 --- a/web/vue.config.js +++ b/web/vue.config.js @@ -1,13 +1,15 @@ const fs = require("fs"); const path = require("path"); +let baseUrl = "/"; + if (process.env.GITHUB) { const exampleFile = path.join(__dirname, "readme-slides.md"); process.env.VUE_APP_PLACEHOLDER = fs.readFileSync(exampleFile, "utf-8"); process.env.VUE_APP_TITLE = exampleFile; -} -const baseUrl = "/"; + baseUrl = "/reveal-md/"; +} process.env.VUE_APP_REVEAL_CDN = ( fs.existsSync(path.join(__dirname, "public", "reveal.js")) &&