-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many Untitled
and undefined
identifiers in rendered documentation
#273
Comments
I assume most of those I noticed that of the unnamed entities correspond to types from |
Hello @egasimus! Thank you for your interest in the project. Indeed, we are using an automatic documentation generation tool. This tool is integrated into the okp4/contracts project through the Makefile, which handles the generation of smart contract interfaces and then synchronizes ( |
Hey @egasimus, thanks for your proposition. Yes, It is true that the generated documentation is not very readable, I don't know where is the issue, maybe the cosmwasm-schema library that generate the json schema in a invalid format or with missing annotation to add more metadata on attribute or if the issue come from the jsonschema2md tool 🤷♂️. I'm curious to see what could be the result of the json schema viewer on Docusaurus but if the issue come from the schema generation I don't think the schema viewer will work correctly. Let's see that ! 😀 Like @ccamel say, documentation is generated through the makefile on contract repository, I think we need to keep this generation on that side. On docs, I purpose to add a new page to include this json schema viewer plugin, for that, the CI that update the documentation should be updated to also copy json schema file (in the right place for the plugin) inside docusaurus project through rsync. If it's possible, it could be awesome to manage also versioning for this viewer but let's try first if the json schema viewer work correctly. ;) |
I found this in the schemars documentation. It could resolve the |
Well, it's an option. But IMHO there's no need to clutter the entire Rust codebase with this stuff just to make the broken docs renderer happy. And some of the untitled types like I also found this issue circa 2021. Not gonna lie, I briefly tried working on a PR for that, even found the lonely function that seems to be responsible for titles, but I reconsidered. I'm way more interested in moving the state of CosmWasm tooling forward, than in helping Adobe suck less at JSONSchema 🤷 So... I'm hacking together a CW-friendly contract schema converter/viewer right now 😅 It doesn't attempt to cover the general case, it just focuses on the bits that a CW contract dev/integrator expects (and correspondingly may skip over things that are only relevant in a generic JSONSchema context, but not to the CW contract's API). I'll send you a PR with the Btw, I noticed that you're committing the Markdown that's generated from the schema - once into the contracts repo then once more in the docs repo. What is the reason to commit the generated files? |
The text was updated successfully, but these errors were encountered: