Skip to content

Commit 8e19890

Browse files
author
AlvarBer
committed
Release v0.4-alpha
Now with interface!
2 parents 5374fe2 + fd74726 commit 8e19890

33 files changed

+549
-778
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Word files
55
*.docx
66

7-
# TeX files
8-
*.tex
9-
107
# TeX aux files
118
*.aux
129

.idea/Persimmon.iml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 342 deletions
This file was deleted.

.travis.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
dist: trusty
2-
sudo: required
1+
dist: trusty # 2014 Ubuntu, whoooo!
2+
sudo: required # Necesary for installing LaTeX packages
33

4-
language: R
4+
language: python
5+
python: "3.5"
56

6-
install: true
7+
install: sudo apt-get update -qq # No dependencies?
78

8-
script: true
9+
script: true # No Testing
910

1011

11-
after_success:
12-
- sudo apt-get install texlive-latex-extra
13-
- cd docs
14-
- wget http://mirrors.ctan.org/macros/latex/contrib/standalone.zip
15-
- unzip standalone.zip
16-
- cd standalone
17-
- wget http://texdoc.net/texmf-dist/tex/generic/ydoc/ydocstrip.tex
18-
- xelatex standalone.ins
19-
- cd .. && mv standalone/* .
20-
- make travis && cd ..
12+
after_success: # Build binaries and documentation
13+
- cd docs # Time to do documentation
14+
- sudo apt-get install -y --no-install-recommends pandoc pandoc-citeproc texlive-base texlive-latex-base texlive-generic-recommended texlive-fonts-recommended texlive-fonts-extra texlive-extra-utils texlive-latex-recommended texlive-latex-extra texlive-xetex lmodern pgf
15+
- make travis
16+
- cd ..
2117

2218
# Run tests on master & dev
2319
branches:
@@ -32,10 +28,11 @@ deploy:
3228
file: docs/persimmon.pdf
3329
skip_cleanup: true
3430
overwrite: true
31+
prerelease: true
3532
on:
3633
branch:
3734
- master
3835

39-
# Stop bothering me
4036
notifications:
41-
email: false
37+
email: false # Stop bothering me
38+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Álvaro Bermejo, Pedro García
3+
Copyright (c) 20177 Álvaro Bermejo
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/Makefile

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,80 @@
11
PDF := persimmon.pdf # PDF Main Target
2-
MARKDOWN := introduction.md state_of_the_art.md objectives.md risk_analysis.md \
3-
implementation.md postmortem.md # Markdown files
2+
MARKDOWN := introduction.md state_of_the_art.md workflow.md objectives.md \
3+
risk_analysis.md implementation.md postmortem.md # Markdown files
44
BODY := body.tex # Markdown files will be converted to this intermediate step
55
#APPENDICES := appendixX.md # Markdown Appendices
66
#APPENDIX := appendix.tex # And appendices to this intermediate step
7-
# METADATA := metadata.yaml # Metadata files (Author, Date, Title, etc..)
7+
#METADATA := metadata.yaml # Metadata files (Author, Date, Title, etc..)
88
BIBLIOGRAPHY := persimmon.bib # BibLaTeX bibliography
99
CSL := emerald-harvard.csl # CSL file used for citations
1010
TEMPLATE := template.tex # LaTeX template for producing PDF
1111

1212
GRAPHS := $(wildcard graphs/*.tex) # Latex diagrams
13-
IMAGES := $(wildcard graphs/*.png) # .png images
14-
IMAGES += $(GRAPHS:.tex=.pdf) # Generated PDF Images
13+
IMAGES := $(wildcard images/*.png) # .png images
14+
IMAGES += $(addprefix images/, $(notdir $(GRAPHS:.tex=.pdf))) # Generated PDF Images
1515

1616
all: $(PDF)
1717

18-
# Main PDF, travis ci and book to print version
19-
$(PDF): $(BODY) $(TEMPLATE) $(IMAGES) # TODO: Add abstract
18+
19+
$(PDF): $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) # TODO: Add abstract
2020
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \
2121
--metadata author:"Álvaro Bermejo" \
2222
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \
23-
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \
24-
--metadata subtitle:"A scikitlearn visual programming interface" \
25-
--metadata mainlang:"English" --metada keywords:"Machine Learning","Visual Programming" \
26-
--metadata papersize:"A4" --metadata sansfont:"Helvetica Neue LT Com" \
27-
--metadata colorlinks --metadata documentclass:"scrreprt" \
28-
--top-level-division chapter $(BODY) -o $@
23+
--metadata title:Persimmon --metadata fontsize:12pt --toc \
24+
--metadata subtitle:"A sklearn visual programming interface" \
25+
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \
26+
--metadata papersize:A4 --metadata sansfont:"Helvetica Neue LT Com" \
27+
--metadata colorlinks --metadata documentclass:scrreprt \
28+
--top-level-division chapter $(BODY) $(APPENDIX) -o $@
2929

30-
# Main PDF, travis ci and book to print version
3130
travis: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES)
3231
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \
33-
--metadata author:"Álvaro Bermejo" \
32+
--metadata author:"Álvaro Bermejo" --metadata papersize:A4 \
3433
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \
35-
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \
34+
--metadata title:Persimmon --metadata fontsize:12pt --toc \
3635
--metadata subtitle:"A sklearn visual programming interface" \
37-
--metadata mainlang:"English" --metada keywords:"Machine Learning","Visual Programming" \
38-
--metadata papersize:"A4" \
39-
--metadata colorlinks --metadata documentclass:"scrreprt" \
36+
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \
37+
--metadata colorlinks --metadata documentclass:scrreprt \
4038
--chapters $(BODY) $(APPENDIX) -o $(PDF)
4139

42-
43-
book_complu: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES)
40+
complutense: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES)
4441
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \
4542
--metadata author:"Álvaro Bermejo" --metadata date:"Director: Pablo Moreno Ger" \
46-
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \
43+
--metadata title:Persimmon --metadata fontsize:12pt --toc \
4744
--metadata subtitle:"A scikitlearn visual programming interface" \
48-
--metadata mainlang:"English" \
49-
--metadata papersize:"A4" --metadata sansfont:"Helvetica Neue LT Com" \
50-
--metadata documentclass:"scrbook" --metadata institute:"Universidad Complutense" \
51-
--top-level-division chapter $(BODY) $(APPENDIX) -o bool_$(PDF)
45+
--metadata mainlang:English --metadata colorlinks --metadata titlepic:images/fdi.png \
46+
--metadata papersize:A4 --metadata sansfont:"Helvetica Neue LT Com" \
47+
--metadata documentclass:scrreprt --metadata institute:"Universidad Complutense" \
48+
--metada keywords:"Machine Learning","Visual Programming","Serious Games" \
49+
--top-level-division chapter $(BODY) $(APPENDIX) -o $(PDF)
5250

51+
twocol: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) # Adjust Spacing with geometry
52+
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \
53+
--metadata author:"Álvaro Bermejo" --metadata colorlinks \
54+
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \
55+
--metadata title:Persimmon --metadata fontsize:12p --toc \
56+
--metadata subtitle:"A sklearn visual programming interface" \
57+
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \
58+
--metadata papersize:A4 --metadata classoption:twocolumn \
59+
--metadata sansfont:"Helvetica Neue LT Com" --metadata documentclass:scrreprt \
60+
--top-level-division chapter $(BODY) $(APPENDIX) -o $(PDF)
5361

54-
# For standalone images
55-
graphs/%.pdf: graphs/%.tex
62+
# For standalone images
63+
images/%.pdf: graphs/%.tex
5664
xelatex $< > /dev/null # TODO: actually output in graphs directory
57-
mv $*.pdf graphs/
65+
mv $*.pdf images/
5866

5967
# Body and Appendices Middle Steps creation
60-
$(BODY): $(MARKDOWN)
68+
$(BODY): $(MARKDOWN) $(BIBLIOGRAPHY) $(CSL)
6169
pandoc --no-tex-ligatures --bibliography $(BIBLIOGRAPHY) --csl $(CSL) \
6270
metadata.yaml $(MARKDOWN) -o $@
6371

6472
$(APPENDIX): $(APPENDICES)
6573
pandoc --no-tex-ligatures $(APPENDICES) -o $@
6674

6775
clean:
68-
rm -f $(BODY) $(APPENDIX) graphs/*.pdf *.pdf *.log *.aux
76+
rm -f $(BODY) $(APPENDIX) images/*.pdf *.pdf *.log *.aux
6977

78+
test:
79+
@echo $(GRAPHS)
80+
@echo $(IMAGES)

docs/appendixX.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Process
88
-------
99
Document is written on Pandoc's extended Markdown, and can be broken amongst
1010
different files. Images are inserted with regular Markdown syntax for images.
11-
A YAML file with metadata information is passed to pandoc, containing things
11+
A YAML file with metadata information is passed to pandoc, containing things
1212
such as Author, Title, font, etc... The use of this information depends on
1313
what output we are creating and the template/reference we are using.
1414

1515

1616
Diagrams
1717
--------
18-
Diagrams are were created with LaTeX packages such as tikz or pgfgantt, they
18+
Diagrams are were created with LaTeX packages such as tikz or pgfgantt, they
1919
can be inserted directly as PDF, but if we desire to output to formats other
2020
than LaTeX is more convenient to convert them to .png filesi with tools such
2121
as `pdftoppm`.

0 commit comments

Comments
 (0)