diff --git a/_static/customizations.css b/_static/customizations.css index cb95674..7094ff7 100644 --- a/_static/customizations.css +++ b/_static/customizations.css @@ -23,3 +23,35 @@ align-items: center; justify-content: center; } + +html[data-theme="dark"] { + --pst-color-background: #060606; + --pst-color-primary: #4caf82; + --pst-color-surface: #0f0f0f; + --pst-color-on-background: #0f0f0f; + --pst-color-target: #1a3d2e; + --pst-color-accent: #6dcf9e; + --pst-color-link-hover: #6dcf9e; +} + +html[data-theme="dark"] .bd-header { + background-color: #2a6b4d !important; +} + +div.highlight, +div.highlight pre, +.admonition { + border-radius: 0.8rem; +} + +.navbar-header-items__end { + margin-left: auto; +} + +html[data-theme="dark"] .headerlink { + color: #4caf82; +} + +html[data-theme="dark"] #pst-back-to-top { + background-color: #4caf82; +} diff --git a/_templates/aboutme.html b/_templates/aboutme.html index 393c5a5..3b2d409 100644 --- a/_templates/aboutme.html +++ b/_templates/aboutme.html @@ -1,57 +1,122 @@
+

About me

+
+
+ +
+
+
+

+ I'm an embedded software engineer who enjoys building + reliable, well-tested and fast code. Besides embedded + development I also dabble in DevOps, self-hosting and making + stuff. My other hobbies include board games and travelling. +

+
+
+

Links

-
- - Github
- - BoardGameGeek
- - Printables
-

About me

-
-
- -
-
-
-

- I'm an embedded software engineer who enjoys building reliable, well-tested and fast - code. Besides embedded development I also dabble in DevOps, self-hosting and making stuff. - My other hobbies include board games and travelling. -

-
-
-
- - diff --git a/conf.py b/conf.py index 20f7941..0d04bd9 100644 --- a/conf.py +++ b/conf.py @@ -1,12 +1,13 @@ # Sphinx docs configuration for building project documentation from datetime import datetime -from pygments.lexer import RegexLexer, bygroups + from pygments import token +from pygments.lexer import RegexLexer, bygroups from sphinx.highlighting import lexers project = "lenordsNet" author = "lenord" -copyright = f"{datetime.now().year}, lenordsNet" +copyright = f"{datetime.now().year}, lenord.net" extensions = [ "sphinxcontrib.youtube", @@ -29,11 +30,16 @@ fontawesome_included = True html_baseurl = blog_baseurl html_title = blog_title +html_show_sourcelink = False html_theme = "pydata_sphinx_theme" html_theme_options = { "search_bar_text": "search ...", "show_prev_next": False, "navbar_center": [], + "show_source_link": False, + "secondary_sidebar_items": [], + "pygments_light_style": "lightbulb", + "pygments_dark_style": "lightbulb", } html_favicon = "assets/img/favicon.ico" @@ -55,20 +61,18 @@ html_js_files = [ html_sidebars = { "*": [ - "ablog/recentposts.html", - "ablog/archives.html", "aboutme.html", ], "posts/**": [ "ablog/postcard.html", - "ablog/recentposts.html", - "ablog/archives.html", + "page-toc", ], } -html_context = {"html_title": html_title} - -pygments_style = "sas" +html_context = { + "html_title": html_title, + "default_mode": "dark", +} class CanbusDbcLexer(RegexLexer): @@ -138,7 +142,7 @@ class CanbusDbcLexer(RegexLexer): ], "comment": [ ( - r'(\s+)(BO_)(\s+)(\d+)(\s+)', + r"(\s+)(BO_)(\s+)(\d+)(\s+)", bygroups( token.Whitespace, token.Keyword, @@ -148,7 +152,7 @@ class CanbusDbcLexer(RegexLexer): ), ), ( - r'(\s+)(SG_)(\s+)(\d+)(\s+)(\w+)(\s+)', + r"(\s+)(SG_)(\s+)(\d+)(\s+)(\w+)(\s+)", bygroups( token.Whitespace, token.Keyword,