Skip to content

[Themes] Upgrade to rtd 1.0.0rc1 and override incompatible default changes #111

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

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion src/Templates/rtd/assets/css/badge_only.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions src/Templates/rtd/assets/css/highlightjs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*

Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>

*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: white;
color: black;
}

.hljs-comment,
.hljs-quote,
.hljs-variable {
color: #008000;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name,
.hljs-tag {
color: #00f;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-addition {
color: #a31515;
}

.hljs-deletion,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-meta {
color: #2b91af;
}

.hljs-doctag {
color: #808080;
}

.hljs-attr {
color: #f00;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link {
color: #00b0e8;
}


.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}
8 changes: 4 additions & 4 deletions src/Templates/rtd/assets/css/theme.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/Templates/rtd/assets/js/badge_only.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Templates/rtd/assets/js/theme.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions src/Templates/rtd/html/code.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div translate="no" class="{{ languages|map(language => "highlight-#{language}")|join(' ') }} notranslate">
<table class="highlighttable">
<tbody>
<tr>
<td class="linenos">
<div class="linenodiv">
<pre>{{ line_numbers }}</pre>
</div>
</td>
<td class="code">
<div class="highlight">
<pre class="hljs {{ languages|join(' ') }}">{{ code|raw }}</pre>
</div>
</td>
</tr>
</tbody>
</table>
</div>
4 changes: 4 additions & 0 deletions src/Templates/rtd/html/header-title.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h{{ titleNode.level }} id="{{ titleNode.id }}">
{{ titleNode.value.render()|raw }}
<a class="headerlink" href="#{{ titleNode.id }}" title="Permalink to this headline">¶</a>
</h{{ titleNode.level }}>
5 changes: 2 additions & 3 deletions src/Templates/rtd/html/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
{# CSS #}

<link rel="stylesheet" href="{{ asset('css/theme.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/highlightjs.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/badge_only.css') }}" type="text/css" />

{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
<script src="{{ asset('js/modernizr.min.js') }}"></script>

</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -137,6 +135,7 @@
{#{%- endfor %}#}

<script type="text/javascript" src="{{ asset('js/theme.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/badge_only.js') }}"></script>

{#<script type="text/javascript">#}
{#jQuery(function () {#}
Expand Down