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

Added docs for the Solidity code #799

Merged
merged 22 commits into from
Oct 5, 2018
Merged

Added docs for the Solidity code #799

merged 22 commits into from
Oct 5, 2018

Conversation

JuliusBrain
Copy link
Contributor

@JuliusBrain JuliusBrain commented Sep 27, 2018

A short summary.

Added generated documentation for the Solidity code.

@yourheropaul
Copy link
Member

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?

@JuliusBrain JuliusBrain changed the title Added docs for the Solidity code [WIP] Added docs for the Solidity code Sep 27, 2018
@JuliusBrain JuliusBrain changed the title [WIP] Added docs for the Solidity code Added docs for the Solidity code Oct 2, 2018
@JuliusBrain JuliusBrain self-assigned this Oct 2, 2018
.drone.yml Outdated
@@ -374,7 +374,17 @@ pipeline:
when:
branch: [dev]
event: [push]


build_solidity_docs:
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Member

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!

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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:
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll change that

@yourheropaul
Copy link
Member

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.

@yourheropaul
Copy link
Member

I also added a make docker_solidoc_generate task, so it's easy to regenerate the docs.

@yourheropaul yourheropaul merged commit d9e7d00 into dev Oct 5, 2018
@yourheropaul yourheropaul deleted the feature/solidity_docs branch October 5, 2018 15:02
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.

3 participants