From 691d4c47af8dc58f2e1850cf6a12bc60dfb18d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Sun, 4 Feb 2024 16:07:30 +0100 Subject: [PATCH] feat: display contributors on the home page --- requirements.txt | 1 + sources/_static/custom.css | 19 ++++++++++++++++++- sources/conf.py | 1 + sources/index.rst | 7 +++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3dc4c77..8f0f34b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ rcssmin==1.1.2 rjsmin==1.2.2 shibuya==2024.1.17 sphinx==7.2.6 +sphinx-contributors==0.2.7 sphinx-copybutton==0.5.2 # sphinx-design==0.5.0 # sphinx-tabs==3.4.5 diff --git a/sources/_static/custom.css b/sources/_static/custom.css index cee94b7..5bf5081 100644 --- a/sources/_static/custom.css +++ b/sources/_static/custom.css @@ -1,9 +1,26 @@ /* Hide the left navbar. */ -aside#lside, aside .lside-overlay, button[aria-controls="lside"] { +aside#lside, +aside .lside-overlay, +button[aria-controls="lside"] { display: none; } /* Give more width to the main container. */ main.sy-main { width: 100%; +} + +.sphinx-contributors img { + border-radius: 50%; + margin-bottom: 1em; + box-shadow: + 0 1px 1px hsl(0deg 0% 0% / 0.075), + 0 2px 2px hsl(0deg 0% 0% / 0.075), + 0 4px 4px hsl(0deg 0% 0% / 0.075), + 0 8px 8px hsl(0deg 0% 0% / 0.075), + 0 16px 16px hsl(0deg 0% 0% / 0.075); +} + +.sphinx-contributors p { + margin: 0; } \ No newline at end of file diff --git a/sources/conf.py b/sources/conf.py index 197c0cb..b8beacc 100644 --- a/sources/conf.py +++ b/sources/conf.py @@ -18,6 +18,7 @@ extensions = [ "myst_parser", + "sphinx_contributors", "sphinx_copybutton", "sphinx.ext.intersphinx", "sphinx.ext.todo", diff --git a/sources/index.rst b/sources/index.rst index 8efcf7c..9114ca0 100644 --- a/sources/index.rst +++ b/sources/index.rst @@ -30,3 +30,10 @@ :glob: python/* + +----- + +💖 **Contributeurs** + +.. contributors:: BoboTiG/luma + :avatars: