Skip to content
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

fix(contracts): fails gracefully when building contracts docs + removing unwanted docstring #15494

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

clemsos
Copy link
Member

@clemsos clemsos commented Feb 5, 2025

Description

This makes sure the script to build contracts docs fails correctly. Also it removes an unwanted docstring that prevents docs from building (see #15493)

Issues

Fixes #
Refs #

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@clemsos clemsos requested a review from julien51 February 5, 2025 14:32
@cla-bot cla-bot bot added the cla-signed label Feb 5, 2025
Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unlock-static-site ⬜️ Ignored (Inspect) Feb 6, 2025 2:30pm
unlock-storybook ⬜️ Ignored (Inspect) Feb 6, 2025 2:30pm

@@ -2842,7 +2842,7 @@ interface IUnlock {
* @notice This function can be called by anyone (not only the contract owner) as a way to ensure decentralization.
* @param token the address of the token (zero address for native) to swap and burn
* @param amount the amount of tokens to swap and burn
* @param poolFee the poolFee of the token <> WETH/Wrapped Native asset to use for the swap
Copy link
Member Author

Choose a reason for hiding this comment

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

the <> characters were interpreted as a html tag by the docgen, so had to replace it

@@ -258,7 +258,6 @@ interface IPublicLock {
* @param referrer the referrer that will be granted the governance tokens
* @param keyManager the manager of the key (can cancel, transfer, burn the key)
* @param data additional data to be used by jooks or other 3rd part contracts
* @return tokenIds the ids of the created tokens
Copy link
Member Author

Choose a reason for hiding this comment

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

a struct actually returns nothing, leading the docgen to exit 1

@@ -42,7 +42,7 @@ library MerkleProof {
}

/**
* @dev Calldata version of {verify}
Copy link
Member Author

Choose a reason for hiding this comment

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

remove brackets as docusaurus will consider that an mdx template tag

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

Successfully merging this pull request may close these issues.

2 participants