Skip to content

Commit

Permalink
docs: improve settings a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 15, 2024
1 parent 53ddc76 commit d53d011
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/environments/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
<script setup>
import Settings from '/components/settings.vue';
</script>
<Settings child="sops" :level="3" />
<Settings child="sops" :level="4" />
4 changes: 2 additions & 2 deletions docs/settings.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
function buildElement(key, props) {
let type = props.type;
type = type.replaceAll("PathBuf", "String");
let default_ = props.default;
let default_ = props.default_docs ?? props.default;
if (default_ === undefined && type === "Bool" && !props.optional) {
default_ = false;
}
Expand Down Expand Up @@ -42,7 +42,7 @@ export default {
deprecated: props.deprecated,
enum: props.enum,
env: props.env,
optional: props.optional,
optional: !props.default_docs && props.optional,
type,
};
return ele;
Expand Down
2 changes: 2 additions & 0 deletions settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ optional = true
default_docs = "install_only_stripped"
description = "Specify the flavor to use for precompiled binaries."
docs = """
Specify the flavor to use for precompiled binaries.
Options are available here: <https://gregoryszorc.com/docs/python-build-standalone/main/running.html>
"""

Expand Down

0 comments on commit d53d011

Please sign in to comment.