Moya: Regenerate moya.github.io docs on Moya release.

Created on 30 May 2019  路  11Comments  路  Source: Moya/Moya

We have a repository that gathers our docs and represents it beautifully on our website https://moya.github.io.

The problem is that these docs currently have to be generated manually and that's easy to forget. @f-meloni suggested that we could use setup similar to the one they use at danger-swift which generates the docs automatically.

This task is for creating an automation to regenerate the docs on each release. For releasing new Moya version we use our Rake script and this would be a good starting point.

Also see #1862 discussion as this is where the idea came from.

Let me know if you would be interested in helping out or if you have any questions regarding this task!

chore documentation good first issue

All 11 comments

Hi, anyone working on this?

hey @MetalDent, I don't think anyone started working on this one yet - would you like to try?

@sunshinejr yeah I can try!

I saw the danger script to auto-generate docs. Do you want similar implementation? And where should this change go?

@MetalDent I don鈥檛 have a preference for implementation - you can do whatever you are good at or think will be enough.

The docs should auto-generate on our second repository (https://github.com/Moya/moya.github.io)

@sunshinejr I'll also use rocket . So which files from this repository do you want to auto-generate in the other repository?

@MetalDent so once you ran the docs generating using jazzy:

jazzy -o URL_TO_THE_DOCS

we should move all the docs to the moya.github.io repo

@MetalDent now that I think about it... can it be done from the GitHub Actions?

Edit: Ah we don't have Actions on Moya yet so it doesn't matter for now.

@sunshinejr sorry I can't work on this my iOS VM is not working right now :(

@MetalDent don't worry, we can wait, it's not something urgent right now - just nice to have 馃憤

Why don't we use the same repo for the documentation instead of the separate one ?
I mean we can configure this one for Github pages.

@hamdshah I think this is actually quite convenient that we have a separate repo and it doesn't bloat the main Moya repo with auto-generated documentation...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pedrovereza picture pedrovereza  路  3Comments

hjzCy picture hjzCy  路  3Comments

kamwysoc picture kamwysoc  路  3Comments

sunshinejr picture sunshinejr  路  3Comments

gunterhager picture gunterhager  路  3Comments