Nano.Community aims to be a community run project and is grateful to all that step up to contribute. You don't need permission to work on anything, but it's always best to let others know what you're planning to do. You can do this by:
- Commenting on an issue or PR in GitHub
- Messaging on the Nano Discord server (cc: trashman#2397)
Before contributing, make sure you're familiar with the vision of Nano.Community and GitHub Flow.
All you need is a GitHub account to contribute. Every page is a MarkDown file, which is an easy to learn syntax.
- Use the "edit page" button on the site to navigate to the document on the github repository
- Make sure to sign in or create a GitHub account
- Once logged in, start editing by clicking the "edit file" icon in the top right
- Make changes, then click "propose changes". On the next page click "Create Pull Request" to submit.
Occasionally, changes will be requested for proposed changes. Navigate to your pull request to respond with any questions or comments. To make changes, navigate to the branch you used on your fork, make changes and commit them. The pull request will then be automatically updated with those changes.
- Write simply
- Keep content for users concise, while detailed for developers
- When possible, direct users to existing content on the official Nano documentation
- Use an impartial tone and neutral point of view. Content should be as objective as possible.
- Pull requests are preferred to issues, especially for small changes such as typos.
- Issues should be used for generic or broad-based changes or missing content (i.e. suggesting a faq, or content section)
- Smaller pull requests are preferred over a single large one.
- Limit mentioning or using content that changes over time, to prevent content from going stale and needing updates
JavaScript & markdown are used to make the project as accessible as possible.
Directory Structure
|-- api node.js api server for posts, network stats
|-- db schema for mysql
|-- docs wiki & knowledge hub
|-- src single page react app (deployed to IPFS)
`-- topics docs for each topic
$ git clone [email protected]:[your_github_handle]/nano-community.git && cd nano-community
- Add upstream remote
$ git remote add upstream https://github.com/mistakia/nano-community.git
To sync your fork with the latest changes
$ git checkout main
$ git fetch upstream
$ git merge upstream/main
- Install dependencies
yarn install
- Create a new branch for your changes
git checkout -b new_feature_name
- Start developing
yarn dev
- Before committing your changes, make sure to run prettier, lint, and build.
yarn prettier
yarn lint
yarn build
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.