File tree 4 files changed +8
-82
lines changed
4 files changed +8
-82
lines changed Original file line number Diff line number Diff line change @@ -40,40 +40,18 @@ It's simple and esay!
40
40
41
41
# Installation {data-stack-name="Install"}
42
42
43
- ## Prebuilt Package
44
-
45
- See [ Releases] ( https://github.com/xieby1/markdown_revealjs/releases ) .
46
-
47
- ## Manual Installation
48
-
49
43
* First, [ Install latest pandoc] ( https://github.com/jgm/pandoc ) .
50
44
51
45
Note: Ubuntu 22's apt-installed pandoc is too old.
52
46
53
- * Second,
47
+ * Second, add revealjs.sh to your PATH env.
54
48
55
49
``` bash
56
50
git clone https://github.com/xieby1/markdown_revealjs
57
51
ln -s < path/to> /revealjs.sh /usr/bin/
58
52
# or /usr/local/bin/, or ~/.local/bin/
59
53
```
60
54
61
- ## Build Packages
62
-
63
- If you are interested in generating packages.
64
-
65
- Packages are generated by nix script
66
-
67
- ` ./build_packages.nix ` .
68
-
69
- 🐱
70
-
71
- The generated packages include
72
-
73
- * static-linked pandoc
74
- * revealjs.sh
75
- * pandoc template
76
-
77
55
# Quick Start {data-stack-name="Quick Start"}
78
56
79
57
## First Page
@@ -634,7 +612,7 @@ you can control how many TOC columns you have.
634
612
* The default `toc-margin` is `0 0 0 0`
635
613
* Thus a 3-column toc is presented.
636
614
637
- # ## 1-column TOC
615
+ # ## 1-column TOC {.slide-count-end}
638
616
639
617
Here is an example of 1-column TOC
640
618
Original file line number Diff line number Diff line change 11
11
REPOROOT=" https://xieby1.github.io/markdown_revealjs"
12
12
fi
13
13
14
- # use which pandoc
15
- PANDOC_=" $( dirname $( realpath --relative-to=. $0 ) ) /../share/markdown_revealjs/pandoc"
16
- if [[ -f ${PANDOC_} ]]
17
- then PANDOC=${PANDOC_}
18
- else PANDOC=pandoc
14
+ if [[ -n ${PANDOC} ]]; then
15
+ echo PANDOC is set as \" ${PANDOC} \"
16
+ else
17
+ PANDOC=pandoc
19
18
fi
20
19
21
-
22
20
if [[ $# -eq 0 || " $1 " == " -h" || -z ${MD} ]]
23
21
then
24
22
echo " Usage: ${0##*/ } " convert markdown file to reveal.js slides.
28
26
echo " REPOROOT override the default markdown_revealjs url"
29
27
echo " E.g. if you want to play your slides offline,"
30
28
echo " set the REPOROOT to the local markdown_revealjs."
29
+ echo " PANDOC override the default pandoc executable"
31
30
echo " Customized pandoc args:"
32
31
echo " -V lxgw enable LXGW Wenkai font"
33
32
exit 0
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
let
2
2
pkgs = import <nixpkgs> { } ;
3
- revealjs_sh = import ./default.nix ;
4
3
my_python = pkgs . python3 . withPackages ( p : with p ; [
5
4
plotly
6
5
pandas
7
6
packaging
8
7
] ) ;
9
8
in pkgs . mkShell {
10
9
packages = [
11
- revealjs_sh
12
10
my_python
13
11
pkgs . html-minifier
12
+ pkgs . pandoc
14
13
] ;
15
14
}
You can’t perform that action at this time.
0 commit comments