Skip to content

Commit

Permalink
using sunbird colors as an accent color
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-8 committed Nov 29, 2024
1 parent 6e1b496 commit 06cbaa8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 5 deletions.
25 changes: 25 additions & 0 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
[data-md-color-primary=white] {

--md-typeset-a-color: orange;
}

[data-md-color-accent=amber] {
--md-accent-fg-color: #ffaa28;;
--md-accent-fg-color--transparent: #ffaa001a;
--md-accent-bg-color: #000000de;
--md-accent-bg-color--light: #0000008a;
}

[data-md-color-scheme=slate][data-md-color-primary=black] {
--md-typeset-a-color: orange;
}

.md-footer-meta__inner {
display: none;
}

@media (max-width: 768px) { /* Adjust the breakpoint as needed */
.md-main div[class^="language-"] {
/* padding: 0 1rem; Applies only for devices with a width of 768px or less */
margin-left: 0;
margin-right: 0;
}
}

33 changes: 28 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ theme:
- content.code.copy
- content.code.select
# - content.footnote.tooltips
# - content.tabs.link
- content.tabs.link
- content.tooltips
# - header.autohide
# - navigation.expand
- navigation.footer
- navigation.indexes
# - navigation.instant
# - navigation.instant.prefetch
- navigation.instant.prefetch
# - navigation.instant.progress
# - navigation.prune
- navigation.sections
- navigation.path
- navigation.tabs
# - navigation.tabs.sticky
- navigation.tabs.sticky
- navigation.top
- navigation.tracking
- search.highlight
Expand All @@ -44,14 +44,14 @@ theme:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
accent: indigo
accent: amber
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
accent: amber
toggle:
icon: material/weather-sunny
name: Switch to system preference
Expand All @@ -74,6 +74,29 @@ plugins:
- minify:
minify_html: true

- mkdocstrings:
handlers:
python:
options:
extensions:
- griffe_typingdoc
show_root_heading: true
show_if_no_docstring: true
preload_modules:
- httpx
- starlette
inherited_members: true
members_order: source
separate_signature: true
unwrap_annotated: true
filters:
- "!^_"
merge_init_into_class: true
docstring_section_style: spacy
signature_crossrefs: true
show_symbol_type_heading: true
show_symbol_type_toc: true

# Additional configuration
extra:
generator: false
Expand Down

0 comments on commit 06cbaa8

Please sign in to comment.