|
| 1 | +# Contributing to Gnosis |
| 2 | +Thank you for your interest in contributing! |
| 3 | + |
| 4 | +## Run the project |
| 5 | + |
| 6 | +### Prerequisites |
| 7 | + |
| 8 | +[Node.js](https://nodejs.org/en/download/) version 14.13 or higher. |
| 9 | + |
| 10 | +### Installation |
| 11 | + |
| 12 | +``` |
| 13 | +$ yarn install |
| 14 | +``` |
| 15 | + |
| 16 | +### Local Development |
| 17 | + |
| 18 | +``` |
| 19 | +$ yarn start |
| 20 | +``` |
| 21 | + |
| 22 | +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. |
| 23 | + |
| 24 | +### Build |
| 25 | + |
| 26 | +``` |
| 27 | +$ yarn build |
| 28 | +``` |
| 29 | + |
| 30 | +This command generates static content into the `build` directory and can be served using any static contents hosting service. |
| 31 | + |
| 32 | +### Contents |
| 33 | +* Docs are located in the [docs](docs) directory. |
| 34 | +* Landing pages are located in the [src/pages](src/pages) directory. |
| 35 | +* Images and static files are located in the [static](static) directory. |
| 36 | +* The left side-bar of the page is controlled by [sidebars.js](sidebars.js). |
| 37 | +* Docusaurus complete documentation can be found [here](https://docusaurus.io/docs). |
| 38 | + |
| 39 | +## Submit an Issue |
| 40 | + |
| 41 | +Start by [searching if an issue already exists](https://docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-issues-and-pull-requests#search-by-the-title-body-or-comments). |
| 42 | +If a related issue doesn't exist, you can [open a new issue](https://github.com/gnosischain/developers-portal/issues/new/choose) following the instructions of the template accordingly. |
| 43 | + |
| 44 | +Issues are categorized by type: |
| 45 | + |
| 46 | +- Feature |
| 47 | +- Content |
| 48 | +- Bug |
| 49 | + |
| 50 | +## Creating Pull Requests |
| 51 | + |
| 52 | +For help, see [GitHub Docs: Linking a pull request to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). |
| 53 | + |
| 54 | +- Submit a PR against the `main` branch of the `gnosischain/developers-portal` repo |
| 55 | +- Follow the PR template instructions carefuly |
| 56 | + |
| 57 | +## Writing style |
| 58 | + |
| 59 | +We selected a collection of best practices from the industry to make the website easy to read, global, diverse and searchable |
| 60 | + |
| 61 | +- [General Writing Guidelines (by OpenStack)](https://docs.openstack.org/doc-contrib-guide/writing-style/general-writing-guidelines.html) |
| 62 | +- [Bias-free communication (by Microsoft)](https://docs.microsoft.com/en-us/style-guide/bias-free-communication) |
| 63 | +- [Global communications (by Microsoft)](https://docs.microsoft.com/en-us/style-guide/global-communications/) |
| 64 | + |
| 65 | +## Transfering Gitbook Pages |
| 66 | + |
| 67 | +When transfering documents from the old gitbook, consider the funcionality difference detailed below, and the following: |
| 68 | + |
| 69 | +- Relevance and validity of the content |
| 70 | +- ```xdaichain``` was renamed to ```gnosis``` |
| 71 | +- Open Ethereum was deprecated |
| 72 | +- Nifty Wallet deprecation |
| 73 | +- Internal and external links |
| 74 | + |
| 75 | +### Images location |
| 76 | + |
| 77 | +#### Gitbook |
| 78 | + |
| 79 | +``` |
| 80 | +/.gitbook/assets/ |
| 81 | +``` |
| 82 | + |
| 83 | +#### Docusaurus |
| 84 | + |
| 85 | +``` |
| 86 | +/static/img/ |
| 87 | +``` |
| 88 | + |
| 89 | +### Alerts |
| 90 | + |
| 91 | +#### Gitbook |
| 92 | + |
| 93 | +``` |
| 94 | +{% hint style="info" %} |
| 95 | +Message |
| 96 | +{% endhint %} |
| 97 | +``` |
| 98 | + |
| 99 | +#### Docusaurus |
| 100 | + |
| 101 | +``` |
| 102 | +:::info |
| 103 | +Message |
| 104 | +::: |
| 105 | +``` |
| 106 | +Refer to [docusaurus docs](https://docusaurus.io/docs/next/markdown-features/admonitions) for more admonition types. |
| 107 | + |
| 108 | +### Files |
| 109 | + |
| 110 | +#### Gitbook |
| 111 | + |
| 112 | +``` |
| 113 | +{% file src="somepath/somefile.zip" %} |
| 114 | +``` |
| 115 | + |
| 116 | +#### Docusaurus |
| 117 | + |
| 118 | +``` |
| 119 | +{@file: /somefile.zip} |
| 120 | +``` |
| 121 | +Place files in ```/static/files/``` |
| 122 | + |
| 123 | +### Youtube Videos |
| 124 | + |
| 125 | +#### Gitbook |
| 126 | + |
| 127 | +``` |
| 128 | +{% embed url="https://www.youtube.com/watch?v=yPYYKz0u9K0t=10s" %} |
| 129 | +``` |
| 130 | + |
| 131 | +#### Docusaurus |
| 132 | + |
| 133 | +``` |
| 134 | +{@youtube: yPYYKz0u9K0t,start=10} |
| 135 | +``` |
| 136 | + |
| 137 | +### Tabs |
| 138 | + |
| 139 | +Refer to [docusaurus docs](https://docusaurus.io/docs/next/markdown-features/tabs) for details on tabs. |
0 commit comments