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

Docs branding #88

Merged
merged 3 commits into from
Aug 29, 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
Binary file added docs/docs/assets/img/favicon.ico
Binary file not shown.
27 changes: 17 additions & 10 deletions docs/docs/assets/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 31 additions & 9 deletions docs/docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,34 @@ https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/
*/

:root {
--md-primary-fg-color: #003257;
--md-primary-fg-color--light: #48A8D8;
--md-primary-fg-color--dark: #48A8D8;
}
/* Primary color */
--md-primary-fg-color: #E43F2B;
--md-primary-fg-color--light: #E43F2B;
--md-primary-fg-color--dark: #E43F2B;

/* Accent color */
--md-accent-fg-color: #0080FF;
--md-accent-fg-color--transparent: #0080FF1A;

[data-md-color-accent=indigo] {
--md-accent-fg-color: #48A8D8;
--md-accent-fg-color--transparent: #48A8D81A;
/* Text color */
--md-typeset-color: #ffffff;
}

[data-md-color-scheme="default"] {
/* Footer background color */
--md-footer-bg-color: #F25C49;
--md-footer-bg-color--dark: #E43F2B;

}

[data-md-color-scheme=slate] {
--md-default-bg-color: hsla(var(--md-hue),7%,18%,1);
--md-footer-bg-color--dark: hsla(var(--md-hue),24%,26%,1);
--md-typeset-a-color: #48A8D8;

/* Footer background color */
--md-footer-bg-color: #F25C49;
--md-footer-bg-color--dark: #E43F2B;

--md-typeset-a-color: #E43F2B;
}

a.external-link {
Expand All @@ -39,3 +53,11 @@ a.internal-link::after {
*/
content: "\00A0↪";
}

.md-header__button.md-logo img, .md-header__button.md-logo svg {
height: 1.8rem;
}

.md-header__button.md-logo {
padding: 0 .2rem;
}
6 changes: 4 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ site_name: FastAgency
site_description: "FastAgency: a repository of open-source AI models"
site_url: https://docs.fastagency.ai/
site_author: airt
copyright: '&copy; 2023 <a href="https://airt.ai/" target="_blank" rel="noopener">airt</a>'
copyright: '&copy; 2023 onwards <a href="https://airt.ai/" target="_blank" rel="noopener">airt</a>'

docs_dir: docs

Expand All @@ -25,19 +25,21 @@ theme:
name: material
custom_dir: overrides
logo: assets/img/logo.svg
favicon: assets/img/logo.svg
favicon: assets/img/favicon.ico
font:
text: Roboto
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
Expand Down
Loading