Skip to content

Commit 53d1af9

Browse files
committed
Fix: update project name and make year automated
1 parent 83aea0b commit 53d1af9

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

_static/pyos.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
/* anything related to the dark theme */
2222
html[data-theme="dark"] {
2323
--pst-color-info-bg: #400f59!important;
24+
--pst-color-tbl-row: #2E2E2E!important;
25+
}
26+
27+
/* anything related to the light theme */
28+
html[data-theme="light"] {
29+
--pst-color-tbl-row: #f5f1ff!important;
30+
}
2431
}
2532

2633

@@ -331,3 +338,46 @@ aside.footnote {
331338
background-color: var(--pst-color-target);
332339
}
333340
}
341+
342+
343+
.fa-circle-check {
344+
color: #7BCDBA;
345+
}
346+
347+
/* pyOpenSci table styles */
348+
349+
.pyos-table {
350+
& th.head, .pyos-table th.head.stub {
351+
background-color: #33205C!important;
352+
353+
& p {
354+
color: #fff
355+
}
356+
}
357+
& th.stub {
358+
background-color: var(--pst-color-tbl-row);
359+
font-weight: 500;
360+
}
361+
& td {
362+
vertical-align: middle;
363+
text-align: center;
364+
}
365+
}
366+
367+
368+
/* Make the first column in a table a "header" like thing */
369+
370+
371+
/* Dark mode fix for tables */
372+
@media (prefers-color-scheme: dark) {
373+
td:not(.row-header):nth-child(1) {
374+
background-color: var(--pst-color-tbl-row); /* Adjust the dark mode color */
375+
color: #ffffff; /* Adjust the text color for better contrast */
376+
font-weight: 500;
377+
}
378+
}
379+
380+
td, th {
381+
border: 1px solid #ccc; /* Light gray border */
382+
padding: 8px; /* Add some padding for better readability */
383+
}

conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@
1313
# import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
16+
from datetime import datetime
17+
18+
current_year = datetime.now().year
19+
organization_name = "pyOpenSci"
20+
1621

1722

1823
# -- Project information -----------------------------------------------------
1924

20-
project = "python-package-guide"
21-
copyright = "2024, pyOpenSci"
25+
project = "pyOpenSci Python Package Guide"
26+
copyright = f"{current_year}, {organization_name}"
2227
author = "pyOpenSci Community"
2328

2429
# The full version, including alpha/beta/rc tags

0 commit comments

Comments
 (0)