Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/upgrade pandoc #1066

Merged
merged 47 commits into from
Apr 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
92ea7a4
Upgrade Pandoc to 2.9.2
hanjoosten Feb 19, 2020
33177ff
upgrade dependencies
hanjoosten Feb 19, 2020
f63e676
WIP. String compiles
hanjoosten Feb 20, 2020
2e884b0
WIP Uniqe compiles again
hanjoosten Feb 20, 2020
a866d3d
WIP PandocExtended compiles again
hanjoosten Feb 20, 2020
a31c5da
ParseTree compiles again
hanjoosten Feb 20, 2020
f36df28
ArbitraryTree compiles again
hanjoosten Feb 20, 2020
a86021b
AbstractSyntaxtree compiles again
hanjoosten Feb 20, 2020
234c0d4
parser.hs compiles again
hanjoosten Feb 20, 2020
df311bf
Some more files compile now
hanjoosten Feb 21, 2020
8361ebc
WIP, even more files compile now
hanjoosten Feb 21, 2020
ae5f788
WIP
hanjoosten Feb 21, 2020
7d37652
FSpec compiles
hanjoosten Feb 21, 2020
9fdf3f1
WIP
hanjoosten Feb 21, 2020
04d8561
ArchiAnalyze compiles again
hanjoosten Feb 21, 2020
4b42589
SQL compiles again
hanjoosten Feb 21, 2020
9b7a28f
getting some more files to compile
hanjoosten Feb 21, 2020
f7e947f
remove some warnings
hanjoosten Feb 21, 2020
cc289cb
WIP again some more work
hanjoosten Feb 22, 2020
18da39c
Setup now generated files that compile
hanjoosten Feb 23, 2020
e520136
Static files now use Codec.Archive.Zip
hanjoosten Feb 23, 2020
100242a
remove dependency zlib
hanjoosten Feb 23, 2020
4cf0e36
Some more files compiling
hanjoosten Feb 23, 2020
81b315c
ShowHS compiles again
hanjoosten Feb 24, 2020
9eb88db
Even more stuff compiles now
hanjoosten Feb 24, 2020
7587ae5
more stuff done
hanjoosten Feb 24, 2020
4097a40
And again some more progress
hanjoosten Feb 24, 2020
87c5d4b
more work. Now pandoc specific quest: templates
hanjoosten Feb 24, 2020
4b70f5d
Temporarily disabed Pandoc Templates
hanjoosten Mar 1, 2020
8e3b372
again some more files that compile
hanjoosten Mar 1, 2020
e2b7e63
And again some more stuff compiles
hanjoosten Mar 1, 2020
7b93a45
some more
hanjoosten Mar 1, 2020
8bc8e20
Everything compiles again
hanjoosten Mar 2, 2020
830781f
Fix in generating static file archives
hanjoosten Mar 2, 2020
8f82cc7
String is still in .adl files
hanjoosten Mar 2, 2020
77aa5d6
Take care of naming of files, even in (most) edge cases
hanjoosten Mar 3, 2020
570ac7a
oops
hanjoosten Mar 4, 2020
7bab277
Silly bug
hanjoosten Mar 6, 2020
1f8006e
force output of command to show on travis. I suspect something wrong …
hanjoosten Mar 14, 2020
e456543
Revert "force output of command to show on travis. I suspect somethin…
hanjoosten Mar 14, 2020
7159b98
using pandoc templates 2.9.1.1
hanjoosten Mar 15, 2020
e8da0c8
PDF is now generated properly again
hanjoosten Mar 28, 2020
d65df32
reduce warnings
hanjoosten Mar 28, 2020
7e5ee97
Haddock issue
hanjoosten Mar 29, 2020
fcea399
documentation
hanjoosten Apr 2, 2020
0e98154
oops
hanjoosten Apr 2, 2020
325384e
Fix issue #735
hanjoosten Apr 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* [Issue #1056](https://github.com/AmpersandTarski/Ampersand/issues/#1056) Bugfix in .xlsx parser
* [Issue #1054](https://github.com/AmpersandTarski/Ampersand/issues/#1054) Ampersand daemon now also reports type errors
* [Issue #1063](https://github.com/AmpersandTarski/Ampersand/issues/#1063) Return violations of invariants with standard check
* [Issue #735](https://github.com/AmpersandTarski/Ampersand/issues/735) Upgrade to pandoc 2.9.

## v3.17.4 (13 september 2019)

Expand Down
237 changes: 138 additions & 99 deletions Setup.hs

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions outputTemplates/README.markdown

This file was deleted.

38 changes: 30 additions & 8 deletions outputTemplates/default.context
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ $endif$
% make chapter, section bookmarks visible when opening document
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
\setupinteractionscreen[option=bookmark]
\setuptagging[state=start]

$if(papersize)$
\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
Expand All @@ -37,14 +36,18 @@ $if(layout)$
$endif$
$if(pagenumbering)$
\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
$else$
\setuppagenumbering[location={footer,middle}]
$endif$
$if(pdfa)$
% attempt to generate PDF/A
\setupbackend
[format=PDF/A-1b:2005,
intent=sRGB IEC61966-2.1,
profile=sRGB.icc]
[format=PDF/A-$pdfa$,
profile={$if(pdfaiccprofile)$$for(pdfaiccprofile)$$pdfaiccprofile$$sep$,$endfor$$else$sRGB.icc$endif$},
intent=$if(pdfaintent)$$pdfaintent$$else$sRGB IEC61966-2.1$endif$]
$endif$
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]

% use microtypography
\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
Expand Down Expand Up @@ -104,25 +107,44 @@ $endif$
\setupxtable[body][]
\setupxtable[foot][bottomframe=on]

$if(csl-refs)$
\definemeasure[cslhangindent][1.5em]
\definenarrower[hangingreferences][left=\measure{cslhangindent}]
\definestartstop [cslreferences] [
$if(csl-hanging-indent)$
before={%
\starthangingreferences[left]
\setupindenting[-\leftskip,yes,first]
\doindentation
},
after=\stophangingreferences,
$endif$
]
$endif$
$if(includesource)$
$for(sourcefile)$
\attachment[file=$curdir$/$sourcefile$,method=hidden]
$endfor$
$endif$
$for(header-includes)$
$header-includes$
$endfor$

\starttext
$if(title)$
\startalignment[middle]
{\tfd $title$}
{\tfd\setupinterlinespace $title$}
$if(subtitle)$
\smallskip
{\tfa $subtitle$}
{\tfa\setupinterlinespace $subtitle$}
$endif$
$if(author)$
\smallskip
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
{\tfa\setupinterlinespace $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
\smallskip
{\tfa $date$}
{\tfa\setupinterlinespace $date$}
$endif$
\bigskip
\stopalignment
Expand Down
6 changes: 3 additions & 3 deletions outputTemplates/default.docbook4
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ $if(date)$
$endif$
</articleinfo>
$for(include-before)$
$include-before$
$include-before$
$endfor$
$body$
$body$
$for(include-after)$
$include-after$
$include-after$
$endfor$
</article>
6 changes: 3 additions & 3 deletions outputTemplates/default.docbook5
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ $if(date)$
$endif$
</info>
$for(include-before)$
$include-before$
$include-before$
$endfor$
$body$
$body$
$for(include-after)$
$include-after$
$include-after$
$endfor$
</article>
13 changes: 1 addition & 12 deletions outputTemplates/default.dzslides
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
$styles.html()$
</style>
$endif$
$if(css)$
$for(css)$
<link rel="stylesheet" href="$css$">
Expand Down
17 changes: 8 additions & 9 deletions outputTemplates/default.epub2
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>$pagetitle$</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
Expand Down Expand Up @@ -55,6 +46,13 @@ $if(rights)$
<div class="rights">$rights$</div>
$endif$
$else$
$if(coverpage)$
<div id="cover-image">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none">
<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
</svg>
</div>
$else$
$for(include-before)$
$include-before$
$endfor$
Expand All @@ -63,6 +61,7 @@ $for(include-after)$
$include-after$
$endfor$
$endif$
$endif$
</body>
</html>

19 changes: 9 additions & 10 deletions outputTemplates/default.epub3
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<title>$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" />
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
$for(header-includes)$
$header-includes$
Expand Down Expand Up @@ -56,6 +47,13 @@ $if(rights)$
$endif$
</section>
$else$
$if(coverpage)$
<div id="cover-image">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none">
<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
</svg>
</div>
$else$
$for(include-before)$
$include-before$
$endfor$
Expand All @@ -64,6 +62,7 @@ $for(include-after)$
$include-after$
$endfor$
$endif$
$endif$
</body>
</html>

16 changes: 4 additions & 12 deletions outputTemplates/default.html4
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
$styles.html()$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" type="text/css" />
$endfor$
Expand Down Expand Up @@ -58,6 +47,9 @@ $endif$
$endif$
$if(toc)$
<div id="$idprefix$TOC">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</div>
$endif$
Expand Down
16 changes: 4 additions & 12 deletions outputTemplates/default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
$styles.html()$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
Expand Down Expand Up @@ -61,6 +50,9 @@ $endif$
$endif$
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</nav>
$endif$
Expand Down
4 changes: 2 additions & 2 deletions outputTemplates/default.icml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Document DOMVersion="8.0" Self="pandoc_doc">
<RootCharacterStyleGroup Self="pandoc_character_styles">
<CharacterStyle Self="$$ID/NormalCharacterStyle" Name="Default" />
$charStyles$
$charStyles$
</RootCharacterStyleGroup>
<RootParagraphStyleGroup Self="pandoc_paragraph_styles">
<ParagraphStyle Self="$$ID/NormalParagraphStyle" Name="$$ID/NormalParagraphStyle"
Expand All @@ -20,7 +20,7 @@
</TabList>
</Properties>
</ParagraphStyle>
$parStyles$
$parStyles$
</RootParagraphStyleGroup>
<RootTableStyleGroup Self="pandoc_table_styles">
<TableStyle Self="TableStyle/Table" Name="Table" />
Expand Down
Loading