summaryrefslogtreecommitdiff
path: root/build.sh
blob: 472be4726a9aeec4415e1ce0f48d987a8a78d454 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
find . -name "*.md" | \
cat 01-title.md \
    02-preface.md \
    03-lexical-syntax.md \
    04-identifiers-names-and-scopes.md \
    05-types.md \
    06-basic-declarations-and-definitions.md \
    16-references.md > build/ScalaReference.md
#    07-classes-and-objects.md \
#    08-expressions.md \
#    09-implicit-parameters-and-views.md \
#    10-pattern-matching.md \
#    11-top-level-definitions.md \
#    12-xml-expressions-and-patterns.md \
#    13-user-defined-annotations.md \
#    14-the-scala-standard-library.md \
#    15-scala-syntax-summary.md \

pandoc -f markdown \
       -t html5 \
       --standalone \
       --toc \
       --chapters \
       --number-sections \
       --bibliography=Scala.bib \
       --template=resources/scala-ref-template.html5 \
       --mathjax='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' \
       -o build/ScalaReference.html \
       build/ScalaReference.md

cp -Rf resources build/

# pdf generation - not working yet
#pandoc -f markdown \
#       --standalone \
#       --toc \
#       --chapters \
#       --number-sections \
#       --bibliography=Scala.bib \
#       --self-contained \
#       --latex-engine=xelatex \
#       -o build/ScalaReference.pdf \
#       build/ScalaReference.panmd