diff --git a/setup.py b/setup.py index 1b4cc31831b0e32690a04100f06625d2e80b6fbb..c06f26990052216062be0ce2080b14200bcbe3e4 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,12 @@ if "SETUPTOOLS_SCM_LOCAL_SCHEME" in os.environ: if os.environ["SETUPTOOLS_SCM_LOCAL_SCHEME"] in local_scheme_values: scm_local_scheme = os.environ["SETUPTOOLS_SCM_LOCAL_SCHEME"] -if not "CMAKE_ARGS" in os.environ: +if "CMAKE_ARGS" in os.environ: + print( + "WARNING: Default CMake preset 'wheel' overridden! " + "Be sure to pass a proper preset or configuration!" + ) +else: cmake_preset = "wheel" if platform.system() == "Windows": cmake_preset += "-win" diff --git a/web/content/docs/_index.md b/web/content/docs/_index.md index 3f19e7a26843678b8866c889552792a1fd5b3efb..9958b727d0d097e1fc769b00c118f891fffbf780 100644 --- a/web/content/docs/_index.md +++ b/web/content/docs/_index.md @@ -9,4 +9,5 @@ weight = 2 [cascade] breadcumbs = false collapsed = true +sort_alphabetically = false +++ diff --git a/web/content/docs/benchmarks/_index.md b/web/content/docs/benchmarks/_index.md index 54722c6d9e621d4a7b075c475b6968b032d35042..1c40b2a57358b344ba804547b12fd0f0ff58c440 100644 --- a/web/content/docs/benchmarks/_index.md +++ b/web/content/docs/benchmarks/_index.md @@ -4,6 +4,7 @@ layout = "subsections" [cascade] breadcrumbs = true +sort_alphabetically = true [menu.docs] name = "Benchmarks" diff --git a/web/content/docs/devguide/_index.md b/web/content/docs/devguide/_index.md index 3cc1aa9c5229fb8d09cba0147977dbe0bc14d1cd..85ef5755a9a7dfaecb70f95ce01da05b2646bc3c 100644 --- a/web/content/docs/devguide/_index.md +++ b/web/content/docs/devguide/_index.md @@ -1,8 +1,4 @@ +++ title = "Developer Guide" os_selector = true - -[cascade] -breadcumbs = false -collapsed = true +++ diff --git a/web/content/docs/tools/_index.md b/web/content/docs/tools/_index.md index 53968ee45f15a1fd60a5d4e008c1be4923dd387e..fd9e1cf94f6b2637e5c7c17a88a9b5aa86e26f3d 100644 --- a/web/content/docs/tools/_index.md +++ b/web/content/docs/tools/_index.md @@ -1,7 +1,3 @@ +++ title = "Tools" - -[cascade] -breadcumbs = false -collapsed = true +++ diff --git a/web/layouts/docs/subsections.html b/web/layouts/docs/subsections.html index f14e69b67c0e52d0707e85285c581baa0d4b46ee..2e84578408555a5d52fe6c50b0866a0daea3f328 100644 --- a/web/layouts/docs/subsections.html +++ b/web/layouts/docs/subsections.html @@ -8,6 +8,10 @@ {{ if .Params.breadcrumbs }} {{ partial "docs/breadcrumbs.html" . }} {{ end }} + {{ $sections := .Sections }} + {{ if .Params.sort_alphabetically }} + {{ $sections = sort .Sections "Title" }} + {{ end }} <div class="mx-auto py-2 px-4 max-w-7xl sm:px-6 lg:px-8 lg:py-4"> <div class="space-y-8"> <div class="space-y-5 sm:space-y-4 md:max-w-xl lg:max-w-3xl xl:max-w-none prose"> @@ -15,7 +19,7 @@ </div> <ul role="list" class="space-y-12 grid grid-cols-2 sm:grid-cols-3 sm:gap-x-6 gap-y-12 space-y-0 lg:grid-cols-4 lg:gap-x-8"> - {{ range .Sections }} + {{ range $sections }} {{ if .Params.featured }} {{ partial "components/gallery-item.html" . }} {{ end }} @@ -28,7 +32,7 @@ </div> <ul role="list" class="space-y-12 grid grid-cols-2 sm:grid-cols-3 sm:gap-x-6 gap-y-12 space-y-0 lg:grid-cols-4 lg:gap-x-8"> - {{ range .Sections }} + {{ range $sections }} {{ partial "components/gallery-item.html" . }} {{ end }} </ul> diff --git a/web/layouts/partials/docs/sidebar.html b/web/layouts/partials/docs/sidebar.html index 109225578d7c2eebb856a47e5171ab44c1d18460..f40db64805af210c3e4360cc2234b1876f2bd1b1 100644 --- a/web/layouts/partials/docs/sidebar.html +++ b/web/layouts/partials/docs/sidebar.html @@ -53,7 +53,11 @@ {{ end }} <hr class="mt-3"> <ul> - {{ range $baseSubsection.Sections }} + {{ $subsections := $baseSubsection.Sections }} + {{ if .Params.sort_alphabetically }} + {{ $subsections = sort $baseSubsection.Sections "Title" }} + {{ end }} + {{ range $subsections }} {{ if .Params.collapsed }} {{ if eq .RelPermalink $subSubsection.RelPermalink }} <li class="tracking-wide font-bold mt-6">