Skip to content

Commit b441a0b

Browse files
committed
Restore site CSS deleted in 41aca4c; swap Travis badge for GitHub Actions
custom.css and pygments-native.css were deleted from the repo in 2018 but still referenced by the template; the live site was serving stale copies from S3, which made the styling impossible to reproduce from source.
1 parent 1b42288 commit b441a0b

4 files changed

Lines changed: 111 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ By Tim Hopper:
3939

4040
<!-- Please don't remove this: Grab your social icons from https://github.com/carlsednaoui/gitsocial -->
4141

42-
[![Build Status](https://travis-ci.org/tdhopper/pythonplot.com.svg?branch=master)](https://travis-ci.org/tdhopper/pythonplot.com)
42+
[![Build Status](https://github.com/tdhopper/pythonplot.com/actions/workflows/deploy.yml/badge.svg?branch=master)](https://github.com/tdhopper/pythonplot.com/actions/workflows/deploy.yml)
4343

4444
## An Introduction to Python Plotting for Exploratory Data Analysis
4545

templates/t_index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ <h6 class="text-muted">Note:</h6>
158158
</div>
159159

160160
<div class="row">
161-
<div class="col-3">© 2020 <a href="http://tdhopper.com">Tim Hopper</a></div>
162-
<div class="col-7">© 2020 <a href="https://github.com/tdhopper/pythonplot.com/blob/master/Examples.ipynb">
163-
Generated from an IPython Notebook on Github</a> (<a href="https://github.com/tdhopper/pythonplot.com/commit/{{ git }}">{{ git }}</a>) <a href="https://travis-ci.org/tdhopper/pythonplot.com" target="_blank"><img src="https://travis-ci.org/tdhopper/pythonplot.com.svg?branch=master"></a></div>
161+
<div class="col-3">© 2026 <a href="http://tdhopper.com">Tim Hopper</a></div>
162+
<div class="col-7">© 2026 <a href="https://github.com/tdhopper/pythonplot.com/blob/master/Examples.ipynb">
163+
Generated from an IPython Notebook on Github</a> (<a href="https://github.com/tdhopper/pythonplot.com/commit/{{ git }}">{{ git }}</a>) <a href="https://github.com/tdhopper/pythonplot.com/actions/workflows/deploy.yml" target="_blank"><img src="https://github.com/tdhopper/pythonplot.com/actions/workflows/deploy.yml/badge.svg?branch=master"></a></div>
164164

165165
<div class="col-2"><p class="float-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div>
166166
</div>

web/css/custom.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
body {
2+
padding-top: 5rem;
3+
}
4+
5+
.highlight pre {
6+
padding: 1em;
7+
margin-bottom: 0px;
8+
}
9+
10+
.card-footer p:last-child { margin-bottom: 0 !important; margin-right: 0 !important; }
11+
12+
.right-col {
13+
background-color: #202020;
14+
}
15+
16+
.comment {
17+
background-color: #f7f7f9;
18+
}
19+
20+
.card {
21+
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
22+
border-radius: 0;
23+
border: 0;
24+
}
25+
26+
table {
27+
font-family: monospace;
28+
}
29+
30+
@media (min-width: 1600px) {
31+
.container {
32+
width: 1440px;
33+
max-width: 100%;
34+
}
35+
}

web/css/pygments-native.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.highlight pre .hll { background-color: #404040 }
2+
.highlight pre { background: #202020; color: #d0d0d0 }
3+
.highlight pre .c { color: #999999; font-style: italic } /* Comment */
4+
.highlight pre .err { color: #a61717; background-color: #e3d2d2 } /* Error */
5+
.highlight pre .esc { color: #d0d0d0 } /* Escape */
6+
.highlight pre .g { color: #d0d0d0 } /* Generic */
7+
.highlight pre .k { color: #6ab825; font-weight: bold } /* Keyword */
8+
.highlight pre .l { color: #d0d0d0 } /* Literal */
9+
.highlight pre .n { color: #d0d0d0 } /* Name */
10+
.highlight pre .o { color: #d0d0d0 } /* Operator */
11+
.highlight pre .x { color: #d0d0d0 } /* Other */
12+
.highlight pre .p { color: #d0d0d0 } /* Punctuation */
13+
.highlight pre .cm { color: #999999; font-style: italic } /* Comment.Multiline */
14+
.highlight pre .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
15+
.highlight pre .c1 { color: #999999; font-style: italic } /* Comment.Single */
16+
.highlight pre .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
17+
.highlight pre .gd { color: #d22323 } /* Generic.Deleted */
18+
.highlight pre .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
19+
.highlight pre .gr { color: #d22323 } /* Generic.Error */
20+
.highlight pre .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
21+
.highlight pre .gi { color: #589819 } /* Generic.Inserted */
22+
.highlight pre .go { color: #cccccc } /* Generic.Output */
23+
.highlight pre .gp { color: #aaaaaa } /* Generic.Prompt */
24+
.highlight pre .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
25+
.highlight pre .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
26+
.highlight pre .gt { color: #d22323 } /* Generic.Traceback */
27+
.highlight pre .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
28+
.highlight pre .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
29+
.highlight pre .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
30+
.highlight pre .kp { color: #6ab825 } /* Keyword.Pseudo */
31+
.highlight pre .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
32+
.highlight pre .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
33+
.highlight pre .ld { color: #d0d0d0 } /* Literal.Date */
34+
.highlight pre .m { color: #3677a9 } /* Literal.Number */
35+
.highlight pre .s { color: #ed9d13 } /* Literal.String */
36+
.highlight pre .na { color: #bbbbbb } /* Name.Attribute */
37+
.highlight pre .nb { color: #24909d } /* Name.Builtin */
38+
.highlight pre .nc { color: #447fcf; text-decoration: underline } /* Name.Class */
39+
.highlight pre .no { color: #40ffff } /* Name.Constant */
40+
.highlight pre .nd { color: #ffa500 } /* Name.Decorator */
41+
.highlight pre .ni { color: #d0d0d0 } /* Name.Entity */
42+
.highlight pre .ne { color: #bbbbbb } /* Name.Exception */
43+
.highlight pre .nf { color: #447fcf } /* Name.Function */
44+
.highlight pre .nl { color: #d0d0d0 } /* Name.Label */
45+
.highlight pre .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
46+
.highlight pre .nx { color: #d0d0d0 } /* Name.Other */
47+
.highlight pre .py { color: #d0d0d0 } /* Name.Property */
48+
.highlight pre .nt { color: #6ab825; font-weight: bold } /* Name.Tag */
49+
.highlight pre .nv { color: #40ffff } /* Name.Variable */
50+
.highlight pre .ow { color: #6ab825; font-weight: bold } /* Operator.Word */
51+
.highlight pre .w { color: #666666 } /* Text.Whitespace */
52+
.highlight pre .mb { color: #3677a9 } /* Literal.Number.Bin */
53+
.highlight pre .mf { color: #3677a9 } /* Literal.Number.Float */
54+
.highlight pre .mh { color: #3677a9 } /* Literal.Number.Hex */
55+
.highlight pre .mi { color: #3677a9 } /* Literal.Number.Integer */
56+
.highlight pre .mo { color: #3677a9 } /* Literal.Number.Oct */
57+
.highlight pre .sb { color: #ed9d13 } /* Literal.String.Backtick */
58+
.highlight pre .sc { color: #ed9d13 } /* Literal.String.Char */
59+
.highlight pre .sd { color: #ed9d13 } /* Literal.String.Doc */
60+
.highlight pre .s2 { color: #ed9d13 } /* Literal.String.Double */
61+
.highlight pre .se { color: #ed9d13 } /* Literal.String.Escape */
62+
.highlight pre .sh { color: #ed9d13 } /* Literal.String.Heredoc */
63+
.highlight pre .si { color: #ed9d13 } /* Literal.String.Interpol */
64+
.highlight pre .sx { color: #ffa500 } /* Literal.String.Other */
65+
.highlight pre .sr { color: #ed9d13 } /* Literal.String.Regex */
66+
.highlight pre .s1 { color: #ed9d13 } /* Literal.String.Single */
67+
.highlight pre .ss { color: #ed9d13 } /* Literal.String.Symbol */
68+
.highlight pre .bp { color: #24909d } /* Name.Builtin.Pseudo */
69+
.highlight pre .vc { color: #40ffff } /* Name.Variable.Class */
70+
.highlight pre .vg { color: #40ffff } /* Name.Variable.Global */
71+
.highlight pre .vi { color: #40ffff } /* Name.Variable.Instance */
72+
.highlight pre .il { color: #3677a9 } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)