filebrowser / docs

📄 Who doesn't like documentation?
58 stars 38 forks source link

Documentation integration #5

Closed eine closed 2 years ago

eine commented 5 years ago

ATM we have multiple sources of documentation/information:

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.

hacdias commented 5 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.

eine commented 5 years ago

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:

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.

hacdias commented 5 years ago

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:

  1. Use docusarus as our tool despite the bad looks (until v2 is out) and put it at filebrowser.xyz
  2. Keep using GitBook and don't provide offline documentation.

I couldn't find a better static generator directed to documentation. Will wait on feedback.

hacdias commented 5 years ago

/cc @1138-4EB

hacdias commented 5 years ago

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.