Skip to content

Conversation

@bjackman
Copy link
Contributor

I got pretty confused about why I can't set auth.method from the config file (and also why there were no docs saying what the JSON/YAML/etc key would even be).

Document that this doesn't work to try to prevent future confusion here.

Caveat: I wrote this documentation by hand, but I did not actually read the code carefully enough to have figured this out myself. I am trusting the claims made by an LLM coding agent (which do at least seem to match empirical evidence).

Description

... Hopefully docs improvements is compatible with maintenance-only mode?

Additional Information

Checklist

Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See GitHub Help: Closing issues using keywords.

  • I am aware the project is currently in maintenance-only mode. See README
  • I am aware that translations MUST be made through Transifex and that this PR is NOT a translation update
  • I am making a PR against the master branch.
  • I am sure File Browser can be successfully built. See builds and development.

@bjackman bjackman requested a review from a team as a code owner December 28, 2025 17:05
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI docs get generated from the CLI code itself. To change the CLI description, you need to update this file: https://github.com/filebrowser/filebrowser/blob/master/cmd/root.go#L113

I got pretty confused about why I can't set auth.method from the config
file (and also why there were no docs saying what the JSON/YAML/etc key
would even be).

Document that this doesn't work to try to prevent future confusion here.

Caveat: I wrote this documentation by hand, but I did not actually read
the code carefully enough to have figured this out myself. I am
trusting the claims made by an LLM coding agent (which do at least seem
to match empirical evidence).
@bjackman
Copy link
Contributor Author

Ah, sorry. Let me try to do this properly...

  • Held my nose and installed Docker (needn't have been so reluctant, looks like they fixed the thing where it runs everything as root!)
  • nix develop nixpkgs#filebrowser
  • task docs:cli:generate
  • Yep that undid my changes
  • Edit the Go that hacdias pointed to
  • task docs:cli:generate again

@bjackman bjackman requested a review from hacdias December 28, 2025 21:29
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hacdias hacdias merged commit 7a93b2a into filebrowser:master Dec 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants