teleirc icon indicating copy to clipboard operation
teleirc copied to clipboard

Determine new documentation platform

Open Tjzabel opened this issue 6 years ago • 13 comments

Our current documentation at docs.teleirc.com uses Python in order to generate readthedocs.

With our port to Go, it would make more sense to use an option that is Go friendly. This would enable us to remove our Python dependency.

Tjzabel avatar Sep 26 '19 20:09 Tjzabel

@jwflory Do you feel this is something you can research this week by our next meeting? This issue is set for our next sprint, but we don't have anything besides the testing that's in slate for this week.

Tjzabel avatar Oct 29 '19 14:10 Tjzabel

@Tjzabel Unfortunately I need to push for more time on this one. My senior capstone project is due in two weeks, so most of my development time is going there. This issue needs more time to research and see if the Sphinx + Go integrations are all they are cracked up to be.

justwheel avatar Oct 30 '19 14:10 justwheel

Sure thing :+1:

Tjzabel avatar Oct 30 '19 15:10 Tjzabel

I still want to pursue using Sphinx if possible. The ReadTheDocs.org team created a sphinx-autoapi extension. This extension supports Go by parsing it with the godocjson tool (also maintained by ReadTheDocs.org team). It looks like about 131 GitHub projects are already using it, and there is a fair amount of activity happening with upstream development.

It all works hypothetically, but until we start writing godoc-friendly docs, there isn't much to experiment with. I'm setting this to blocked.

justwheel avatar Nov 04 '19 11:11 justwheel

Discussed in 2020-03-14 meeting.


I'm tackling this as a research task for this sprint. My next few weeks will be pretty busy, so this was the best thing I felt I could work on and accomplish. Mostly going to see how our user docs and API docs will exist, and whether they will exist together or in separate tools/platforms!

justwheel avatar Mar 14 '20 21:03 justwheel

Going to bump this to the next sprint. I'm going to push priority on #265 first before going forward on this so docs can be versioned and everything will be living on one branch.

justwheel avatar Mar 21 '20 18:03 justwheel

Discussed in 2020-04-11 meeting.


I haven't had much time to spend on this, but I want to do it one of two ways:

  1. Automatically publish API docs from godoc output in our Sphinx ReadTheDocs site
  2. Publish godoc output on a different site, maybe GitHub Pages

Ideally we only have our docs published in one place and one place only. That's why I think Option 1 is best for TeleIRC. Option 2 is a fallback if it is not possible to embed the godoc docs into Sphinx easily.

I still want to use godocjson for this. godocjson exports the godoc-format docs into a JSON doc. What is not clear to me is whether I can use the built-in Sphinx AutoAPI extension or if I need the Sphinx JSONSchema extension. If AutoAPI works with JSON, this should be easy. If I need JSONSchema, then it all depends on how the resulting docs look like and if they are practical for our needs.

justwheel avatar Apr 11 '20 20:04 justwheel

I made some headway on this. Turns out, Sphinx AutoAPI does support Go, but I couldn't get the Go bits working with Sphinx. I opened an issue upstream on readthedocs/sphinx-autoapi#196 to see if we can get to the bottom of this.

For now, I'm marking this issue as blocked because I want to see if this is possible with Sphinx AutoAPI before exploring other options. I'll wait for upstream to comment on the issue.

justwheel avatar Apr 13 '20 16:04 justwheel

Upstream did not reply to my comment on the closed issue readthedocs/sphinx-autoapi#196, so I opened readthedocs/sphinx-autoapi#207 to bring it up one more time.

justwheel avatar May 18 '20 17:05 justwheel

There was a docs issue upstream. It was fixed, but then discovered an actual bug. Upstream is responsive, it is just taking a little bit of time. This is slowly moving forward, but since it is not urgent, we can keep this on the backlog until autoapi is working right.

justwheel avatar May 23 '20 19:05 justwheel

Following.

robbyoconnor avatar Oct 12 '20 02:10 robbyoconnor

This briefly came up in the developer meeting yesterday. It is something on my radar, and the bug was fixed upstream. I suggested following back up on this after our testing sprint in early November.

justwheel avatar Oct 12 '20 11:10 justwheel

One alternative option for me on this is that I could use the UNICEF Inventory theme for Hugo as a new approach for our documentation. It would add a limited but functional search to our documentation, give us better organization of different topics, and a better user experience than our current docs website.

The GitHub repo is here: https://github.com/unicef/inventory-hugo-theme

justwheel avatar Oct 06 '22 20:10 justwheel