diff options
-rwxr-xr-x | tools/markdown/reveal | 2 | ||||
-rw-r--r-- | vimrc | 9 |
2 files changed, 10 insertions, 1 deletions
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 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | 2 | ||
3 | if [[ ! $1 =~ '.md' ]]; then | 3 | if [[ ! $1 =~ (.md|.slide)$ ]]; then |
4 | echo markdown file is not given >&2 | 4 | echo markdown file is not given >&2 |
5 | exit 1 | 5 | exit 1 |
6 | fi | 6 | fi |
@@ -182,6 +182,15 @@ augroup blogRebuild | |||
182 | augroup END | 182 | augroup END |
183 | 183 | ||
184 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 184 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
185 | " => Settings for Slides | ||
186 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
187 | |||
188 | " Generate static pages | ||
189 | augroup slideRebuild | ||
190 | autocmd BufWritePost ~/public/*/*.slide :!cd %:p:h && reveal %:t >/dev/null | ||
191 | augroup END | ||
192 | |||
193 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
185 | " => Redirect the output of a Vim or external command into a scratch buffer | 194 | " => Redirect the output of a Vim or external command into a scratch buffer |
186 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 195 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
187 | " Copy from : https://gist.github.com/romainl/eae0a260ab9c135390c30cd370c20cd7 | 196 | " Copy from : https://gist.github.com/romainl/eae0a260ab9c135390c30cd370c20cd7 |