Skip to content

Commit b0c91f8

Browse files
committed
better sample for templated
1 parent c2f1c05 commit b0c91f8

File tree

4 files changed

+77
-7
lines changed

4 files changed

+77
-7
lines changed

archetypes/templated/sample/index.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1-
{ "title":"My first document while reading the 5 minutes Pillar tutorial" }
1+
{
2+
"title": "Welcome Example",
3+
}
4+
5+
## Hello World
6+
7+
This is the smallest Pillar example.
8+
It uses microdown syntax.
9+
10+
- Have a look at Pillar [ https://github.com/pillar-markup/pillar ](https://github.com/pillar-markup/pillar)
11+
- Have a look at Microdown [ https://github.com/pillar-markup/pillar ](https://github.com/pillar-markup/pillar)
12+
13+
With Pillar you can generate
14+
- slides -- all the slides of the Pharo mooc [ https://mooc.pharo.org ](https://mooc.pharo.org)
15+
- books -- all the books available at [ https://books.pharo.org ](https://books.pharo.org) are generated with it
16+
- website -- we now use foliage which internally uses microdown [ https://github.com/pillar-markup/foliage ](https://github.com/pillar-markup/foliage)
17+
18+
## Credits
19+
20+
Microdown has been developed by:
21+
- Stéphane Ducasse
22+
- Guillermo Polito
23+
- Laurine Dargaud
24+
- Kasper Osterbye
25+
26+
Pillar has been modernised and is maintained by:
27+
- Stéphane Ducasse
28+
- Guillermo Polito
229

3-
# Hello World
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"title": "Welcome example",
3-
"htmlWriter" : #michtml,
4-
"latexWriter": #miclatex
5-
}
6-
s
2+
"title": "Welcome Example",
3+
"attribution": "The Pillar team",
4+
"series": "Square Bracket tutorials",
5+
"keywords": "project template, Pillar, Pharo, Smalltalk",
6+
"latexWriter" : #'miclatex:sbabook',
7+
"htmlWriter": #michtml
8+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
% -*- mode: latex; -*- mustache tags: {{=« »=}} «! the '&' below prevents HTML escaping. »
2+
\documentclass[11pt,a4paper,twoside,english]{book}
3+
\let\wholebook=\relax
4+
5+
\usepackage{import}
6+
\subimport{_support/latex/}{common.tex}
7+
8+
9+
% =================================================================
10+
\title{«& title»}
11+
\author{«& attribution»}
12+
13+
\hypersetup{
14+
pdftitle = {«& title»},
15+
pdfauthor = {«& attribution»},
16+
pdfkeywords = {«& keywords»}
17+
}
18+
19+
20+
% =================================================================
21+
\begin{document}
22+
23+
\maketitle
24+
25+
\frontmatter
26+
\tableofcontents
27+
% \listoffigures
28+
% \listoftables
29+
30+
\mainmatter
31+
32+
«& content»
33+
34+
\backmatter
35+
% Index would go here
36+
37+
\end{document}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Right now the latex template are not ready for the templated writer.
2+
We keep it to make sure that we can produce latex with the current contents
3+
during development of the HTML templated.
4+
5+

0 commit comments

Comments
 (0)