Skip to content

Commit

Permalink
Docs branding (#88)
Browse files Browse the repository at this point in the history
* Docs branding

* Add favicon and update logo

* Update copyrights
  • Loading branch information
harishmohanraj authored Aug 29, 2024
1 parent 5b815b2 commit 77a8fa5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 21 deletions.
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

0 comments on commit 77a8fa5

Please sign in to comment.