From 90eabc9ae0898ea6a0c94684f6101e1c18b3ef27 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 13 Jul 2025 13:43:57 +0300 Subject: [PATCH] chore(snix): format TOML files Change-Id: I4c5bf0a378c69a2a22097000583b1abcee089190 Reviewed-on: https://cl.snix.dev/c/snix/+/30602 Tested-by: besadii Autosubmit: Florian Klink Reviewed-by: Yureka --- contrib/crunch-v2/Cargo.toml | 15 +- contrib/narinfo2parquet/Cargo.toml | 6 +- contrib/turbofetch/Cargo.toml | 12 +- snix/Cargo.toml | 3 +- snix/build/Cargo.toml | 2 +- snix/castore-http/Cargo.toml | 9 +- snix/castore/Cargo.toml | 9 +- snix/cli/Cargo.toml | 2 +- snix/clippy.toml | 2 +- snix/docs/book.toml | 4 +- snix/eval/Cargo.toml | 6 +- snix/eval/builtin-macros/Cargo.toml | 11 +- snix/glue/Cargo.toml | 8 +- snix/nar-bridge/Cargo.toml | 11 +- snix/nix-compat/Cargo.toml | 6 +- snix/nix-daemon/Cargo.toml | 9 +- snix/store/Cargo.toml | 29 +++- snix/tracing/Cargo.toml | 39 +++-- tools/depotfmt.nix | 5 + web/config/_default/hugo.toml | 86 +++++----- web/config/_default/languages.toml | 16 +- web/config/_default/markup.toml | 52 +++--- web/config/_default/menus/menus.en.toml | 64 ++++---- web/config/_default/module.toml | 80 ++++----- web/config/_default/params.toml | 207 +++++++++++++----------- web/netlify.toml | 54 +++---- 26 files changed, 413 insertions(+), 334 deletions(-) diff --git a/contrib/crunch-v2/Cargo.toml b/contrib/crunch-v2/Cargo.toml index e0159afd9..a8228c6d4 100644 --- a/contrib/crunch-v2/Cargo.toml +++ b/contrib/crunch-v2/Cargo.toml @@ -16,8 +16,12 @@ bytes = "1.6.1" futures = "0.3.29" tokio = { version = "1.37.0", features = ["full"] } -rusoto_core = { version = "0.48.0", default-features = false, features = ["hyper-rustls"] } -rusoto_s3 = { version = "0.48.0", default-features = false, features = ["rustls"] } +rusoto_core = { version = "0.48.0", default-features = false, features = [ + "hyper-rustls", +] } +rusoto_s3 = { version = "0.48.0", default-features = false, features = [ + "rustls", +] } nix-compat = { version = "0.1.0", path = "../../snix/nix-compat" } sled = "0.34.7" @@ -31,7 +35,12 @@ bzip2 = "0.4.4" xz2 = "0.1.7" zstd = "0.13.0" prost = "0.12.2" -polars = { version = "0.35.4", default-features = false, features = ["parquet", "lazy", "sql", "dtype-struct"] } +polars = { version = "0.35.4", default-features = false, features = [ + "parquet", + "lazy", + "sql", + "dtype-struct", +] } indicatif = "0.17.7" clap = { version = "4.4.18", features = ["derive"] } diff --git a/contrib/narinfo2parquet/Cargo.toml b/contrib/narinfo2parquet/Cargo.toml index e4a5d46aa..bcf9a1015 100644 --- a/contrib/narinfo2parquet/Cargo.toml +++ b/contrib/narinfo2parquet/Cargo.toml @@ -21,8 +21,4 @@ hashbrown = { version = "0.14.5", features = ["raw"] } [dependencies.polars] version = "0.36.2" default-features = false -features = [ - "parquet", - "polars-io", - "dtype-categorical" -] +features = ["parquet", "polars-io", "dtype-categorical"] diff --git a/contrib/turbofetch/Cargo.toml b/contrib/turbofetch/Cargo.toml index eac2c0f9a..bd57823f2 100644 --- a/contrib/turbofetch/Cargo.toml +++ b/contrib/turbofetch/Cargo.toml @@ -8,7 +8,9 @@ edition = "2024" members = ["."] [dependencies] -aws_lambda_events = { version = "0.11.1", default-features = false, features = ["lambda_function_urls"] } +aws_lambda_events = { version = "0.11.1", default-features = false, features = [ + "lambda_function_urls", +] } bytes = "1.5.0" data-encoding = "2.6.0" futures = { version = "0.3.30", default-features = false, features = ["std"] } @@ -16,8 +18,12 @@ httparse = "1.8.0" hyper = { version = "0.14.27", default-features = false } lambda_runtime = "0.8.2" magic-buffer = "0.1.1" -rusoto_core = { version = "0.48.0", features = ["rustls"], default-features = false } -rusoto_s3 = { version = "0.48.0", features = ["rustls"], default-features = false } +rusoto_core = { version = "0.48.0", features = [ + "rustls", +], default-features = false } +rusoto_s3 = { version = "0.48.0", features = [ + "rustls", +], default-features = false } serde_json = "1.0.108" serde = { version = "1.0.190", features = ["derive"] } tokio = { version = "1.33.0", features = ["full"] } diff --git a/snix/Cargo.toml b/snix/Cargo.toml index ac24a2737..22c8cb0fe 100644 --- a/snix/Cargo.toml +++ b/snix/Cargo.toml @@ -112,7 +112,8 @@ reqwest = { version = "0.12.7", default-features = false } reqwest-middleware = { version = "0.4.1", default-features = false } reqwest-tracing = { version = "0.5.6", default-features = false } rnix = "0.11.0" -rowan = "0.15" # keep in sync with rnix +# keep in sync with rnix +rowan = "0.15" rstest = "0.19.0" rstest_reuse = "0.6.0" rustc-hash = "2.0.0" diff --git a/snix/build/Cargo.toml b/snix/build/Cargo.toml index dd601ac0b..690cc7687 100644 --- a/snix/build/Cargo.toml +++ b/snix/build/Cargo.toml @@ -13,7 +13,7 @@ tokio = { workspace = true, features = ["process"] } tokio-listener = { workspace = true, features = ["tonic012"] } tonic = { workspace = true, features = ["tls", "tls-roots"] } # TODO: put the fuse dep behind a feature flag? -snix-castore = { path = "../castore", features = ["fuse"]} +snix-castore = { path = "../castore", features = ["fuse"] } tracing.workspace = true url.workspace = true mimalloc.workspace = true diff --git a/snix/castore-http/Cargo.toml b/snix/castore-http/Cargo.toml index a05bbb59b..3ec06f024 100644 --- a/snix/castore-http/Cargo.toml +++ b/snix/castore-http/Cargo.toml @@ -12,8 +12,13 @@ clap = { workspace = true, features = ["derive"] } mime_guess = "2.0.5" mime = "0.3.17" path-clean.workspace = true -tokio = { workspace = true, features = [ "tracing"] } -tokio-listener = { workspace = true, features = ["axum07", "clap", "multi-listener", "sd_listen"] } +tokio = { workspace = true, features = ["tracing"] } +tokio-listener = { workspace = true, features = [ + "axum07", + "clap", + "multi-listener", + "sd_listen", +] } tracing.workspace = true tracing-subscriber.workspace = true tokio-util.workspace = true diff --git a/snix/castore/Cargo.toml b/snix/castore/Cargo.toml index ea7ac56a3..729ce2e6d 100644 --- a/snix/castore/Cargo.toml +++ b/snix/castore/Cargo.toml @@ -23,7 +23,14 @@ thiserror.workspace = true tokio-stream = { workspace = true, features = ["fs", "net"] } tokio-util = { workspace = true, features = ["io", "io-util", "codec"] } tokio-tar.workspace = true -tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } +tokio = { workspace = true, features = [ + "fs", + "macros", + "net", + "rt", + "rt-multi-thread", + "signal", +] } toml = { version = "0.8.19", optional = true } tonic.workspace = true tower.workspace = true diff --git a/snix/cli/Cargo.toml b/snix/cli/Cargo.toml index 2af880ff3..4d7a82344 100644 --- a/snix/cli/Cargo.toml +++ b/snix/cli/Cargo.toml @@ -9,7 +9,7 @@ path = "src/main.rs" [dependencies] snix-build = { path = "../build" } -snix-store = { path = "../store", default-features = false, features = []} +snix-store = { path = "../store", default-features = false, features = [] } snix-eval = { path = "../eval" } snix-glue = { path = "../glue" } snix-tracing = { path = "../tracing" } diff --git a/snix/clippy.toml b/snix/clippy.toml index bdce4ddfb..59fea0723 100644 --- a/snix/clippy.toml +++ b/snix/clippy.toml @@ -4,5 +4,5 @@ ignore-interior-mutability = [ # make sure to specify the originating type name, not re-exports! "bytes::Bytes", "snix_castore::digests::B3Digest", - "snix_castore::path::component::PathComponent" + "snix_castore::path::component::PathComponent", ] diff --git a/snix/docs/book.toml b/snix/docs/book.toml index 56bdd860c..81af80227 100644 --- a/snix/docs/book.toml +++ b/snix/docs/book.toml @@ -12,8 +12,8 @@ use-data-uris = true [preprocessor.admonish] command = "mdbook-admonish" -after = ["links"] # ensure `{{#include}}` also gets processed -assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install` +after = ["links"] # ensure `{{#include}}` also gets processed +assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install` [preprocessor.d2] command = "d2" diff --git a/snix/eval/Cargo.toml b/snix/eval/Cargo.toml index d16971332..1d907ae75 100644 --- a/snix/eval/Cargo.toml +++ b/snix/eval/Cargo.toml @@ -18,7 +18,11 @@ itertools.workspace = true lexical-core = { workspace = true, features = ["format", "parse-floats"] } os_str_bytes = { workspace = true, features = ["conversions"] } path-clean.workspace = true -proptest = { workspace = true, features = ["std", "alloc", "tempfile"], optional = true } +proptest = { workspace = true, features = [ + "std", + "alloc", + "tempfile", +], optional = true } regex.workspace = true rnix.workspace = true rowan.workspace = true # pinned by rnix diff --git a/snix/eval/builtin-macros/Cargo.toml b/snix/eval/builtin-macros/Cargo.toml index 189faea55..8091658ce 100644 --- a/snix/eval/builtin-macros/Cargo.toml +++ b/snix/eval/builtin-macros/Cargo.toml @@ -1,11 +1,18 @@ [package] name = "snix-eval-builtin-macros" version = "0.0.1" -authors = [ "Griffin Smith " ] +authors = ["Griffin Smith "] edition = "2021" [dependencies] -syn = { version = "1.0.109", features = ["full", "parsing", "printing", "visit", "visit-mut", "extra-traits"] } +syn = { version = "1.0.109", features = [ + "full", + "parsing", + "printing", + "visit", + "visit-mut", + "extra-traits", +] } quote.workspace = true proc-macro2.workspace = true diff --git a/snix/glue/Cargo.toml b/snix/glue/Cargo.toml index 389ca5298..8810c4e93 100644 --- a/snix/glue/Cargo.toml +++ b/snix/glue/Cargo.toml @@ -5,10 +5,10 @@ edition = "2024" [dependencies] async-compression = { workspace = true, features = [ - "tokio", - "gzip", - "bzip2", - "xz", + "tokio", + "gzip", + "bzip2", + "xz", ] } async-stream.workspace = true bstr.workspace = true diff --git a/snix/nar-bridge/Cargo.toml b/snix/nar-bridge/Cargo.toml index 5d6704454..2980ef179 100644 --- a/snix/nar-bridge/Cargo.toml +++ b/snix/nar-bridge/Cargo.toml @@ -19,10 +19,17 @@ nix-compat = { path = "../nix-compat", features = ["async"] } opentelemetry.workspace = true thiserror.workspace = true tokio.workspace = true -tokio-listener = { workspace = true, features = ["axum07", "clap", "multi-listener", "sd_listen"] } +tokio-listener = { workspace = true, features = [ + "axum07", + "clap", + "multi-listener", + "sd_listen", +] } tokio-util = { workspace = true, features = ["io", "io-util", "compat"] } tonic = { workspace = true, features = ["tls", "tls-roots"] } -tower-otel-http-metrics = { workspace = true, features = ["axum"], optional = true } +tower-otel-http-metrics = { workspace = true, features = [ + "axum", +], optional = true } snix-castore = { path = "../castore" } snix-store = { path = "../store" } snix-tracing = { path = "../tracing", features = ["tonic", "axum"] } diff --git a/snix/nix-compat/Cargo.toml b/snix/nix-compat/Cargo.toml index 6e3da2211..dbbb8de15 100644 --- a/snix/nix-compat/Cargo.toml +++ b/snix/nix-compat/Cargo.toml @@ -35,9 +35,9 @@ thiserror.workspace = true tracing.workspace = true bytes = { workspace = true, optional = true } tokio = { workspace = true, features = [ - "io-util", - "macros", - "sync", + "io-util", + "macros", + "sync", ], optional = true } pin-project-lite = { workspace = true, optional = true } num_enum = "0.7.3" diff --git a/snix/nix-daemon/Cargo.toml b/snix/nix-daemon/Cargo.toml index 916cf3ea3..9c47ef57b 100644 --- a/snix/nix-daemon/Cargo.toml +++ b/snix/nix-daemon/Cargo.toml @@ -12,7 +12,14 @@ nix-compat = { path = "../nix-compat" } snix-castore = { path = "../castore" } snix-store = { path = "../store" } snix-tracing = { path = "../tracing" } -tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } +tokio = { workspace = true, features = [ + "fs", + "macros", + "net", + "rt", + "rt-multi-thread", + "signal", +] } tokio-listener.workspace = true tracing.workspace = true diff --git a/snix/store/Cargo.toml b/snix/store/Cargo.toml index a02056b33..5dedb1da1 100644 --- a/snix/store/Cargo.toml +++ b/snix/store/Cargo.toml @@ -5,7 +5,13 @@ edition = "2024" [dependencies] anyhow.workspace = true -async-compression = { workspace = true, features = ["tokio", "bzip2", "gzip", "xz", "zstd"] } +async-compression = { workspace = true, features = [ + "tokio", + "bzip2", + "gzip", + "xz", + "zstd", +] } async-stream.workspace = true blake3 = { workspace = true, features = ["rayon", "std"] } bstr.workspace = true @@ -27,8 +33,20 @@ sha1.workspace = true sha2.workspace = true md-5.workspace = true thiserror.workspace = true -tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } -tokio-listener = { workspace = true, features = ["clap", "multi-listener", "sd_listen", "tonic012"] } +tokio = { workspace = true, features = [ + "fs", + "macros", + "net", + "rt", + "rt-multi-thread", + "signal", +] } +tokio-listener = { workspace = true, features = [ + "clap", + "multi-listener", + "sd_listen", + "tonic012", +] } tokio-stream = { workspace = true, features = ["fs"] } tokio-util = { workspace = true, features = ["io", "io-util", "compat"] } tonic = { workspace = true, features = ["tls", "tls-roots"] } @@ -67,10 +85,7 @@ hex-literal.workspace = true [features] default = ["cloud", "fuse", "otlp", "tonic-reflection"] -cloud = [ - "dep:bigtable_rs", - "snix-castore/cloud" -] +cloud = ["dep:bigtable_rs", "snix-castore/cloud"] fuse = ["snix-castore/fuse"] otlp = ["snix-tracing/otlp"] tonic-reflection = ["dep:tonic-reflection", "snix-castore/tonic-reflection"] diff --git a/snix/tracing/Cargo.toml b/snix/tracing/Cargo.toml index f4e2e4548..d93b50696 100644 --- a/snix/tracing/Cargo.toml +++ b/snix/tracing/Cargo.toml @@ -4,7 +4,10 @@ version = "0.1.0" edition = "2024" [dependencies] -tracing = { workspace = true, features = ["max_level_trace", "release_max_level_debug"] } +tracing = { workspace = true, features = [ + "max_level_trace", + "release_max_level_debug", +] } tracing-subscriber = { workspace = true, features = ["env-filter"] } indicatif.workspace = true tracing-indicatif.workspace = true @@ -13,14 +16,20 @@ thiserror.workspace = true tracing-opentelemetry = { workspace = true, optional = true } opentelemetry = { workspace = true, optional = true } -opentelemetry-otlp = { workspace = true, features = ["grpc-tonic"], optional = true } -opentelemetry_sdk = { workspace = true, features = ["rt-tokio"], optional = true } -tracing-tracy = { workspace = true, features = ["flush-on-exit"], optional = true } +opentelemetry-otlp = { workspace = true, features = [ + "grpc-tonic", +], optional = true } +opentelemetry_sdk = { workspace = true, features = [ + "rt-tokio", +], optional = true } +tracing-tracy = { workspace = true, features = [ + "flush-on-exit", +], optional = true } opentelemetry-http = { workspace = true, optional = true } opentelemetry-semantic-conventions = { workspace = true, optional = true } tonic = { workspace = true, optional = true } -http = { workspace = true, optional = true } +http = { workspace = true, optional = true } reqwest-tracing = { workspace = true, optional = true } @@ -37,19 +46,7 @@ otlp = [ "dep:opentelemetry-semantic-conventions", "reqwest-tracing?/opentelemetry_0_28", ] -tracy = [ - "dep:tracing-tracy" -] -tonic = [ - "dep:tonic", - "dep:http", -] -reqwest = [ - "dep:reqwest-tracing", -] -axum = [ - "dep:axum", -] - -[lints] -workspace = true +tracy = ["dep:tracing-tracy"] +tonic = ["dep:tonic", "dep:http"] +reqwest = ["dep:reqwest-tracing"] +axum = ["dep:axum"] diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix index 062b82619..16b238482 100644 --- a/tools/depotfmt.nix +++ b/tools/depotfmt.nix @@ -20,6 +20,11 @@ let command = "${pkgs.rustfmt}/bin/rustfmt" includes = [ "*.rs" ] + [formatter.toml] + command = "${pkgs.taplo}/bin/taplo" + options = [ "format" ] + includes = [ "*.toml" ] + [formatter.editorconfig] command = "${pkgs.editorconfig-checker}/bin/editorconfig-checker" includes = [ diff --git a/web/config/_default/hugo.toml b/web/config/_default/hugo.toml index 05dad2cdc..a2144333b 100644 --- a/web/config/_default/hugo.toml +++ b/web/config/_default/hugo.toml @@ -10,7 +10,7 @@ enableRobotsTXT = true languageCode = "en-US" pagerSize = 10 rssLimit = 10 -summarylength = 20 # 70 (default) +summarylength = 20 # 70 (default) # Multilingual defaultContentLanguage = "en" @@ -20,67 +20,67 @@ defaultContentLanguageInSubdir = false copyRight = "Copyright (c) 2025 The Snix Project" [build.buildStats] - enable = true +enable = true [outputs] - home = ["HTML", "RSS", "searchIndex"] - section = ["HTML", "RSS", "SITEMAP"] +home = ["HTML", "RSS", "searchIndex"] +section = ["HTML", "RSS", "SITEMAP"] [outputFormats.searchIndex] - mediaType = "application/json" - baseName = "search-index" - isPlainText = true - notAlternative = true +mediaType = "application/json" +baseName = "search-index" +isPlainText = true +notAlternative = true # Add output format for section sitemap.xml [outputFormats.SITEMAP] - mediaType = "application/xml" - baseName = "sitemap" - isHTML = false - isPlainText = true - noUgly = true - rel = "sitemap" +mediaType = "application/xml" +baseName = "sitemap" +isHTML = false +isPlainText = true +noUgly = true +rel = "sitemap" [sitemap] - changefreq = "monthly" - filename = "sitemap.xml" - priority = 0.5 +changefreq = "monthly" +filename = "sitemap.xml" +priority = 0.5 [caches] - [caches.getjson] - dir = ":cacheDir/:project" - maxAge = -1 # "30m" +[caches.getjson] +dir = ":cacheDir/:project" +maxAge = -1 # "30m" [taxonomies] - contributor = "contributors" - category = "categories" - tag = "tags" +contributor = "contributors" +category = "categories" +tag = "tags" [permalinks] - blog = "/blog/:slug/" - docs = "/docs/:sections[1:]/:slug/" +blog = "/blog/:slug/" +docs = "/docs/:sections[1:]/:slug/" # docs = "/docs/1.0/:sections[1:]/:slug/" [minify.tdewolff.html] - keepWhitespace = false +keepWhitespace = false [related] - threshold = 80 - includeNewer = true - toLower = false - [[related.indices]] - name = "categories" - weight = 100 - [[related.indices]] - name = "tags" - weight = 80 - [[related.indices]] - name = "date" - weight = 10 +threshold = 80 +includeNewer = true +toLower = false +[[related.indices]] +name = "categories" +weight = 100 +[[related.indices]] +name = "tags" +weight = 80 +[[related.indices]] +name = "date" +weight = 10 [imaging] - anchor = "Center" - bgColor = "#ffffff" - hint = "photo" - quality = 85 - resampleFilter = "Lanczos" +anchor = "Center" +bgColor = "#ffffff" +hint = "photo" +quality = 85 +resampleFilter = "Lanczos" diff --git a/web/config/_default/languages.toml b/web/config/_default/languages.toml index e5283380e..578049c92 100644 --- a/web/config/_default/languages.toml +++ b/web/config/_default/languages.toml @@ -1,9 +1,9 @@ [en] - languageName = "English" - contentDir = "content/en" - weight = 10 - [en.params] - languageISO = "EN" - languageTag = "en-US" - footer = '' - # alertText = 'Doks version 1.0 just shipped!' +languageName = "English" +contentDir = "content/en" +weight = 10 +[en.params] +languageISO = "EN" +languageTag = "en-US" +footer = '' +# alertText = 'Doks version 1.0 just shipped!' diff --git a/web/config/_default/markup.toml b/web/config/_default/markup.toml index 6eaba1e2a..a185940c5 100644 --- a/web/config/_default/markup.toml +++ b/web/config/_default/markup.toml @@ -1,33 +1,33 @@ defaultMarkdownHandler = "goldmark" [goldmark] - [goldmark.extensions] - linkify = false - [goldmark.parser] - autoHeadingID = true - autoHeadingIDType = "github" - [goldmark.parser.attribute] - block = true - title = true - [goldmark.renderer] - unsafe = true +[goldmark.extensions] +linkify = false +[goldmark.parser] +autoHeadingID = true +autoHeadingIDType = "github" +[goldmark.parser.attribute] +block = true +title = true +[goldmark.renderer] +unsafe = true [highlight] - anchorLineNos = false - codeFences = true - guessSyntax = false - hl_Lines = '' - hl_inline = false - lineAnchors = '' - lineNoStart = 1 - lineNos = false - lineNumbersInTable = false - noClasses = false - noHl = false - style = 'monokai' - tabWidth = 2 +anchorLineNos = false +codeFences = true +guessSyntax = false +hl_Lines = '' +hl_inline = false +lineAnchors = '' +lineNoStart = 1 +lineNos = false +lineNumbersInTable = false +noClasses = false +noHl = false +style = 'monokai' +tabWidth = 2 [tableOfContents] - endLevel = 3 - ordered = false - startLevel = 2 +endLevel = 3 +ordered = false +startLevel = 2 diff --git a/web/config/_default/menus/menus.en.toml b/web/config/_default/menus/menus.en.toml index 11f088168..7bd90e09c 100644 --- a/web/config/_default/menus/menus.en.toml +++ b/web/config/_default/menus/menus.en.toml @@ -17,37 +17,37 @@ # url = "/docs/lorem/" [[guide]] - name = "Lorem" - weight = 10 - identifier = "lorem" - url = "/guide/lorem/" +name = "Lorem" +weight = 10 +identifier = "lorem" +url = "/guide/lorem/" [[tutorial]] - name = "Lorem" - weight = 10 - identifier = "lorem" - url = "/tutorial/lorem/" +name = "Lorem" +weight = 10 +identifier = "lorem" +url = "/tutorial/lorem/" [[main]] - name = "About" - url = "/about/" - weight = 10 +name = "About" +url = "/about/" +weight = 10 [[main]] - name = "Docs" - url = "/docs/components/architecture/" +name = "Docs" +url = "/docs/components/architecture/" # url = "/docs/1.0/prologue/introduction/" - weight = 20 +weight = 20 [[main]] - name = "Blog" - url = "/blog/" - weight = 30 +name = "Blog" +url = "/blog/" +weight = 30 [[main]] - name = "Contact" - url = "/contact/" - weight = 31 +name = "Contact" +url = "/contact/" +weight = 31 # [[social]] # name = "X" @@ -62,22 +62,22 @@ # weight = 20 [[social]] - name = "Gerrit" - pre = '' - url = "https://cl.snix.dev" - weight = 30 +name = "Gerrit" +pre = '' +url = "https://cl.snix.dev" +weight = 30 [[social]] - name = "Code" - pre = '' - url = "https://git.snix.dev/snix/snix" - weight = 31 +name = "Code" +pre = '' +url = "https://git.snix.dev/snix/snix" +weight = 31 [[social]] - name = "Rustdoc" - pre = 'Cubes Streamline Icon: https://streamlinehq.com' - url = "https://snix.dev/rustdoc" - weight = 32 +name = "Rustdoc" +pre = 'Cubes Streamline Icon: https://streamlinehq.com' +url = "https://snix.dev/rustdoc" +weight = 32 # [[sidebar_docs]] # name = "Guides" diff --git a/web/config/_default/module.toml b/web/config/_default/module.toml index 8073c8563..060077b84 100644 --- a/web/config/_default/module.toml +++ b/web/config/_default/module.toml @@ -1,87 +1,87 @@ # mounts ## archetypes [[mounts]] - source = "node_modules/@thulite/doks-core/archetypes" - target = "archetypes" +source = "node_modules/@thulite/doks-core/archetypes" +target = "archetypes" [[mounts]] - source = "archetypes" - target = "archetypes" +source = "archetypes" +target = "archetypes" ## assets [[mounts]] - source = "node_modules/@thulite/core/assets" - target = "assets" +source = "node_modules/@thulite/core/assets" +target = "assets" [[mounts]] - source = "node_modules/@thulite/images/assets" - target = "assets" +source = "node_modules/@thulite/images/assets" +target = "assets" [[mounts]] - source = "node_modules/@thulite/doks-core/assets" - target = "assets" +source = "node_modules/@thulite/doks-core/assets" +target = "assets" [[mounts]] - source = "node_modules/@tabler/icons/icons" - target = "assets/svgs/tabler-icons" +source = "node_modules/@tabler/icons/icons" +target = "assets/svgs/tabler-icons" [[mounts]] - source = "assets" - target = "assets" +source = "assets" +target = "assets" ## content [[mounts]] - source = "content" - target = "content" +source = "content" +target = "content" ## data [[mounts]] - source = "node_modules/@thulite/doks-core/data" - target = "data" +source = "node_modules/@thulite/doks-core/data" +target = "data" [[mounts]] - source = "data" - target = "data" +source = "data" +target = "data" ## i18n [[mounts]] - source = "node_modules/@thulite/doks-core/i18n" - target = "i18n" +source = "node_modules/@thulite/doks-core/i18n" +target = "i18n" [[mounts]] - source = "i18n" - target = "i18n" +source = "i18n" +target = "i18n" ## layouts [[mounts]] - source = "node_modules/@thulite/core/layouts" - target = "layouts" +source = "node_modules/@thulite/core/layouts" +target = "layouts" [[mounts]] - source = "node_modules/@thulite/seo/layouts" - target = "layouts" +source = "node_modules/@thulite/seo/layouts" +target = "layouts" [[mounts]] - source = "node_modules/@thulite/images/layouts" - target = "layouts" +source = "node_modules/@thulite/images/layouts" +target = "layouts" [[mounts]] - source = "node_modules/@thulite/doks-core/layouts" - target = "layouts" +source = "node_modules/@thulite/doks-core/layouts" +target = "layouts" [[mounts]] - source = "node_modules/@thulite/inline-svg/layouts" - target = "layouts" +source = "node_modules/@thulite/inline-svg/layouts" +target = "layouts" [[mounts]] - source = "layouts" - target = "layouts" +source = "layouts" +target = "layouts" ## static [[mounts]] - source = "node_modules/@thulite/doks-core/static" - target = "static" +source = "node_modules/@thulite/doks-core/static" +target = "static" [[mounts]] - source = "static" - target = "static" +source = "static" +target = "static" diff --git a/web/config/_default/params.toml b/web/config/_default/params.toml index 00dda3c79..2ff0778eb 100644 --- a/web/config/_default/params.toml +++ b/web/config/_default/params.toml @@ -7,132 +7,145 @@ images = ["cover.png"] mainSections = ["docs"] [social] - twitter = "getdoks" +twitter = "getdoks" # Doks (@thulite/doks-core) [doks] - # Color mode - colorMode = "auto" # auto (default), light or dark - colorModeToggler = true # true (default) or false (this setting is only relevant when colorMode = auto) +# Color mode +colorMode = "auto" # auto (default), light or dark +colorModeToggler = true # true (default) or false (this setting is only relevant when colorMode = auto) - # Navbar - navbarSticky = true # true (default) or false - containerBreakpoint = "lg" # "", "sm", "md", "lg" (default), "xl", "xxl", or "fluid" +# Navbar +navbarSticky = true # true (default) or false +containerBreakpoint = "lg" # "", "sm", "md", "lg" (default), "xl", "xxl", or "fluid" - ## Button - navBarButton = false # false (default) or true - navBarButtonUrl = "/docs/prologue/introduction/" - navBarButtonText = "Get started" +## Button +navBarButton = false # false (default) or true +navBarButtonUrl = "/docs/prologue/introduction/" +navBarButtonText = "Get started" - # FlexSearch - flexSearch = true # true (default) or false - searchExclKinds = [] # list of page kinds to exclude from search indexing (e.g. ["home", "taxonomy", "term"] ) - searchExclTypes = [] # list of content types to exclude from search indexing (e.g. ["blog", "docs", "legal", "contributors", "categories"]) - showSearch = [] # [] (all pages, default) or homepage (optionally) and list of sections (e.g. ["homepage", "blog", "guides"]) - indexSummary = false # true or false (default); whether to index only the `.Summary` instead of the full `.Content`; limits the respective JSON field size and thus increases loading time +# FlexSearch +flexSearch = true # true (default) or false +searchExclKinds = [ +] # list of page kinds to exclude from search indexing (e.g. ["home", "taxonomy", "term"] ) +searchExclTypes = [ +] # list of content types to exclude from search indexing (e.g. ["blog", "docs", "legal", "contributors", "categories"]) +showSearch = [ +] # [] (all pages, default) or homepage (optionally) and list of sections (e.g. ["homepage", "blog", "guides"]) +indexSummary = false # true or false (default); whether to index only the `.Summary` instead of the full `.Content`; limits the respective JSON field size and thus increases loading time - ## Search results - showDate = false # false (default) or true - showSummary = true # true (default) or false - searchLimit = 99 # 0 (no limit, default) or natural number +## Search results +showDate = false # false (default) or true +showSummary = true # true (default) or false +searchLimit = 99 # 0 (no limit, default) or natural number - # Global alert - alert = false # false (default) or true - alertDismissable = true # true (default) or false +# Global alert +alert = false # false (default) or true +alertDismissable = true # true (default) or false - # Bootstrap - bootstrapJavascript = false # false (default) or true +# Bootstrap +bootstrapJavascript = false # false (default) or true - # Nav - sectionNav = ["docs"] # ["docs"] (default) or list of sections (e.g. ["docs", "guides"]) - toTopButton = false # false (default) or true - breadcrumbTrail = false # false (default) or true - headlineHash = true # true (default) or false - scrollSpy = true # true (default) or false +# Nav +sectionNav = [ + "docs", +] # ["docs"] (default) or list of sections (e.g. ["docs", "guides"]) +toTopButton = false # false (default) or true +breadcrumbTrail = false # false (default) or true +headlineHash = true # true (default) or false +scrollSpy = true # true (default) or false - # Multilingual - multilingualMode = false # false (default) or true - showMissingLanguages = true # whether or not to show untranslated languages in the language menu; true (default) or false +# Multilingual +multilingualMode = false # false (default) or true +showMissingLanguages = true # whether or not to show untranslated languages in the language menu; true (default) or false - # Versioning - docsVersioning = false # false (default) or true - docsVersion = "1.0" +# Versioning +docsVersioning = false # false (default) or true +docsVersion = "1.0" - # UX - headerBar = false # true (default) or false - backgroundDots = true # true (default) or false +# UX +headerBar = false # true (default) or false +backgroundDots = true # true (default) or false - # Homepage - sectionFooter = false # false (default) or true +# Homepage +sectionFooter = false # false (default) or true - # Blog - relatedPosts = false # false (default) or true - imageList = true # true (default) or false - imageSingle = true # true (default) or false +# Blog +relatedPosts = false # false (default) or true +imageList = true # true (default) or false +imageSingle = true # true (default) or false - # Repository - editPage = false # false (default) or true - lastMod = false # false (default) or true - repoHost = "GitHub" # GitHub (default), Gitea, GitLab, Bitbucket, or BitbucketServer - docsRepo = "https://github.com/h-enk/doks" - docsRepoBranch = "main" # main (default), master, or - docsRepoSubPath = "" # "" (none, default) or +# Repository +editPage = false # false (default) or true +lastMod = false # false (default) or true +repoHost = "GitHub" # GitHub (default), Gitea, GitLab, Bitbucket, or BitbucketServer +docsRepo = "https://github.com/h-enk/doks" +docsRepoBranch = "main" # main (default), master, or +docsRepoSubPath = "" # "" (none, default) or - # SCSS colors - # backGround = "yellowgreen" - ## Dark theme - # textDark = "#dee2e6" # "#dee2e6" (default), "#dee2e6" (orignal), or custom color - # accentDark = "#5d2f86" # "#5d2f86" (default), "#5d2f86" (original), or custom color - ## Light theme - # textLight = "#1d2d35" # "#1d2d35" (default), "#1d2d35" (orignal), or custom color - # accentLight = "#8ed6fb" # "#8ed6fb" (default), "#8ed6fb" (orignal), or custom color +# SCSS colors +# backGround = "yellowgreen" +## Dark theme +# textDark = "#dee2e6" # "#dee2e6" (default), "#dee2e6" (orignal), or custom color +# accentDark = "#5d2f86" # "#5d2f86" (default), "#5d2f86" (original), or custom color +## Light theme +# textLight = "#1d2d35" # "#1d2d35" (default), "#1d2d35" (orignal), or custom color +# accentLight = "#8ed6fb" # "#8ed6fb" (default), "#8ed6fb" (orignal), or custom color - # [doks.menu] - # [doks.menu.section] - # auto = true # true (default) or false - # collapsibleSidebar = true # true (default) or false +# [doks.menu] +# [doks.menu.section] +# auto = true # true (default) or false +# collapsibleSidebar = true # true (default) or false # Debug [render_hooks.image] - errorLevel = 'ignore' # ignore (default), warning, or error (fails the build) +errorLevel = 'ignore' # ignore (default), warning, or error (fails the build) [render_hooks.link] - errorLevel = 'ignore' # ignore (default), warning, or error (fails the build) - highlightBroken = false # true or false (default) +errorLevel = 'ignore' # ignore (default), warning, or error (fails the build) +highlightBroken = false # true or false (default) # Images (@thulite/images) [thulite_images] - [thulite_images.defaults] - decoding = "async" # sync, async, or auto (default) - fetchpriority = "auto" # high, low, or auto (default) - loading = "lazy" # eager or lazy (default) - widths = [480, 576, 768, 1025, 1200, 1440] # [640, 768, 1024, 1366, 1600, 1920] for example - sizes = "auto" # 100vw (default), 75vw, or auto for example - process = "" # "fill 1600x900" or "fill 2100x900" for example - lqip = "16x webp q20" # "16x webp q20" or "21x webp q20" for example +[thulite_images.defaults] +decoding = "async" # sync, async, or auto (default) +fetchpriority = "auto" # high, low, or auto (default) +loading = "lazy" # eager or lazy (default) +widths = [ + 480, + 576, + 768, + 1025, + 1200, + 1440, +] # [640, 768, 1024, 1366, 1600, 1920] for example +sizes = "auto" # 100vw (default), 75vw, or auto for example +process = "" # "fill 1600x900" or "fill 2100x900" for example +lqip = "16x webp q20" # "16x webp q20" or "21x webp q20" for example # Inline SVG (@thulite/inline-svg) [inline_svg] - iconSetDir = "tabler-icons" # "tabler-icons" (default) +iconSetDir = "tabler-icons" # "tabler-icons" (default) # SEO (@thulite/seo) [seo] - [seo.title] - separator = " | " - suffix = "" - [seo.favicons] - sizes = [] - icon = "favicon.png" # favicon.png (default) - svgIcon = "favicon.svg" # favicon.svg (default) - maskIcon = "mask-icon.svg" # mask-icon.svg (default) - maskIconColor = "white" # white (default) - [seo.schemas] - type = "Organization" # Organization (default) or Person - logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default) - name = "Thulite" # Name of Organization or Person - sameAs = [] # E.g. ["https://github.com/thuliteio/thulite", "https://fosstodon.org/@thulite"] - images = ["cover.png"] # ["cover.png"] (default) - article = [] # Article sections - newsArticle = [] # NewsArticle sections - blogPosting = ["blog"] # BlogPosting sections - product = [] # Product sections +[seo.title] +separator = " | " +suffix = "" +[seo.favicons] +sizes = [] +icon = "favicon.png" # favicon.png (default) +svgIcon = "favicon.svg" # favicon.svg (default) +maskIcon = "mask-icon.svg" # mask-icon.svg (default) +maskIconColor = "white" # white (default) +[seo.schemas] +type = "Organization" # Organization (default) or Person +logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default) +name = "Thulite" # Name of Organization or Person +sameAs = [ +] # E.g. ["https://github.com/thuliteio/thulite", "https://fosstodon.org/@thulite"] +images = ["cover.png"] # ["cover.png"] (default) +article = [] # Article sections +newsArticle = [] # NewsArticle sections +blogPosting = ["blog"] # BlogPosting sections +product = [] # Product sections diff --git a/web/netlify.toml b/web/netlify.toml index fbda65b7a..7d99988d0 100644 --- a/web/netlify.toml +++ b/web/netlify.toml @@ -1,49 +1,49 @@ [build] - publish = "public" - functions = "functions" +publish = "public" +functions = "functions" [build.environment] - NODE_VERSION = "20.11.0" - NPM_VERSION = "10.2.4" - HUGO_VERSION = "0.125.1" +NODE_VERSION = "20.11.0" +NPM_VERSION = "10.2.4" +HUGO_VERSION = "0.125.1" [context.production] - command = "npm run build" +command = "npm run build" [context.deploy-preview] - command = "npm run build" +command = "npm run build" [context.branch-deploy] - command = "npm run build" +command = "npm run build" [context.next] - command = "npm run build" +command = "npm run build" [context.next.environment] - HUGO_ENV = "next" +HUGO_ENV = "next" [dev] - framework = "#custom" - command = "npm run dev" - targetPort = 1313 - port = 8888 - publish = "public" - autoLaunch = false +framework = "#custom" +command = "npm run dev" +targetPort = 1313 +port = 8888 +publish = "public" +autoLaunch = false # Redirects and rewrites — https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file # Custom headers — https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file [[headers]] - for = "/*" - [headers.values] - Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload" - X-Content-Type-Options = "nosniff" - X-XSS-Protection = "1; mode=block" - Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com data:; script-src 'self' 'nonce-dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=' 'sha256-aWZ3y/RxbBYKHXH0z8+8ljrHG1mSBvyzSfxSMjBSaXk='; style-src 'self'" - X-Frame-Options = "SAMEORIGIN" - Referrer-Policy = "strict-origin" - Permissions-Policy = "geolocation=(self), microphone=(), camera=()" - Cache-Control= ''' +for = "/*" +[headers.values] +Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload" +X-Content-Type-Options = "nosniff" +X-XSS-Protection = "1; mode=block" +Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com data:; script-src 'self' 'nonce-dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=' 'sha256-aWZ3y/RxbBYKHXH0z8+8ljrHG1mSBvyzSfxSMjBSaXk='; style-src 'self'" +X-Frame-Options = "SAMEORIGIN" +Referrer-Policy = "strict-origin" +Permissions-Policy = "geolocation=(self), microphone=(), camera=()" +Cache-Control = ''' public, max-age=31536000''' - Access-Control-Allow-Origin = "*" +Access-Control-Allow-Origin = "*"