\documentclass[12pt,a4paper]{book}
\usepackage{djehuty}
\title{djehuty}
\author{Roel Janssen}
\begin{document}
\ifdefined\HCode
\ScriptEnv{html} {\NoFonts\hfill\break} {\EndNoFonts}
\Tag{TITLE+}{Documentation on djehuty}
\CssFile
@font-face {
    font-family: 'SourceSans';
    src: url('fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SourceSans-Italic';
    src: url('fonts/SourceSansPro-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'SourceSans-Bold';
    src: url('fonts/SourceSansPro-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'FiraMono';
    src: url('fonts/FiraMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body,html{
  width: 100%;
  height: 100%;
  font-family: 'SourceSans', serif;
  font-size: 13pt;
  margin: 0pt;
  padding: 0pt;
  background-color: #eee;
}
#wrapper { min-width: 1240pt; }
#sidebar .tableofcontents { padding: 0pt 10pt 0pt 14pt; }
#sidebar .likechapterHead { padding: 10pt; background: #ccc; color: #111; margin: 0pt; border-radius: 0pt 4pt 0pt 0pt; }
#sidebar { font-size: .9em; top: 2pt; width: 350pt; position: fixed; height: 100%; overflow: auto; }
#sidebar .sidebarwrap { background: #fff; border-radius: 4pt; padding-bottom: 10pt; }
#titlepage, #chapters { margin-left: 350pt; min-width: 870pt; }
#titlepage { background: #fff; border-radius: 4pt; margin: 10pt 10pt 10pt 360pt; padding-bottom: 10pt; border: solid 1pt #cccccc; }
.chapter {
  background-color: #ffffff;
  padding: 0pt;
  margin: 10pt;
  height: auto;
  border-radius: 4pt;
  border-left: solid 1pt #cccccc;
  border-right: solid 1pt #cccccc;
  border-bottom: solid 1pt #cccccc;
}
.chapwrap { padding: 0pt; background: none; border-radius: 4pt; }
.chapwrap p { padding: 0pt 10pt 0pt 10pt; }
.chapwrap .sectionHead { padding: 0pt 10pt 0pt 10pt; }
.chapwrap .subsectionHead { padding: 0pt 10pt 0pt 10pt; }
.chapwrap .likesubsubsectionHead { padding: 0pt 10pt 0pt 10pt; }
.subsubsectionHead { margin-left: .75em; font-size: 1em; }
.ectt-1095 { font-family: "Lucida Console", Monaco, monospace; }
.lstlisting {
  text-align: left;
  font-family: 'FiraMono', 'Lucida Console', Monaco, monospace;
  font-style: normal;
  font-size: 13pt;
  background: #f8f8f8;
  margin: 0pt 10pt 0pt 10pt;
  padding: 10pt;
  border-radius: 5pt;
  border: solid 1pt #cccccc;
}
.center { text-align: center; }
.ectt-1200 {
  font-family: 'FiraMono', 'Lucida Console', Monaco, monospace;
  padding: 0pt;
}
#chapters .likechapterHead, #chapters .chapterHead {
  margin: 0pt;
  padding: 10pt;
  background-color: #222222;
  color: #ffffff;
  border-radius: 4pt 4pt 0pt 0pt;
  border: solid 1pt #222222;
}
table {
  margin: auto 10pt 10pt 10pt;
  width: 100%;
  max-width: 830pt;
  border-radius: 4pt;
  border-collapse: collapse;
  border: solid 2pt #444444;
  line-height: 1em;
}
table tr:nth-child(even) { background: #f9f9f9; }
table tr:first-child { background: #444444; color: #ffffff; }
hr { margin: 5pt 10pt 5pt 10pt; }
td { font-size: 12pt; padding-left: 10pt; }
.tableofcontents { padding: 10pt; }
.chapterToc { display: inline-block; padding: 4pt; margin-top: .75em; font-size: 1.5em; font-weight: bold; }
.chapterToc a { color: #000000; }
.chapterToc a:hover { color: #666666; }
.sectionToc { padding-left: 20pt; font-size 1.0em;}
.sectionToc a { color: #7c0000; }
.sectionToc a:hover { color: #af6666; }
.subsectionToc { padding-left: 40pt; font-size: 0.9em; }
.subsectionToc a { color: #00007c; }
.subsectionToc a:hover { color: #6666af; }
.lofToc a { color: #00007c; }
.lofToc a:hover { color: #6666af; }
img { width: 60%; height: auto; }
.figure img { width: 100%; height: auto; }
.caption { text-align: center; }
dt.enumerate-enumitem{ float:left; clear:left; margin: 0em 1em 0em 1em; }
h1 { font-size 4em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.10em; }
#titlepage-logo { width: 200pt; }
hr { border: none; }
/* Hack for extraneous text for figures. */
div.figure p.noindent { display: none; }
div.figure div.center p.noindent { display: block; }
/* Hack for extraneous text for tables. */
div.table div.float span.ecrm-1095 { display: none; }
div.table div.float div.caption span.content span.ecrm-1095 { font-size: 12pt; display: inline-block; }
div.table div.float { font-size: 0em; }
div.table div.float div.caption span.id { font-size: 12pt; }
div.fbox { margin: 0pt 10pt 0pt 10pt; padding: .5em; background: #fffaea; border: solid 2pt #ffeecc; }
div.caption {
  background: #eeeeee;
  padding: 5pt;
  margin: 0pt 150pt 0pt 150pt;
  min-width: 300pt;
  border-radius: 10pt;
}
a { color: #7c0000; }
a:hover { color: #af6666; }
\EndCssFile
\fi

\ifdefined\HCode
\begin{html}
<div id="titlepage">
\end{html}
\fi
\begin{titlepage}
  \begin{center}
    \ifdefined\HCode
      \begin{html}
        <h1><code>djehuty</code></h1>
        <h2>The 4TU.ResearchData and Nikhef repository system</h2>
      \end{html}
      version \djehutyversion{}, \today{}~\\
    \else
      \topskip0pt
      \vspace*{\fill}
      { \Huge \t{djehuty} }~\\~\\
      { \Large The 4TU.ResearchData and Nikhef repository system }~\\~\\
      \includegraphics[width=0.35\textwidth]{figures/logo.pdf}
      ~\\~\\
      \url{https://github.com/4TUResearchData/djehuty}~\\
       version \djehutyversion{}, \today{}
       % Put it a little bit above the center of the page.
       ~\\~\\~\\~\\~\\~\\~\\~\\~\\~\\~\\~\\~\\~\\
       \topskip0pt
       \vspace*{\fill}
    \fi
  \end{center}
  \thispagestyle{empty}
\end{titlepage}

\setcounter{page}{1}
\pagenumbering{roman}
\hypersetup{linkcolor=black}

\ifdefined\HCode
\begin{html}
<p style="text-align: center">This document is also available as <a href="djehuty.pdf">PDF</a>.</p>
</div><div id="sidebar"><div class="sidebarwrap">
\end{html}
\fi

\tableofcontents

\ifdefined\HCode
\begin{html}
</div></div><div id="chapters"><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\listoffigures
\newpage{}
\hypersetup{linkcolor=LinkGray}
\setcounter{page}{1}
\pagenumbering{arabic}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\input{introduction}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\input{running-djehuty}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\input{knowledge-graph}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\input{contributing}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi

\input{api}

\ifdefined\HCode
\begin{html}
</div></div><div class="chapter"><div class="chapwrap">
\end{html}
\fi
\bibliography{references}

\ifdefined\HCode
\begin{html}
</div></div></div>
\end{html}
\fi
\end{document}
