Skip to content

Docs: Improve readme and autogenerate natspec doc #29

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

Conversation

danceratopz
Copy link
Contributor

This PR:

  1. Moves any contract/method specific documentation out of the project's README and into the OffsetHelper contract's natspec comments.
  2. Improves the contract's natspec documentation.
  3. Adds a basic developer usage section to the README.
  4. Enables markdown documentation generation from the natspec comments using solidity-docgen. Running yarn doc updates the markdown doc in ./docs/.
  5. Runs yarn doc as a Github action step to test that documentation generation is working.

Points 1. and 2. in this PR fixes #27.

Note: Currently the autogenerated doc is checked-in in the ./docs/ folder for convenience. We could consider generating html/publishing this to this repo's Github pages in a Github action in order to avoid the documentation becoming out of date.

Copy link
Member

@0xmichalis 0xmichalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @danceratopz, thanks for the PR!

@0xmichalis 0xmichalis merged commit cd85e75 into ToucanProtocol:main Jun 14, 2022
@danceratopz danceratopz deleted the docs/improve-doc-and-autogenerate-from-natspec branch August 9, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OffsetHelper method signatures documented in the README are out of date
2 participants