From f85d3f5a90c3d36e99e7827f84b34dbbc96269b9 Mon Sep 17 00:00:00 2001 From: Suraj yadav Date: Tue, 19 Sep 2023 10:17:21 +0530 Subject: [PATCH 1/4] Update requirements.txt added markdown= 3.3.7 and markdown-include=0.6.0 Signed-off-by: Surajyadav --- docs/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/requirements.txt b/docs/requirements.txt index d84098727..64e8ab971 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,6 @@ mkdocs==1.2.3 mkdocs-material==7.1.7 +markdown_include==0.6.0 pygments==2.15.0 jinja2===3.0.3 +markdown==3.3.7 From 9c456e5b0b3001c33dee339e217a01f1f4c72def Mon Sep 17 00:00:00 2001 From: Suraj yadav Date: Tue, 19 Sep 2023 10:19:40 +0530 Subject: [PATCH 2/4] Delete docs/assets/extra.css deleted extra.css Signed-off-by: Surajyadav --- docs/assets/extra.css | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 docs/assets/extra.css diff --git a/docs/assets/extra.css b/docs/assets/extra.css deleted file mode 100644 index 055aff201..000000000 --- a/docs/assets/extra.css +++ /dev/null @@ -1,10 +0,0 @@ -.codehilite { - background-color: hsla(0,0%,92.5%,.5); - overflow: auto; - -webkit-overflow-scrolling: touch; -} - -.codehilite pre { - background-color: transparent; - padding: .525rem .6rem; -} From 655b3e48106dd385368a9198ef2762a71cd85cd6 Mon Sep 17 00:00:00 2001 From: Suraj yadav Date: Tue, 19 Sep 2023 10:46:58 +0530 Subject: [PATCH 3/4] Update mkdocs.yml added markdown_extension markdown_include with codehighlight and toggle for screen mode Signed-off-by: Surajyadav --- mkdocs.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 0ff6cb746..6151482ee 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,16 +3,26 @@ site_url: "" repo_url: https://github.com/argoproj-labs/argocd-operator strict: true theme: - name: material palette: + - media: '(prefers-color-scheme: light)' primary: teal + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + - media: '(prefers-color-scheme: dark)' + primary: teal + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode font: text: 'Work Sans' logo: 'assets/logo.png' -extra_css: - - 'assets/extra.css' markdown_extensions: -- codehilite +- markdown_include.include +- codehilite: + css_class: highlight - admonition - toc: permalink: true From 4129a62fe5c995ff583b9b8b9a8d127998f4d557 Mon Sep 17 00:00:00 2001 From: Suraj yadav Date: Tue, 19 Sep 2023 11:03:35 +0530 Subject: [PATCH 4/4] Update mkdocs.yml Signed-off-by: Surajyadav --- mkdocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/mkdocs.yml b/mkdocs.yml index 6151482ee..e52876c65 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,6 +3,7 @@ site_url: "" repo_url: https://github.com/argoproj-labs/argocd-operator strict: true theme: + name: material palette: - media: '(prefers-color-scheme: light)' primary: teal