Skip to content
Snippets Groups Projects

Refac generated documentation

Merged Benjamin Gallois requested to merge 183-refac-doc into master
1 unresolved thread

Closes #183 (closed) and fixed the xtask gen-doc that was not compiling anymore.

cargo xtask gen-doc will now generate the rust autogenerated documentation (the full (and bloated) documentation is necessary for Substrate pallets calls). The docs/api/runtime-calls.md will be generated with reference to the rust autogenerated documentation based on the BASE_URL variable.

The only thing left to do is to decide where to store the rust autogenerated documentation. Then, a CI with the necessary server permissions can simply run:

BASE_URL="https://url/to/endpoint" cargo xtask gen-doc
rsync -a ./docs/api/doc user@server:/path/to/endpoint/
Edited by Benjamin Gallois

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Je me suis rendu compte que mon intention n'était pas claire dans l'issue (cf commentaire).

    Quitte à produire un artefact dans une CI, autant que les fichiers markdown y soient aussi, plutôt que commités sur le dépôt git. Donc il faudrait changer le dossier de sortie par défaut de docs/api vers target/doc, c'est plus logique pour un artefact.

  • added 1 commit

    • a35990f2 - move runtime api doc to target artefact

    Compare with previous version

  • Benjamin Gallois added 12 commits

    added 12 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Benjamin Gallois resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Benjamin Gallois added 19 commits

    added 19 commits

    Compare with previous version

  • Benjamin Gallois mentioned in merge request !258 (merged)

    mentioned in merge request !258 (merged)

  • added 1 commit

    • 857a7b82 - update xtask to polkadot-v1.9.0

    Compare with previous version

  • Benjamin Gallois added 2 commits

    added 2 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

    • Since !258 (merged), the descriptions of the calls are back in the metadata, which will fix issues #217 (closed) and #183 (closed). I have restored the generated API documentation in the git history, as it is now complete and can be hosted and consulted in the git repository. I have retained the complete Rust documentation generation part of the xtask gen-doc command so that the full documentation can be easily generated and hosted somewhere if it is relevant.

      Edited by Benjamin Gallois
  • added 1 commit

    Compare with previous version

  • Benjamin Gallois added 14 commits

    added 14 commits

    Compare with previous version

  • Benjamin Gallois marked this merge request as ready

    marked this merge request as ready

  • On est à 225 Mo maintenant, ça a un peu gonflé depuis les 174 Mo de !254 (comment 42451).

    > du -sh target/doc
    225M    target/doc

    Je l'ai mis sur mon nœud IPFS et je pense que c'est même mieux que que ce passer par une CI: http://bafybeidjf4gr2d5lortc5shji3vnchzkwewvjaxwkes327vdetdruoo6fy.ipfs.subgateway.datapod.coinduf.eu/pallet_identity/enum.IdtyStatus.html (il me manque un wildcard sur ma gateway et peut-être domaine mieux pour faire du DNSlink).

  • Hugo Trentesaux approved this merge request

    approved this merge request

  • Benjamin Gallois mentioned in commit 2b050e27

    mentioned in commit 2b050e27

  • mentioned in issue #217 (closed)

  • Please register or sign in to reply
    Loading