[doc] apparent typo in the documentation of GitHub release check option #954
-
As of v0.20.0, the option that controls whether HomeBox checks for the latest GitHub release is spelled type Options struct {
AllowRegistration bool `yaml:"disable_registration" conf:"default:true"`
AutoIncrementAssetID bool `yaml:"auto_increment_asset_id" conf:"default:true"`
CurrencyConfig string `yaml:"currencies"`
GithubReleaseCheck bool `yaml:"check_github_release" conf:"default:true"`
AllowAnalytics bool `yaml:"allow_analytics" conf:"default:false"`
} I loosely traced this back to PR#442, merged in commit 9cf244c9 (tags/v0.17.0~3), which instead documents this option / environment variable as diff --git a/docs/en/configure-homebox.md b/docs/en/configure-homebox.md
index c2d2db69..e014080f 100644
--- a/docs/en/configure-homebox.md
+++ b/docs/en/configure-homebox.md
@@ -25,7 +25,7 @@
| HBOX_MAILER_FROM | | email from address to use |
| HBOX_SWAGGER_HOST | 7745 | swagger host to use, if not set swagger will be disabled |
| HBOX_SWAGGER_SCHEMA | `http` | swagger schema to use, can be one of: `http`, `https` |
-
+| HBOX_OPTIONS_CHECK_GITHUB_RELEASE | true | check for new github releases |
::: tip "CLI Arguments"
If you're deploying without docker you can use command line arguments to configure the application. Run `homebox --help` for more information.
@@ -55,6 +55,7 @@ OPTIONS
--options-allow-registration/$HBOX_OPTIONS_ALLOW_REGISTRATION <bool> (default: true)
--options-auto-increment-asset-id/$HBOX_OPTIONS_AUTO_INCREMENT_ASSET_ID <bool> (default: true)
--options-currency-config/$HBOX_OPTIONS_CURRENCY_CONFIG <string>
+--options-check-github-release/$HBOX_OPTIONS_CHECK_GITHUB_RELEASE <bool> (default: true)
--help/-h display this help message
```
::: This appears to be inconsistent with the help message that the $ git switch -d tags/v0.17.0~3
HEAD is now at 9cf244c9 Add a warning when the version does not match the latest release (#442)
$ cd backend
$ go build -o api app/api/*.go
[ output omitted ]
$ ./api --help
Usage: api [options] [arguments]
OPTIONS
[ other options omitted ]
--options-github-release-check/$HBOX_OPTIONS_GITHUB_RELEASE_CHECK <bool> (default: true)
[ other options omitted ] My conclusion from this observation is that the erroneous help message in the documentation was derived from a version of the source code that had spelled the variable as I should emphasize that live documentation retains this spelling, so this discrepancy has not been addressed and continues to be relevant in the present versions (v0.20.0 and on). In short, either the documentation is wrong (and thus the option should be And just to make it clear, I would be happy to help update the Markdown documentation or the backport Go code change. I just need to know which option people prefer first since there are two options at hand and both options fairly reasonable to me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I do not remember what my original intention was but i think the best fix now is to update the docs to match the implementation. |
Beta Was this translation helpful? Give feedback.
I do not remember what my original intention was but i think the best fix now is to update the docs to match the implementation.