From 107bf48c884a15ae5de8818c8e0ad71621291339 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Tue, 28 Jul 2020 23:13:00 -0700 Subject: [PATCH] Add custom isort documentation theme --- art/stylesheets/extra.css | 5 +++++ pyproject.toml | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 art/stylesheets/extra.css diff --git a/art/stylesheets/extra.css b/art/stylesheets/extra.css new file mode 100644 index 000000000..499655d23 --- /dev/null +++ b/art/stylesheets/extra.css @@ -0,0 +1,5 @@ +[data-md-color-scheme="isort"] { + --md-primary-fg-color: #EF8336; + --md-primary-fg-color--light: #1674B1; + --md-primary-fg-color--dark: #1674b1; +} diff --git a/pyproject.toml b/pyproject.toml index d832c48c2..4cebbacc1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,13 +90,14 @@ isort = "isort.main:ISortCommand" isort = "isort = isort.pylama_isort:Linter" [tool.portray.mkdocs] -edit_uri="https://github.com/timothycrosley/isort/edit/develop/" +edit_uri = "https://github.com/timothycrosley/isort/edit/develop/" +extra_css = ["art/stylesheets/extra.css"] [tool.portray.mkdocs.theme] name = "material" favicon = "art/logo.png" logo = "art/logo.png" -palette = {primary = "orange", accent = "indigo"} +palette = {scheme = "isort"} [build-system] requires = ["poetry>=0.12"]