GitHub is a collaborative development platform for open-source software projects. It uses Git, a version control system, to track and log changes to the source code, and display that history front and center. The Yearn team also uses Github for transparent project planning, visible collaboration, and housing all of the team's documentation and projects. To reach Yearn's Github projects page just navigate to the Yearn repository and tap on Projects in the header as seen below:
The Yearn Documentation team takes advantage of GitHub's robust graphic user interface (GUI) for Git to open issues, leave comments and manage our content files. On Github you can create issues in a repository which can then be labeled with a particular tag and then assigned to someone. This issue will then pop up as a card on the Projects board which can be moved around based on its current status.
For more information on how to create an issue please visit Github Help - Creating an Issue. Additionally Yearn uses a simple Git branching model, where one party manages the master branch and reviews all changes before adding them, which is usually the job of one of the repo admins. To learn more about how git workflows work, including from a command line instead of a GUI like Github please see: GitHub Standard Fork & Pull Request Workflow.
Lost and have no idea how GitHub works? Check out this short video for a brief intro to GitHub. Feel free to peruse learn git branching for fundamental git concepts.
Yearn also uses Gitbook to present the information in our Github Docs Repository(AKA Repo) in a way accessible to the public which can be seen at the official Yearn Docs page.
Below are two clear guides to contributing via GitHub and Gitbook based on how much you believe you will be contributing.
If you notice a typo or some small changes where you don't think setting up the documentation is worth the time to do so or you don't plan to be an ongoing contributor, just follow the below steps:
Yearn uses Gitbook which leverages Github in order to organize our Documentation. In order to successfully contribute more than simple changes, reaching out to other Yearn contributors is always preferable to get an idea of what the team is working on. Feel free to reach out on Discord if you are having any trouble with the instructions below.
Integrations
on the left sidebar and tap on the Github switch.Link your GitHub repository
where you can now select list all public repositories
, in the list you can search your recently forked Yearn Docs repo, likely named docs
for you.Sync "master" branch only
if you are only working on the base branch or select a branch if you are working on translations as those live on other branches.For more information on how the Github branching model works seelearn git branching.Which content should be used for the first synchronization ?
select I write my content on GitHub
. Give it some time to import and you should be all set! Once fully imported you can now begin making edits right on the page you're on which you can Save and Merge when you are ready.
Once you are finished editing and are ready to merge these changes into the original Yearn master repo which you originally forked from. Go to your <your github name>/<your docs repo name>
and Tap Create a Pull Request
ensuring that the base repository is iearn-finance/docs
and the head is <your github name>/<your docs repo name>
. A Reviewer may then add some comments that require you to to submit your PR in order to ensure your additions look right before merging in. Fore more information regarding the PR and merge process see the guide above.
Confused? Reach out in Yearn Documentation Chat and someone will walk you through it step-by-step. If you think you can improve this guide feel free to submit a PR ;)