-
Notifications
You must be signed in to change notification settings - Fork 16
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
Added docs for the Solidity code #799
Conversation
Can you add the tooling and tasks to the repo so we can reproduce this? And for extra points, could be it be added to the CI so it's always up to date, even if the tooling isn't run locally? |
.drone.yml
Outdated
@@ -374,7 +374,17 @@ pipeline: | |||
when: | |||
branch: [dev] | |||
event: [push] | |||
|
|||
|
|||
build_solidity_docs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we build the docs in drone? They're not being pushed anywhere. Maybe we can do this step before the assert_no_changes
, so we make sure the docs are up to date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can move build_Solidity_docs
before go_generate
as there is make assert_no_changes
.
.drone.yml
Outdated
group: build_artifacts | ||
image: kowalatech/solidoc | ||
commands: | ||
- make dev_docker_images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need all docker images? maybe just make dev_solidocs_docker_image
no? Also I think we can push this image to docker hub so we don't have to build it every time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should definitely not be there!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake using copy-paste!
.drone.yml
Outdated
group: build_artifacts | ||
image: kowalatech/solidoc | ||
commands: | ||
- make dev_solidocs_docker_image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could build this image once and push it to dockerhub instead of building it every time. It could live in a separate repo too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do that
docs/mkdocs.yml
Outdated
@@ -51,6 +51,39 @@ pages: | |||
- Official networks: 'advanced/official-networks.md' | |||
- Running local testnet: 'advanced/running-local-testnet.md' | |||
- Minting mining tokens: 'advanced/minting-tokens.md' | |||
- Smart Contracs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be 'Core contracts'? Eventually there will be other contracts in the network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change that
I've refactored the .drone.yml to generate the solidity docs and give an error if the generated documentation is different. This way, generating the documentation is mandatory for PR commits. |
I also added a |
A short summary.
Added generated documentation for the Solidity code.