Skip to content

Commit

Permalink
Update requirements file for latest rtd theme
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Feb 19, 2022
1 parent 3ceade6 commit 641f2d2
Show file tree
Hide file tree
Showing 12 changed files with 575 additions and 12 deletions.
10 changes: 4 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,13 @@
''
]

# Master index file
master_doc = 'index'

#
# Breathe configuration
#
#
#
# --- Breathe configuration -----------------------------------------------------
breathe_projects = {
"lwow": "_build/xml/"
}
breathe_default_project = "lwow"
breathe_default_members = ('members', 'undoc-members')
breathe_default_members = ('members', 'undoc-members')
breathe_show_enumvalue_initializer = True
31 changes: 25 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,29 @@ Table of contents
^^^^^^^^^^^^^^^^^

.. toctree::
:maxdepth: 2
:maxdepth: 2
:caption: Contents

self
get-started/index
user-manual/index
api-reference/index
examples/index
self
get-started/index
user-manual/index
api-reference/index
examples/index

.. toctree::
:maxdepth: 2
:caption: Other projects
:hidden:

LwDTC - DateTimeCron <https://github.com/MaJerle/lwdtc>
LwESP - ESP-AT library <https://github.com/MaJerle/lwesp>
LwGPS - GPS NMEA parser <https://github.com/MaJerle/lwgps>
LwGSM - GSM-AT library <https://github.com/MaJerle/lwgsm>
LwJSON - JSON parser <https://github.com/MaJerle/lwjson>
LwMEM - Memory manager <https://github.com/MaJerle/lwmem>
LwOW - OneWire with UART <https://github.com/MaJerle/lwow>
LwPKT - Packet protocol <https://github.com/MaJerle/lwpkt>
LwPRINTF - Printf <https://github.com/MaJerle/lwprintf>
LwRB - Ring buffer <https://github.com/MaJerle/lwrb>
LwSHELL - Shell <https://github.com/MaJerle/lwshell>
LwUTIL - Utility functions <https://github.com/MaJerle/lwutil>
1 change: 1 addition & 0 deletions docs/static/dark-light/checked.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions docs/static/dark-light/common-dark-light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
:root {
--heading-color: red;
--duration: 0.5s;
--timing: ease;
}

*,
::before,
::after {
box-sizing: border-box;
}

body {
margin: 0;
transition:
color var(--duration) var(--timing),
background-color var(--duration) var(--timing);
font-family: sans-serif;
font-size: 12pt;
background-color: var(--background-color);
color: var(--text-color);
display: flex;
justify-content: center;
}

main {
margin: 1rem;
max-width: 30rem;
position: relative;
}

h1 {
color: var(--heading-color);
text-shadow: 0.1rem 0.1rem 0.1rem var(--shadow-color);
transition: text-shadow var(--duration) var(--timing);
}

img {
max-width: 100%;
height: auto;
transition: filter var(--duration) var(--timing);
}

p {
line-height: 1.5;
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
}

fieldset {
border: solid 0.1rem;
box-shadow: 0.1rem 0.1rem 0.1rem var(--shadow-color);
transition: box-shadow var(--duration) var(--timing);
}

div {
padding: 0.5rem;
}

aside {
position: absolute;
right: 0;
padding: 0.5rem;
}

aside:nth-of-type(1) {
top: 0;
}

aside:nth-of-type(2) {
top: 3rem;
}

aside:nth-of-type(3) {
top: 7rem;
}

aside:nth-of-type(4) {
top: 12rem;
}

#content select,
#content button,
#content input[type="text"],
#content input[type="search"] {
width: 15rem;
}

dark-mode-toggle {
--dark-mode-toggle-remember-icon-checked: url("checked.svg");
--dark-mode-toggle-remember-icon-unchecked: url("unchecked.svg");
--dark-mode-toggle-remember-font: 0.75rem "Helvetica";
--dark-mode-toggle-legend-font: bold 0.85rem "Helvetica";
--dark-mode-toggle-label-font: 0.85rem "Helvetica";
--dark-mode-toggle-color: var(--text-color);
--dark-mode-toggle-background-color: none;

margin-bottom: 1.5rem;
}

#dark-mode-toggle-1 {
--dark-mode-toggle-dark-icon: url("sun.png");
--dark-mode-toggle-light-icon: url("moon.png");
}

#dark-mode-toggle-2 {
--dark-mode-toggle-dark-icon: url("sun.svg");
--dark-mode-toggle-light-icon: url("moon.svg");
--dark-mode-toggle-icon-size: 2rem;
--dark-mode-toggle-icon-filter: invert(100%);
}

#dark-mode-toggle-3,
#dark-mode-toggle-4 {
--dark-mode-toggle-dark-icon: url("moon.png");
--dark-mode-toggle-light-icon: url("sun.png");
}

#dark-mode-toggle-3 {
--dark-mode-toggle-remember-filter: invert(100%);
}

#dark-mode-toggle-4 {
--dark-mode-toggle-active-mode-background-color: var(--accent-color);
--dark-mode-toggle-remember-filter: invert(100%);
}

0 comments on commit 641f2d2

Please sign in to comment.