From b848bc873c634c0f3b0cd526a89acbc03768012c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:27:19 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.5.7) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a4e6bce1..639cdda48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: hooks: - id: sort-all - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.2 + rev: v0.5.7 hooks: - id: ruff-format - id: ruff From 42b379fde264024be6d71ccbfa7ca4eb6fb876b3 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 18 Aug 2024 09:48:56 +0200 Subject: [PATCH 2/2] Add dark mode svgs on index page. --- docs/source/_static/images/book-light.svg | 18 ++++ docs/source/_static/images/books-light.svg | 1 + docs/source/_static/images/coding-light.svg | 23 +++++ .../_static/images/light-bulb-light.svg | 33 +++++++ docs/source/index.md | 85 +++++++++++++++++++ 5 files changed, 160 insertions(+) create mode 100644 docs/source/_static/images/book-light.svg create mode 100644 docs/source/_static/images/books-light.svg create mode 100644 docs/source/_static/images/coding-light.svg create mode 100644 docs/source/_static/images/light-bulb-light.svg diff --git a/docs/source/_static/images/book-light.svg b/docs/source/_static/images/book-light.svg new file mode 100644 index 000000000..6315fadba --- /dev/null +++ b/docs/source/_static/images/book-light.svg @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/docs/source/_static/images/books-light.svg b/docs/source/_static/images/books-light.svg new file mode 100644 index 000000000..c3d02e813 --- /dev/null +++ b/docs/source/_static/images/books-light.svg @@ -0,0 +1 @@ + diff --git a/docs/source/_static/images/coding-light.svg b/docs/source/_static/images/coding-light.svg new file mode 100644 index 000000000..9a395f008 --- /dev/null +++ b/docs/source/_static/images/coding-light.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + diff --git a/docs/source/_static/images/light-bulb-light.svg b/docs/source/_static/images/light-bulb-light.svg new file mode 100644 index 000000000..aa4936f70 --- /dev/null +++ b/docs/source/_static/images/light-bulb-light.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + diff --git a/docs/source/index.md b/docs/source/index.md index 62cf34dce..b53d35818 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -57,6 +57,27 @@ gutter: 3 :text-align: center :img-top: _static/images/light-bulb.svg :class-img-top: index-card-image +:class-item: only-light +:shadow: md + +```{button-link} tutorials/index.html +--- +click-parent: +ref-type: ref +class: stretched-link index-card-link +--- +Tutorials +``` + +Tutorials help you to get started with pytask and how you manage your first project. + +```` + +````{grid-item-card} +:text-align: center +:img-top: _static/images/light-bulb-light.svg +:class-img-top: index-card-image +:class-item: only-dark :shadow: md ```{button-link} tutorials/index.html @@ -76,6 +97,28 @@ Tutorials help you to get started with pytask and how you manage your first proj :text-align: center :img-top: _static/images/book.svg :class-img-top: index-card-image +:class-item: only-light +:shadow: md + +```{button-link} how_to_guides/index.html +--- +click-parent: +ref-type: ref +class: stretched-link index-card-link +--- +How-to Guides +``` + +How-to guides provide instructions for very specific and advanced tasks and document +best-practices. + +```` + +````{grid-item-card} +:text-align: center +:img-top: _static/images/book-light.svg +:class-img-top: index-card-image +:class-item: only-dark :shadow: md ```{button-link} how_to_guides/index.html @@ -96,6 +139,27 @@ best-practices. :text-align: center :img-top: _static/images/books.svg :class-img-top: index-card-image +:class-item: only-light +:shadow: md + +```{button-link} explanations/index.html +--- +click-parent: +ref-type: ref +class: stretched-link index-card-link +--- +Explanations +``` + +Explanations deal with key topics and concepts which underlie the package. + +```` + +````{grid-item-card} +:text-align: center +:img-top: _static/images/books-light.svg +:class-img-top: index-card-image +:class-item: only-dark :shadow: md ```{button-link} explanations/index.html @@ -115,6 +179,27 @@ Explanations deal with key topics and concepts which underlie the package. :text-align: center :img-top: _static/images/coding.svg :class-img-top: index-card-image +:class-item: only-light +:shadow: md + +```{button-link} reference_guides/index.html +--- +click-parent: +ref-type: ref +class: stretched-link index-card-link +--- +Reference Guides +``` + +Reference guides explain the implementation and provide an entry-point for developers. + +```` + +````{grid-item-card} +:text-align: center +:img-top: _static/images/coding-light.svg +:class-img-top: index-card-image +:class-item: only-dark :shadow: md ```{button-link} reference_guides/index.html