Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve docs layout #590

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ docs_dir: pages
extra:
meta:
title: Event Sourcing
description: A lightweight but also all-inclusive event sourcing library with a focus on developer experience.
description: An event sourcing library, complete with all the essential features, powered by the reliable Doctrine ecosystem and focused on developer experience.
image: img/patchlevel-banner.png
social:
- icon: fontawesome/brands/github
Expand All @@ -26,23 +26,26 @@ extra_css:
theme:
name: material
custom_dir: overrides
logo: assets/logo.png
favicon: assets/favicon.png
features:
- navigation.sections
- navigation.top
- navigation.indexes
- navigation.footer
- content.code.annotate
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: blue
accent: blue
primary: black
accent: light blue
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: blue
accent: blue
primary: black
accent: light blue
toggle:
icon: material/brightness-4
name: Switch to light mode
Expand Down
Binary file added docs/overrides/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/overrides/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 20 additions & 14 deletions docs/pages/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
:root > * {
--md-code-hl-number-color: #6897BB;
--md-code-hl-special-color: #C7CDD7;
--md-code-hl-function-color: #FFC66D;
--md-code-hl-constant-color: #9876AA;
--md-code-hl-keyword-color: #CC7832;
--md-code-hl-string-color: #6A8759;
--md-code-hl-name-color: red;
--md-code-hl-operator-color: #C7CDD7;
--md-code-hl-punctuation-color: #C7CDD7;
--md-code-hl-comment-color: #629755;
--md-code-hl-generic-color: red;
--md-code-hl-variable-color: #9876AA;
--md-code-hl-special-color: #6b7280;
--md-code-hl-function-color: #ca8a04;
--md-code-hl-constant-color: #9333ea;
--md-code-hl-keyword-color: #c2410c;
--md-code-hl-string-color: #15803d;
--md-code-hl-name-color: #991b1b;
--md-code-hl-operator-color: #6b7280;
--md-code-hl-punctuation-color: #6b7280;
--md-code-hl-comment-color: #15803d;
--md-code-hl-generic-color: #b91c1c;
/*--md-code-hl-variable-color: #7c3aed;*/

--md-code-fg-color: #C7CDD7;
--md-code-bg-color: #2B2B2B;
--md-code-hl-color: red;
--md-code-fg-color--dark: #f1f5f9;
--md-code-bg-color--dark: #2B2B2B;
--md-code-hl-color--dark: #b91c1c;

--md-code-fg-color--light: #2B2B2B;
--md-code-bg-color--light: #f8fafc;
--md-code-hl-color--light: #b91c1c;
}

p {
Expand All @@ -24,6 +28,8 @@ p {

.md-typeset code {
padding: .2em .4em;
font-size: .9em;
line-height: 1.8;
}

.admonition-title {
Expand Down
Loading