mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-22 04:08:49 +02:00
docs: tune performance and theming of documentation (#2164)
* docs: tune performance and theming of documentation * docs: enable auto-toggle based on user preference
This commit is contained in:
parent
cf38e457d7
commit
30765a4511
@ -18,6 +18,11 @@
|
||||
display: none
|
||||
}
|
||||
|
||||
[data-md-color-scheme=slate] .tx-container {
|
||||
padding-top: 1rem;
|
||||
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: hsla(232, 15%, 21%, 1)'/></svg>") no-repeat bottom, linear-gradient(to bottom, var(--md-primary-fg-color), var(--goreleaser-primary-color) 99%, #fff 99%)
|
||||
}
|
||||
|
||||
.tx-container {
|
||||
padding-top: 1rem;
|
||||
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: white' /></svg>") no-repeat bottom, linear-gradient(to bottom, var(--md-primary-fg-color), var(--goreleaser-primary-color) 99%, #fff 99%)
|
||||
|
@ -1,4 +1,5 @@
|
||||
site_name: GoReleaser
|
||||
site_url: https://goreleaser.com
|
||||
site_description: Deliver Go binaries as fast and easily as possible
|
||||
copyright: Made with ❤️ by GoReleaser contributors.
|
||||
repo_name: goreleaser/goreleaser
|
||||
@ -13,6 +14,19 @@ theme:
|
||||
favicon: static/favicon.ico
|
||||
include_search_page: false
|
||||
search_index_only: true
|
||||
features:
|
||||
- navigation.instant
|
||||
palette:
|
||||
- media: "(prefers-color-scheme: light)" # Light mode
|
||||
scheme: default
|
||||
toggle:
|
||||
icon: material/lightbulb-outline
|
||||
name: Switch to light mode
|
||||
- media: "(prefers-color-scheme: dark)" # Dark mode
|
||||
scheme: slate
|
||||
toggle:
|
||||
icon: material/lightbulb
|
||||
name: Switch to dark mode
|
||||
|
||||
plugins:
|
||||
# disable temporarely because its freezing the page
|
||||
@ -23,7 +37,6 @@ plugins:
|
||||
- minify:
|
||||
minify_html: true
|
||||
|
||||
|
||||
extra:
|
||||
social:
|
||||
- icon: fontawesome/brands/github-alt
|
||||
|
Loading…
x
Reference in New Issue
Block a user