-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation integration #5
Comments
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. |
That's what I thought. However, it is easier said than done:
Moreover, we have some kind of circular dependency in the build process:
To work around it, we can either generate the CLI documentation with
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 #x/pkgsite: generate static docs 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 Document HTTP API #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.
The text was updated successfully, but these errors were encountered: