Closed eine closed 2 years ago
Hello @1138-4EB!
It would be great if we built a Hugo website with a script that gathered the info from GoDoc+CLI and merged it with the current content. We could then have only one website and also bundle it with the binary.
Personally, I really like the idea and I'd like to take care of this effort if you don't mind. And then we could eventually merge it with filebrowser.xyz. Eventually.
It would be great if we built a Hugo website with a script that gathered the info from GoDoc+CLI and merged it with the current content. We could then have only one website and also bundle it with the binary.
That's what I thought. However, it is easier said than done:
Moreover, we have some kind of circular dependency in the build process:
filebrowser docs
and generate CLI documentation sources.To work around it, we can either generate the CLI documentation with go run
, or we can build filebrowser twice (one with docs and another one without them).
Personally, I really like the idea and I'd like to take care of this effort if you don't mind. And then we could eventually merge it with filebrowser.xyz. Eventually.
Right. Just let me know if you need any help.
After some research I came to find Docusaurus which is a documentation static generator by Facebook. They're currently working on v2 which will bring some improvements. Personally I enjoyed my first try of using it (see 'docusaurus' branch and run it please). Although the styling is not much customizable in this version (it will be in the next one) so we can'tr have collapsible menus in the sidebar which makes it really ugly.
On the other hand, I really love GitBook as it provides amazing Search support and it's prettier, easier to use... and supports tabs (there's an issue for this on docusaurus too).
I see two options:
I couldn't find a better static generator directed to documentation. Will wait on feedback.
/cc @1138-4EB
Just an update here: I also see that Docosaurus V2 is on the way. Hopefully after it is released, I can take a look at revamping our documentation and embedding it into the binary itself. Although it seems to take a bit of time yet. Perhaps going with Hugo would be a nice option. I'll give it a try.
ATM we have multiple sources of documentation/information:
Help
modal box in the frontend, which contains frontend keyboard shortcuts. See https://github.com/filebrowser/frontend/blob/master/src/components/prompts/Help.vue.Home
at https://filebrowser.xyz/. See https://github.com/filebrowser/filebrowser.github.io.Docs
at https://docs.filebrowser.xyz/. See this repo.godoc
at https://godoc.org/github.com/filebrowser/filebrowser. See golang sources at https://github.com/filebrowser/filebrowser. Also, see #golang/go#2381.CLI
markdown/man documentation generated with spf13/cobra. See https://github.com/filebrowser/filebrowser/blob/master/cmd/docs.go.HTTP API
, still to be written. See #1.Since all of them can be rendered online, I think it'd be interesting to integrate all of them in a single static site and embed it in filebrowser. This would allow users to use and read the documentation of filebrowser even when offline or in isolated local networks.