Skip to content

Commit

Permalink
Documentation update; add support for envars I think
Browse files Browse the repository at this point in the history
  • Loading branch information
endigma committed May 10, 2021
1 parent e58ca30 commit da2ad09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if you want to host your documentation elsewhere, try integrating [fennec](https

for configuration instructions refer to the comments in the example config file in `example.toml`

you can also use envars like `HLDN_<KEY>=<VALUE>`

## scripting

if you'd like to get the raw markdown source using `curl`, send the `RawPlease` header with the value `true`, like:
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func init() {
viper.SetConfigName("config")
viper.SetConfigType("toml")

viper.SetEnvPrefix("HLDN_")
viper.AutomaticEnv()

viper.AddConfigPath("/etc/holden/")
viper.AddConfigPath("$HOME/.holden")
viper.AddConfigPath(".")
Expand Down

0 comments on commit da2ad09

Please sign in to comment.