|
55 | 55 | \usepackage[english]{babel}
|
56 | 56 | \usepackage{fancyhdr}
|
57 | 57 | \usepackage{tikz} % Add this for drawing the circle
|
| 58 | + \usepackage{fancyvrb} |
| 59 | + \usepackage{framed} |
58 | 60 | ''',
|
59 | 61 | 'preamble': r'''
|
60 | 62 | \setmainfont{Liberation Sans}
|
61 | 63 | \addtolength{\cftsubsecnumwidth}{4pt}
|
62 | 64 | \setcounter{secnumdepth}{3}
|
63 | 65 | \definecolor{ps-orange}{HTML}{ea5b22}
|
| 66 | + \definecolor{lightgray}{RGB}{245, 245, 245} |
64 | 67 | \addto\captionsenglish{\renewcommand{\contentsname}{\textcolor{ps-orange}{Table of contents}}}
|
65 | 68 |
|
66 | 69 | % Define the fancy page style
|
|
75 | 78 | \renewcommand{\headrulewidth}{0pt} % Remove header line
|
76 | 79 | }
|
77 | 80 |
|
| 81 | + % Code block styling |
| 82 | + \usepackage{listings} |
| 83 | + \definecolor{lightgray}{RGB}{248,248,248} |
| 84 | +
|
| 85 | + % Override Sphinx verbatim settings |
| 86 | + \fvset{ |
| 87 | + frame=none, |
| 88 | + numbers=none, |
| 89 | + fontfamily=ttfamily, |
| 90 | + baselinestretch=1.2 |
| 91 | + } |
| 92 | + % Sphinx-specific settings |
| 93 | + \sphinxsetup{ |
| 94 | + VerbatimColor={rgb}{0.97,0.97,0.97}, % Background color for code blocks |
| 95 | + VerbatimBorderColor={rgb}{0.97,0.97,0.97}, % Make border same as background |
| 96 | + verbatimwithframe=false, |
| 97 | + verbatimsep=8pt, |
| 98 | + verbatimborder=0pt % Set border width to 0 |
| 99 | + } |
| 100 | +
|
| 101 | + % Additional frame removal |
| 102 | + \renewenvironment{Verbatim}{% |
| 103 | + \setlength{\fboxsep}{0pt}% |
| 104 | + \setlength{\fboxrule}{0pt}% |
| 105 | + \begin{flushleft}% |
| 106 | + }{% |
| 107 | + \end{flushleft}% |
| 108 | + } |
| 109 | +
|
78 | 110 | % Apply the style to all pages
|
79 | 111 | \pagestyle{normal}
|
80 | 112 | ''',
|
|
0 commit comments