From 4ab24f8afa4f6384f5a24b93587cf3f4eb2cec30 Mon Sep 17 00:00:00 2001 From: David Lyons Date: Wed, 11 Jan 2023 13:49:47 -0600 Subject: [PATCH 1/2] Add operationsSorter and tagsSorter to docker image --- docker/configurator/variables.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/configurator/variables.js b/docker/configurator/variables.js index 1e676c4f1ea..75d8224f584 100644 --- a/docker/configurator/variables.js +++ b/docker/configurator/variables.js @@ -67,6 +67,10 @@ const standardVariables = { type: "number", name: "maxDisplayedTags" }, + OPERATION_SORTER: { + type: "string", + name: "operationsSorter" + }, SHOW_EXTENSIONS: { type: "boolean", name: "showExtensions" @@ -75,6 +79,10 @@ const standardVariables = { type: "boolean", name: "showCommonExtensions" }, + TAG_SORTER: { + type: "string", + name: "tagsSorter" + }, USE_UNSAFE_MARKDOWN: { type: "boolean", name: "useUnsafeMarkdown" From b241b93962f5d91e30e32ba54d1396a99bd52464 Mon Sep 17 00:00:00 2001 From: David Lyons Date: Wed, 11 Jan 2023 14:06:46 -0600 Subject: [PATCH 2/2] Make the environment variables match up with the name, update docs --- docker/configurator/variables.js | 4 ++-- docs/usage/configuration.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/configurator/variables.js b/docker/configurator/variables.js index 75d8224f584..11355e54dda 100644 --- a/docker/configurator/variables.js +++ b/docker/configurator/variables.js @@ -67,7 +67,7 @@ const standardVariables = { type: "number", name: "maxDisplayedTags" }, - OPERATION_SORTER: { + OPERATIONS_SORTER: { type: "string", name: "operationsSorter" }, @@ -79,7 +79,7 @@ const standardVariables = { type: "boolean", name: "showCommonExtensions" }, - TAG_SORTER: { + TAGS_SORTER: { type: "string", name: "tagsSorter" }, diff --git a/docs/usage/configuration.md b/docs/usage/configuration.md index f6556f447f7..6a9fe668bc1 100644 --- a/docs/usage/configuration.md +++ b/docs/usage/configuration.md @@ -147,7 +147,7 @@ Parameter name | Docker variable | Description operationsSorter - Unavailable + OPERATIONS_SORTER Function=(a => a). Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method) or a function (see @@ -177,7 +177,7 @@ Parameter name | Docker variable | Description tagsSorter - Unavailable + TAGS_SORTER Function=(a => a). Apply a sort to the tag list of each API. It can be 'alpha' (sort by paths alphanumerically) or a function (see