Skip to content

Commit 0b4850c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents f659d18 + 2b52f87 commit 0b4850c

280 files changed

Lines changed: 11904 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hugo/content/general/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Important part of this experience is our smart wake up which makes your morning
2525
The app is collecting data about your movement, your body vital signs (HR, HRV, SpO2, breath rate), about the environment (light and sound level), and about your lifestyle (from the added tags, like #coffee, #sport...), to create a complex image of your sleep.
2626
The movement data from the sensor are evaluated by [unique algorithms](https://sleep.urbandroid.org/how-do-we-measure-your-dreams/) to estimate your sleep phases. This method used is called **actigraphy** (you can read more in the [Sleep tracking theory chapter](sleep/sleep_tracking_theory)). After each night, you will get a [sleep graph](sleep/how_to_read_sleep_graph), and after the app collects enough data for long-term statistic, you can explore your sleep quality patterns in your [Stats and Trends](sleep/statistics).
2727
<!-- == Why Sleep Score with several values and not Sleep Quality? -->
28-
<!-- There isn't a single number which would tell you whether your sleep is good or bad. There isn't a 85% sleep quality figure which some may try to convince you of. Instead, sleep has several parameters and you are trying to keep all those in favourable limits. -->
28+
<!-- There isn'themes a single number which would tell you whether your sleep is good or bad. There isn'themes a 85% sleep quality figure which some may try to convince you of. Instead, sleep has several parameters and you are trying to keep all those in favourable limits. -->
2929
<!-- This is what we call the [Sleep score](/sleep/sleepscore) where we evaluate your duration, regularity, depth of sleep, snoring, heart rate variability or oxygenation (depending on the device you use). -->
3030
<!-- From a single night you can check if you slept long enough and how much you snored, but the data start to be interesting with more nights tracked where you start seeing trends - am I improving my regularity? Is my sleep deficit getting down? etc.. -->
3131
<!-- If you see you are consistently behind some target for any of your dimensions, you can setup [goals](/sleep/goals). For instance you are sleeping just 6:00 on average which is quite bad for an adult, so you can setup a goal to increase your sleep duration to at least 6:30 and the app will guide you gradually to achieve that goal... -->

hugo/content/services/ifttt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ If you don't want to fill your email/password inside our app, you can copy the n
5353

5454
- [Turn off Philips Hue when sleep tracking starts](https://ifttt.com/recipes/405744-sleep-as-android-turn-off-all-philips-hue-lights-when-starting-sleep-tracking)
5555
<!-- FAQS: -->
56-
<!-- can't get into settings!!! -> you should disable and enable -->
56+
<!-- can'themes get into settings!!! -> you should disable and enable -->

hugo/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module sleep-docs
2+
3+
go 1.25.0
4+
5+
require github.com/alex-shpak/hugo-book v0.14.0 // indirect

hugo/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/alex-shpak/hugo-book v0.14.0 h1:edQbxbKHZQoaHidnGR9dZ9EnoEqIV+kPjyEuAaDWvzc=
2+
github.com/alex-shpak/hugo-book v0.14.0/go.mod h1:3N2fYXAJzb31L13moUOXmPo2DC58VvQYJkGr9VniXfQ=
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{{ "<!--" | safeHTML }}
2+
Made with Book Theme
3+
https://github.com/alex-shpak/hugo-book
4+
{{ "-->" | safeHTML }}
5+
6+
<meta charset="UTF-8">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<meta name="description" content="{{ or .Description .Summary | plainify | htmlUnescape }}">
9+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
10+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e3440">
11+
<meta name="color-scheme" content="light dark">
12+
13+
{{- with .Page.Params.BookHref -}}
14+
<meta http-equiv="Refresh" content="0; url='{{ . }}'" />
15+
{{- end -}}
16+
17+
{{ partial "opengraph.html" . }}
18+
{{ partial "schema.html" . }}
19+
20+
<title>{{ partial "docs/html-head-title" . }}</title>
21+
{{ partial "docs/html-head-favicon" . }}
22+
23+
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
24+
<link rel="manifest" href="{{ $manifest.RelPermalink }}">
25+
<link rel="canonical" href="{{ .Permalink }}">
26+
27+
{{- range .Translations }}
28+
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">
29+
{{- end -}}
30+
31+
<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->
32+
{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }}
33+
<link rel="stylesheet" href="{{ partial "docs/links/resource-precache" $styles }}" {{ template "integrity" $styles }}>
34+
35+
<!-- Search -->
36+
{{- if default true .Site.Params.BookSearch -}}
37+
{{- $searchJSFile := printf "%s.search.js" .Language.Name }}
38+
{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }}
39+
<script defer type="module" src="{{ partial "docs/links/resource-precache" $searchJS }}" {{ template "integrity" $searchJS }}></script>
40+
{{ end -}}
41+
42+
<!-- Service Worker -->
43+
{{- if .Site.Params.BookServiceWorker -}}
44+
{{- $swJS := resources.Get "sw-register.js" | resources.ExecuteAsTemplate "sw.js" . | resources.Minify | resources.Fingerprint }}
45+
<script defer src="{{ $swJS.RelPermalink }}" {{ template "integrity" $swJS }}></script>
46+
{{ end -}}
47+
48+
{{ partial "google_analytics.html" . }}
49+
50+
{{- range .AlternativeOutputFormats -}}
51+
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Title | safeHTML }}
52+
{{ end -}}
53+
54+
{{- define "integrity" -}}
55+
{{- if (urls.Parse .Permalink).Host -}}
56+
integrity="{{ .Data.Integrity }}" crossorigin="anonymous"
57+
{{- end -}}
58+
{{- end -}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ return .Site.Home.RelPermalink }}

hugo/layouts/baseof.html

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Language.Lang }}" dir="{{ default "ltr" .Language.LanguageDirection }}">
3+
<head>
4+
{{ partial "docs/html-head" . }}
5+
{{ partial "docs/inject/head" . }}
6+
</head>
7+
<body dir="{{ default "ltr" .Language.LanguageDirection }}" class="book-kind-{{ .Kind }} book-type-{{ .Type }}{{ with .Layout }} book-layout-{{ . }}{{ end }}">
8+
<input type="checkbox" class="hidden toggle" id="menu-control" />
9+
<input type="checkbox" class="hidden toggle" id="toc-control" />
10+
<main class="container flex">
11+
{{ template "menu-container" . }} <!-- Left menu -->
12+
13+
<div class="book-page">
14+
<header class="book-header hidden">
15+
{{ template "header" . }} <!-- Mobile layout header -->
16+
</header>
17+
18+
{{ partial "docs/inject/content-before" . }}
19+
{{ template "main" . }} <!-- Page Content -->
20+
{{ partial "docs/inject/content-after" . }}
21+
22+
<footer class="book-footer">
23+
{{ template "footer" . }} <!-- Footer under page content -->
24+
{{ template "comments" . }} <!-- Comments block -->
25+
{{ partial "docs/inject/footer" . }}
26+
{{ template "copyright" . }} <!-- Copyright block -->
27+
{{ template "clipboard" . }}
28+
</footer>
29+
30+
<label for="menu-control" class="hidden book-menu-overlay"></label>
31+
</div>
32+
33+
{{ template "toc-container" . }} <!-- Table of Contents -->
34+
</main>
35+
36+
{{ partial "docs/inject/body" . }}
37+
</body>
38+
</html>
39+
40+
{{ define "menu-container" }}
41+
<aside class="book-menu">
42+
<div class="book-menu-content">
43+
{{ template "menu" . }}
44+
</div>
45+
</aside>
46+
{{ end }}
47+
48+
{{ define "menu" }}
49+
{{ partial "docs/menu" . }}
50+
{{ end }}
51+
52+
{{ define "header" }}
53+
{{ partial "docs/header" . }}
54+
55+
{{ if partial "docs/toc-show" . }}
56+
<aside class="hidden">
57+
{{ template "toc" . }}
58+
</aside>
59+
{{ end }}
60+
{{ end }}
61+
62+
{{ define "footer" }}
63+
{{ partial "docs/footer" . }}
64+
{{ end }}
65+
66+
{{ define "clipboard" }}
67+
{{ with resources.Get "clipboard.js" | resources.Minify }}
68+
<script>{{ .Content | safeJS }}</script>
69+
{{ end }}
70+
{{ end }}
71+
72+
{{ define "copyright" }}
73+
{{ if or .Site.Copyright .Params.Copyright }}
74+
<div class="book-copyright flex justify-center">
75+
{{ partial "docs/copyright" . }}
76+
</div>
77+
{{ end }}
78+
{{ end }}
79+
80+
{{ define "comments" }}
81+
{{ if and .Content (default true (default .Site.Params.BookComments .Params.BookComments)) }}
82+
<div class="book-comments">
83+
{{- partial "docs/comments" . -}}
84+
</div>
85+
{{ end }}
86+
{{ end }}
87+
88+
{{ define "main" }}
89+
<article class="markdown book-article">
90+
{{- .Content -}}
91+
</article>
92+
{{ end }}
93+
94+
{{ define "toc-container" }}
95+
{{ if partial "docs/toc-show" . }}
96+
<aside class="book-toc">
97+
<div class="book-toc-content">
98+
{{ template "toc" . }}
99+
</div>
100+
</aside>
101+
{{ end }}
102+
{{ end }}
103+
104+
{{ define "toc" }}
105+
{{ partial "docs/toc" . }}
106+
{{ end }}

hugo/public/book.min.98c83e4c8e1c8661368bcb29bbaf4dcc9d31b8164f76aae322d82d86a9750c65.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hugo/public/en.search-data.min.f674593486e6225509237ed740d2757c0e1dab66ac02ab9f9346c94789b9fbcd.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

hugo/public/en.search.min.67c6bf5f3c7764aa0d9f0adff70d54ce40666f5e1d3075fced8780416c8cf680.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)