Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Generate the docs from the JSONSchema automatically #8

Open
KOLANICH opened this issue May 5, 2019 · 10 comments
Open

Generate the docs from the JSONSchema automatically #8

KOLANICH opened this issue May 5, 2019 · 10 comments

Comments

@KOLANICH
Copy link

KOLANICH commented May 5, 2019

https://github.com/adobe/jsonschema2md
https://github.com/cloudflare/json-schema-tools

@KOLANICH KOLANICH changed the title Generate the docs from JSONSchema automatically Generate the docs from the JSONSchema automatically May 5, 2019
@trivialfis
Copy link
Collaborator

I think there are many tools we can choose from https://json-schema.org/implementations.html, although not sure which is the right one. But I would like to avoid js. ;-)

@KOLANICH
Copy link
Author

KOLANICH commented May 6, 2019

But I would like to avoid js. ;-)

👍 for avoiding JS and :+100: for avoiding npm ;)

@KOLANICH
Copy link
Author

https://github.com/coveooss/json-schema-for-humans - a generator written in python

@trivialfis
Copy link
Collaborator

@KOLANICH Thanks for the reference. Played with it a little bit, the "version" field tricks it as items of array are all constants so type is implicitly defined.

@trivialfis
Copy link
Collaborator

Will fix it.

@trivialfis
Copy link
Collaborator

@KOLANICH @hcho3 I'm not sure how to embed it in our doc. Please find example output in attachment.

schema_doc.zip

@hcho3
Copy link
Owner

hcho3 commented Dec 17, 2019

@trivialfis The output looks super nice. Let me see if I can get readthedocs run the generator automatically.

@KOLANICH
Copy link
Author

IMHO:

  1. minification is not needed
  2. GH actions can be used for building and then the result can be deployed to GH pages.

@trivialfis
Copy link
Collaborator

@KOLANICH @hcho3 Not sure I like it. The output certainly looks nice, but I prefer static site.

@KOLANICH
Copy link
Author

The output certainly looks nice, but I prefer static site.

I have already opened a bug about eliminating JS.
Probably a yet another needed about laying out everything to different pages like Doxygen does.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants