Browse Source

⬆️ Upgrades mkdocs to 1.0.4 (#151)

* ⬆️ Upgrades mkdocs to 1.0.4

*  Adds Netlify Python runtime hint
pull/152/head
Franck Nijhof 1 year ago
committed by GitHub
parent
commit
3844cf0c27
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 38 deletions
  1. +9
    -8
      docs/css/extra.css
  2. +27
    -27
      mkdocs.yml
  3. +2
    -2
      requirements.txt
  4. +1
    -0
      runtime.txt
  5. +2
    -1
      scripts/build.sh

+ 9
- 8
docs/css/extra.css View File

@ -1,16 +1,16 @@
.md-typeset {
font-size: 1.4rem;
font-size: 0.7rem;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
.bs-sidebar .nav>li>a:hover,
.bs-sidebar .nav>li>a:focus {
border: none;
border-left: 2px solid;
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
.bs-sidebar .nav>.active>a,
.bs-sidebar .nav>.active:hover>a,
.bs-sidebar .nav>.active:focus>a {
border: none;
border-left: 2px solid;
}
@ -24,12 +24,13 @@
}
@media (min-width: 1200px) {
.bs-sidebar.affix-bottom,
.bs-sidebar.affix {
width: 280px;
width: 280px;
}
.container > .col-md-9 {
.container>.col-md-9 {
padding-left: 40px;
}
}

+ 27
- 27
mkdocs.yml View File

@ -1,24 +1,24 @@
# Project information
site_name: 'Awesome Home Assistant';
site_url: 'https://www.awesome-ha.com';
site_description: 'A curated list of awesome Home Assistant resources for automating every aspect of your home';
site_author: 'Franck Nijhof';
copyright: 'Copyright 2018 - Franck Nijhof. Creative Commons Attribution 4.0.';
site_name: "Awesome Home Assistant";
site_url: "https://www.awesome-ha.com";
site_description: "A curated list of awesome Home Assistant resources for automating every aspect of your home";
site_author: "Franck Nijhof";
copyright: "Copyright 2018 - Franck Nijhof. Creative Commons Attribution 4.0.";
# Repository
repo_name: 'awesome-home-assistant';
repo_url: 'https://github.com/frenck/awesome-home-assistant';
edit_uri: '';
repo_name: "awesome-home-assistant";
repo_url: "https://github.com/frenck/awesome-home-assistant";
edit_uri: "";
# Theme configuration
theme:
name: 'material';
logo: 'https://www.awesome-ha.com/images/icon.svg';
icon: 'https://www.awesome-ha.com/images/icon.svg';
language: 'en';
name: "material";
logo: "https://www.awesome-ha.com/images/icon.svg";
icon: "https://www.awesome-ha.com/images/icon.svg";
language: "en";
palette:
primary: 'light-blue';
accent: 'pink';
primary: "light-blue";
accent: "pink";
feature:
tabs: false
extra_css:
@ -27,18 +27,18 @@ extra_css:
# Customization
extra:
social:
- type: 'github';
link: 'https://github.com/frenck';
- type: 'twitter';
link: 'https://twitter.com/frenck';
- type: 'instagram';
link: 'https://instagram.com/frenck';
- type: 'twitch';
link: 'https://twitch.tv/internetofthings';
- type: 'youtube';
link: 'https://youtube.com/frenck';
- type: 'linkedin';
link: 'https://www.linkedin.com/in/frenck';
- type: "github";
link: "https://github.com/frenck";
- type: "twitter";
link: "https://twitter.com/frenck";
- type: "instagram";
link: "https://instagram.com/frenck";
- type: "twitch";
link: "https://twitch.tv/internetofthings";
- type: "youtube";
link: "https://youtube.com/frenck";
- type: "linkedin";
link: "https://www.linkedin.com/in/frenck";
# Extensions
markdown_extensions:
@ -61,7 +61,7 @@ markdown_extensions:
- pymdownx.tilde
# The pages to serve
pages:
nav:
- "The Awesome List": "index.md"
- "Contributing": "contributing.md"
- "Code of Conduct": "code-of-conduct.md"

+ 2
- 2
requirements.txt View File

@ -1,2 +1,2 @@
mkdocs==0.17.5
mkdocs-material==2.9.4
mkdocs==1.0.4
mkdocs-material==4.4.2

+ 1
- 0
runtime.txt View File

@ -0,0 +1 @@
3.6

+ 2
- 1
scripts/build.sh View File

@ -15,7 +15,8 @@ cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
pip install -r requirements.txt
# Link images folder
ln -sf ../images docs/images
mkdir -p docs/images
cp -Rf images/* docs/images/
# Get the pages into the docs folder
ln -sf ../README.md docs/index.md

Loading…
Cancel
Save