Open ComFreek opened 3 years ago
As of 657345e877ea4add53eb3d882360362e0620d271 the api documentation isn't updated anymore. After a conversation in Mattermost the result was there wasn't enough usage to warrant migrating it from Travis to GitHub pages.
That's unfortunate. I used it extensively to get a good picture of the structuring of the API and now tried to use it again. How about other people wanting to use the MMT API? There are few, but they might as well think: if a system that I am considering using does not even have public API documentation, I better not start using it. (And honestly, I do the same for other projects.)
Do we want to keep the outdated API docs online?
Is generating the API docs using GitHub actions (just for the master branch) really that much work? I could look into it sometime -- if we can agree to revive it if I managed to.
If you manage to, sure. My take on it: Generation of the apidoc is simple, authenticating and pushing to a separate repository is hard.
@tkw1536 Could you elaborate on why "pushing to a separate repository is hard"?
I've googled a bit. As per GitHub's docs on encrypted secrets, we should ideally use a deploy key: a signature key pair whose public pair should be registered with the repo (on its settings page) and whose private key should be provided as an encrypted secret to GitHub actions.
I also found https://github.com/marketplace/actions/webfactory-ssh-agent, which seems to make using the private key boxed in the encrypted secret for git push
extremely easy.
Any objections?
No objections on doing exactly that. It was more annoying to do than hard.
Nice. Then somebody with permissions would need to
I lack the permissions to do that. But afterwards I can do the build integration.
e.g. see https://uniformal.github.io/apidoc/info/kwarc/mmt/api/ontology/Unary.html. Known subclasses is just empty there.
@tkw1536 Do you know what's wrong there?