From 0cb8e9a9bb2c5be508b3f96f94192ae5f714aae0 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 26 Jul 2022 14:19:51 +0800 Subject: Update script about slide --- tools/markdown/reveal | 2 +- vimrc | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/markdown/reveal b/tools/markdown/reveal index 4873517..17321d5 100755 --- a/tools/markdown/reveal +++ b/tools/markdown/reveal @@ -1,6 +1,6 @@ #! /bin/bash -if [[ ! $1 =~ '.md' ]]; then +if [[ ! $1 =~ (.md|.slide)$ ]]; then echo markdown file is not given >&2 exit 1 fi diff --git a/vimrc b/vimrc index 46aeddf..9d3feb8 100644 --- a/vimrc +++ b/vimrc @@ -181,6 +181,15 @@ augroup blogRebuild autocmd BufWritePost ~/blog/*.md :!cd ~/blog && hugo >/dev/null augroup END +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => Settings for Slides +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Generate static pages +augroup slideRebuild + autocmd BufWritePost ~/public/*/*.slide :!cd %:p:h && reveal %:t >/dev/null +augroup END + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Redirect the output of a Vim or external command into a scratch buffer """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3-70-g09d2