mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 04:31:11 -06:00
modify website config
This commit is contained in:
@@ -1,63 +1,4 @@
|
||||
\Preamble{xhtml,2,sec-filename,fn-in,fonts,svg,mathml,mathjax,nostyle}
|
||||
\DeclareGraphicsExtensions{.png,.svg,.jpg,.jpeg,.JPG,.eps,.pdf,.mps}
|
||||
% fix rendering of degree celsius
|
||||
\DeclareSIUnit\degreeCelsius{\text{°C}}
|
||||
\Configure{Gin-dim}{}
|
||||
\Css{img {
|
||||
max-width: 100\%;
|
||||
height: auto;
|
||||
}}
|
||||
|
||||
\Configure{AddCss}{style.css}
|
||||
\AddToHook{env/tikzpicture/begin}{\fontfamily{opensans-TLF}\selectfont}
|
||||
\Configure{@HEAD}{\HCode{
|
||||
<style type="text/css">
|
||||
@import url('https://fonts.cdnfonts.com/css/open-sans');
|
||||
body{
|
||||
font-family: 'Open Sans';
|
||||
}
|
||||
</style>}}
|
||||
\ConfigureEnv{titlepage}{\ifvmode\IgnorePar\fi\EndP\HCode{<main class="titlepage">}}{\ifvmode\IgnorePar\fi\EndP\HCode{</main>}}{}{}
|
||||
|
||||
% Mini TOC
|
||||
\Configure{crosslinks+}{%
|
||||
\bgroup
|
||||
% container for the page toc
|
||||
\Configure{tableofcontents}{\IgnorePar\EndP\HCode{<nav class="TOC">}\IgnorePar}
|
||||
{\HCode{\Hnewline}}{\IgnorePar\HCode{</nav>\Hnewline}\ShowPar}{}{}%
|
||||
\TableOfContents[chapter,section,subsection]% Print table of contents before crosslinks
|
||||
\egroup
|
||||
\ifvmode\IgnorePar\fi\EndP%
|
||||
\HCode{<main class="main-content">\Hnewline<nav class="crosslinks-top">} }
|
||||
{\HCode{</nav>\Hnewline}}
|
||||
{\ifvmode\IgnorePar\fi\EndP%
|
||||
\HCode{<nav class="crosslinks-bottom">}}{\HCode{</nav>}}{}{}
|
||||
|
||||
% configuration for TOC on the main page
|
||||
\Configure{tableofcontents}{\IgnorePar\EndP\HCode{<nav class="TOC">}\IgnorePar}
|
||||
{}{\IgnorePar\HCode{</nav>\Hnewline<main class="main-content">\Hnewline}\ShowPar}{}{}%
|
||||
|
||||
% close the <main> element started in \Configure{crosslinks+}
|
||||
\Configure{@/BODY}{\ifvmode\IgnorePar\fi\EndP\HCode{</main>}}
|
||||
% Goatcounter counting
|
||||
|
||||
\renewcommand\listofflowcharts{%
|
||||
\chapter*{\listoflocname}%
|
||||
\TableOfContents[loc]%
|
||||
}
|
||||
\ConfigureToc{loc}{\HCode{<span class="lofToc">}}{\ }{}{\HCode{</span><br />}}
|
||||
|
||||
\ExplSyntaxOn
|
||||
\def\standaloneenv#1{}
|
||||
\pend:def\schemestart{\Picture+{}}
|
||||
\append:def\CF_schemestop{\EndPicture}
|
||||
\ExplSyntaxOff
|
||||
\makeatletter
|
||||
\def\texfourht@tikz@begin{
|
||||
\protect\csname nested:math\endcsname% support display math
|
||||
\Picture+[\csname a:Picture-alt\endcsname]{}%
|
||||
}
|
||||
\makeatother
|
||||
|
||||
\begin{document}
|
||||
\EndPreamble
|
||||
|
||||
Reference in New Issue
Block a user