Thank you for considering making contributions. We appreciate your interest in helping us to create and maintain awesome tutorials and documentation.
To set up your environment for success, follow the technical setup guidelines.
Review existing Starport issues to see if your question has already been asked and answered.
- To provide feedback, file an issue and provide generous details to help us understand how we can make it better.
- To provide a fix, make a direct contribution. If you're not a member or maintainer, fork the repo and then submit a pull request (PR) from your forked repo to the
develop
branch. - Start by creating a draft pull request. Create your draft PR early, even if your work is just beginning or incomplete. Your draft PR indicates to the community that you're working on something and provides a space for conversations early in the development process. Merging is blocked for
Draft
PRs, so they provide a safe place to experiment and invite comments.
Some of the best content contributions come during the PR review cycles. Follow best practices for technical content PR reviews just like you do for code reviews.
- For in-line suggestions, use the GitHub suggesting feature.
- The PR owner can merge in your suggested commits one at a time or in batch (preferred).
- When you do a more granular extensive review that results in more than 20 in-line suggestions, go ahead and check out the branch and make the changes yourself.
We welcome contributions to the docs and tutorials.
Our technical content follows the Google developer documentation style guide. Highlights to help you get started:
The Google guidelines include more material than is listed here and are used as a guide that enables easy decision making about proposed content changes.
Other useful resources:
Technical content includes knowledge base articles and interactive tutorials.
- Starport Developer Tutorials content is in the
docs/guide
folder. - Knowledge Base content is in the
docs/kb
folder. - Migration content for required action steps required for upgrades to new Starport versions is in the
docs/migration
folder.
Locations and folders for other content can vary. Explore the self-describing folders for the content that you are interested in. Some articles and tutorials reside in a single Markdown file while sub-folders might be present for other tutorials.
As always, work-in-progress content might be happening in other locations and repos.
The Tendermint (All in Bits) Developer Experience team is focused on building Starport and developing tutorials.
The Tendermint (All in Bits) Ecosystem Development team owns the technical content and tutorials and manages developer onboarding.
Meet the people behind Starport and contributors.
There are two ways to see what your changes will look like in production before the updated pages are published.
- When a PR is ready for review, you can see a deployed preview on a URL that is unique for that PR.
- While a PR is in draft mode, you can preview a local build.
After the PR moves from Draft to Ready for review, the CI status checks generate a Netlify deploy preview. Netlify keeps this preview up to date as you continue to work and commit new changes to the same branch.
To view a deployed preview on a Ready for review PR, click the Details link on the netlify commit status line:
Since the deploy preview doesn't work on Draft PRs, follow these steps to preview a tutorial build on a local web browser.
-
If you haven't already, clone the tutorials repo to your local machine and change to that directory. For example:
cd ~/github git clone https://github.com/tendermint/starport cd starport cd docs
-
Local tutorials require JavaScript. If needed, install npm.
-
For each branch you work in, install the npm packages for the developer tutorials:
npm install
-
Start the local instance of the tutorial build:
npm run serve
A successful client compile looks like:
> VuePress dev server listening at http://localhost:8080/ ✔ Client Compiled successfully in 280.71ms success [12:06:28] Build 03d41f finished in 283 ms! ( http://localhost:8080/ )
-
You can now view the docs build on a local web browser. Isn't this fun?
Tip: On a Mac, press the command key and click
http://localhost:8080/
for quick access to the local preview. If you are already using port 8080 on your local machine, the preview increments to the next available port 8081, and so on.