Skip to content
Snippets Groups Projects

Refac generated documentation

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

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

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading