Skip to content

Commit a3effc8

Browse files
committed
Add footer to generated hub page
1 parent a537d07 commit a3effc8

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

test-packages/render_all.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import sys
3333
import textwrap
3434
import time
35+
from datetime import datetime
3536
from pathlib import Path
3637

3738
from yaml12 import format_yaml
@@ -2513,6 +2514,35 @@ def create_hub_page(results: list[dict]) -> None:
25132514
position: absolute; left: 0; top: 0; bottom: 0;
25142515
opacity: 0.15; border-radius: 3px;
25152516
}}
2517+
.hub-footer {{
2518+
margin-top: 64px;
2519+
border-top: 1px solid #30363d;
2520+
padding: 32px 24px;
2521+
text-align: center;
2522+
color: #8b949e;
2523+
font-size: 13px;
2524+
}}
2525+
.hub-footer-inner {{
2526+
max-width: 600px;
2527+
margin: 0 auto;
2528+
}}
2529+
.hub-footer-links {{
2530+
margin-bottom: 12px;
2531+
}}
2532+
.hub-footer-links a {{
2533+
color: #58a6ff;
2534+
text-decoration: none;
2535+
}}
2536+
.hub-footer-links a:hover {{
2537+
text-decoration: underline;
2538+
}}
2539+
.hub-footer-sep {{
2540+
margin: 0 8px;
2541+
color: #484f58;
2542+
}}
2543+
.hub-footer-copy {{
2544+
color: #6e7681;
2545+
}}
25162546
</style>
25172547
</head>
25182548
<body>
@@ -2585,6 +2615,18 @@ def create_hub_page(results: list[dict]) -> None:
25852615
}});
25862616
}})();
25872617
</script>
2618+
<footer class="hub-footer">
2619+
<div class="hub-footer-inner">
2620+
<div class="hub-footer-links">
2621+
<a href="https://github.com/posit-dev/gdg" target="_blank" rel="noopener">GDG on GitHub</a>
2622+
<span class="hub-footer-sep">&middot;</span>
2623+
<a href="https://github.com/posit-dev/great-docs" target="_blank" rel="noopener">Great Docs on GitHub</a>
2624+
</div>
2625+
<div class="hub-footer-copy">
2626+
&copy; {datetime.now().year} Posit Software, PBC. All rights reserved.
2627+
</div>
2628+
</div>
2629+
</footer>
25882630
</body>
25892631
</html>
25902632
""")

0 commit comments

Comments
 (0)