Skip to content

Commit 53b6e64

Browse files
committed
clean build_packages
1 parent f261b35 commit 53b6e64

File tree

4 files changed

+8
-82
lines changed

4 files changed

+8
-82
lines changed

README.md

+2-24
Original file line numberDiff line numberDiff line change
@@ -40,40 +40,18 @@ It's simple and esay!
4040

4141
# Installation {data-stack-name="Install"}
4242

43-
## Prebuilt Package
44-
45-
See [Releases](https://github.com/xieby1/markdown_revealjs/releases).
46-
47-
## Manual Installation
48-
4943
* First, [Install latest pandoc](https://github.com/jgm/pandoc).
5044

5145
Note: Ubuntu 22's apt-installed pandoc is too old.
5246

53-
* Second,
47+
* Second, add revealjs.sh to your PATH env.
5448

5549
```bash
5650
git clone https://github.com/xieby1/markdown_revealjs
5751
ln -s <path/to>/revealjs.sh /usr/bin/
5852
# or /usr/local/bin/, or ~/.local/bin/
5953
```
6054

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-
7755
# Quick Start {data-stack-name="Quick Start"}
7856

7957
## First Page
@@ -634,7 +612,7 @@ you can control how many TOC columns you have.
634612
* The default `toc-margin` is `0 0 0 0`
635613
* Thus a 3-column toc is presented.
636614

637-
### 1-column TOC
615+
### 1-column TOC {.slide-count-end}
638616

639617
Here is an example of 1-column TOC
640618

bin/revealjs.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ else
1111
REPOROOT="https://xieby1.github.io/markdown_revealjs"
1212
fi
1313

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
1918
fi
2019

21-
2220
if [[ $# -eq 0 || "$1" == "-h" || -z ${MD} ]]
2321
then
2422
echo "Usage: ${0##*/}" convert markdown file to reveal.js slides.
@@ -28,6 +26,7 @@ then
2826
echo " REPOROOT override the default markdown_revealjs url"
2927
echo " E.g. if you want to play your slides offline,"
3028
echo " set the REPOROOT to the local markdown_revealjs."
29+
echo " PANDOC override the default pandoc executable"
3130
echo " Customized pandoc args:"
3231
echo " -V lxgw enable LXGW Wenkai font"
3332
exit 0

build_packages.nix

-50
This file was deleted.

shell.nix

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
let
22
pkgs = import <nixpkgs> {};
3-
revealjs_sh = import ./default.nix;
43
my_python = pkgs.python3.withPackages (p: with p; [
54
plotly
65
pandas
76
packaging
87
]);
98
in pkgs.mkShell {
109
packages = [
11-
revealjs_sh
1210
my_python
1311
pkgs.html-minifier
12+
pkgs.pandoc
1413
];
1514
}

0 commit comments

Comments
 (0)