Skip to content

Commit

Permalink
DISTMONGO-281 Changed color scheme for docs (#209)
Browse files Browse the repository at this point in the history
Added banner, feedback form
new file:   _resource/.icons/percona/logo.svg
	modified:   _resource/overrides/main.html
	deleted:    _resource/overrides/partials/nav.html
	new file:   docs/css/design.css
	new file:   docs/fonts/Poppins-Italic.ttf
	new file:   docs/fonts/Poppins-Light.ttf
	new file:   docs/fonts/Poppins-LightItalic.ttf
	new file:   docs/fonts/Poppins-Medium.ttf
	new file:   docs/fonts/Poppins-MediumItalic.ttf
	new file:   docs/fonts/Poppins-Regular.ttf
	new file:   docs/fonts/Poppins-SemiBold.ttf
	new file:   docs/fonts/Poppins-SemiBoldItalic.ttf
	modified:   mkdocs-base.yml
	modified:   mkdocs-pdf.yml
	modified:   mkdocs.yml
	deleted:    runtime.txt
	new file:   snippets/services-banner.md
  • Loading branch information
nastena1606 authored Feb 29, 2024
1 parent 3153a82 commit 7e64d9f
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 25 deletions.
3 changes: 1 addition & 2 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
</html>

{% endblock %}



{% block site_nav %}
{% if nav %}
{% if nav %}
{% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
{% endif %}
Expand Down
Binary file added docs/fonts/Poppins-Italic.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-Light.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-LightItalic.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-Regular.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added docs/fonts/Poppins-SemiBoldItalic.ttf
Binary file not shown.
29 changes: 22 additions & 7 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ theme:
favicon: _images/percona-favicon.ico
custom_dir: _resource/overrides/
font:
text: Poppins
text: Roboto
code: Roboto Mono
palette:

# Automatic mode based on system preferences

- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Light mode
- media: "(prefers-color-scheme: light)"
Expand Down Expand Up @@ -53,7 +61,9 @@ extra_css:
- css/percona.css
- css/nocopy.css
- css/extra.css
# - css/design.css
- css/design.css
- css/osano.css


extra_javascript:
- js/version-select.js
Expand All @@ -79,21 +89,26 @@ markdown_extensions:
pymdownx.tabbed:
{alternate_style: true}
pymdownx.tilde: {}
pymdownx.superfences: {}
pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
pymdownx.highlight:
linenums: false
pymdownx.inlinehilite: {}
pymdownx.snippets:
pymdownx.snippets:
base_path: ["snippets"]
auto_append:
- services-banner.md
pymdownx.tasklist:
custom_checkbox: true
pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- _resource/.icons



plugins:
Expand Down
12 changes: 8 additions & 4 deletions mkdocs-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

INHERIT: mkdocs-base.yml

markdown_extensions:
pymdownx.tabbed: {}
pymdownx.superfences: {}
admonition: {}
copyright: Percona LLC, &#169; 2024

extra_css:
- https://unicons.iconscout.com/release/v3.0.3/css/line.css
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css
- css/percona.css
- css/nocopy.css
- css/extra.css

14 changes: 2 additions & 12 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,20 @@ INHERIT: mkdocs-base.yml

site_url: "https://docs.percona.com/percona-distribution-for-mongodb/"

theme:
name: material
custom_dir: _resource/overrides



#Plugins
plugins:
section-index: {}

#Google Analytics configuration
extra:
analytics:
analytics:
provider: google
property: !ENV GOOGLE_ANALYTICS_KEY
property: G-J4J70BNH0G
feedback:
title: Was this page helpful?
ratings:
- icon: material/emoticon-happy-outline
name: This page was helpful
data: 1
note: >-
Thanks for your feedback!
Thank you for your feedback!
- icon: material/emoticon-sad-outline
name: This page could be improved
data: 0
Expand Down

0 comments on commit 7e64d9f

Please sign in to comment.