mirror of https://github.com/AMT-Cheif/drift.git
Docs: Update hugo and docsy
This commit is contained in:
parent
c6230e628f
commit
051519bc73
|
@ -4,5 +4,6 @@ $enable-rounded: false;
|
||||||
$enable-shadows: false;
|
$enable-shadows: false;
|
||||||
|
|
||||||
$secondary: #4CAF50;
|
$secondary: #4CAF50;
|
||||||
|
$navbar-padding-x: 1rem;
|
||||||
|
|
||||||
$code-color: #dc3545;
|
$code-color: #dc3545;
|
|
@ -41,6 +41,10 @@ hrefTargetBlank = false
|
||||||
angledQuotes = false
|
angledQuotes = false
|
||||||
latexDashes = true
|
latexDashes = true
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
# todo migrate to goldmark (will need configuration for backwards-compatibility https://gohugo.io/getting-started/configuration-markup/)
|
||||||
|
defaultMarkdownHandler = "blackfriday"
|
||||||
|
|
||||||
# Image processing configuration.
|
# Image processing configuration.
|
||||||
[imaging]
|
[imaging]
|
||||||
resampleFilter = "CatmullRom"
|
resampleFilter = "CatmullRom"
|
||||||
|
|
|
@ -71,6 +71,22 @@ If an entry with the provided id exists, it will be sent to the stream. Otherwis
|
||||||
more than one entry (which is impossible in this case), an error will be added
|
more than one entry (which is impossible in this case), an error will be added
|
||||||
instead.
|
instead.
|
||||||
|
|
||||||
|
### Mapping
|
||||||
|
|
||||||
|
Before calling `watch` or `get` (or the single variants), you can use `map` to transform
|
||||||
|
the result.
|
||||||
|
```dart
|
||||||
|
Stream<List<String>> contentWithLongTitles() {
|
||||||
|
final query = select(todos)
|
||||||
|
..where((t) => t.title.length.isBiggerOrEqualValue(16));
|
||||||
|
|
||||||
|
return query
|
||||||
|
.map((row) => row.content)
|
||||||
|
.watch();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
If you need more complex queries with joins or custom columns, see [this site]({{< relref "../Advanced Features/joins.md" >}}).
|
If you need more complex queries with joins or custom columns, see [this site]({{< relref "../Advanced Features/joins.md" >}}).
|
||||||
|
|
||||||
## Updates and deletes
|
## Updates and deletes
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ partialCached "favicons.html" . }}
|
{{ partialCached "favicons.html" . }}
|
||||||
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
|
|
||||||
{{ if .Description }}
|
{{ if .Description }}
|
||||||
<meta name="description" content="{{ .Description }}">
|
<meta name="description" content="{{ .Description }}">
|
||||||
|
@ -33,4 +33,10 @@
|
||||||
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
||||||
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
{{ if .Site.Params.offlineSearch }}
|
||||||
|
<script
|
||||||
|
src="https://unpkg.com/lunr@2.3.8/lunr.min.js"
|
||||||
|
integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
{{end}}
|
||||||
{{ partial "hooks/head-end.html" . }}
|
{{ partial "hooks/head-end.html" . }}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 97488e0b9b63fd028fc1ae21e8a18a997439b5cd
|
Subproject commit 37a6452651d05cdba2634dc83cf812491d84d61f
|
|
@ -12,4 +12,4 @@
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
environment = { HUGO_ENV="production" }
|
environment = { HUGO_ENV="production", HUGO_VERSION="0.62.2" }
|
Loading…
Reference in New Issue