|
2 | 2 | title: 'Becoming involved' |
3 | 3 | --- |
4 | 4 |
|
5 | | -<a id="becoming-involved"></a> |
| 5 | +import Tabs from '@theme/Tabs'; |
| 6 | +import TabItem from '@theme/TabItem'; |
6 | 7 |
|
7 | 8 | <a id="id1"></a> |
8 | 9 |
|
@@ -81,25 +82,30 @@ If you are new to the conda-forge community, follow the steps below to make your |
81 | 82 | ``` |
82 | 83 | git checkout -b <new-branch-name> |
83 | 84 | ``` |
84 | | -4. Run the following commands: |
85 | | - ``` |
86 | | - conda env create -f ./.ci_scripts/environment.yml |
87 | | - ``` |
88 | | - conda activate conda-forge-docs |
89 | | -5. While writing your new documentation, you can use the live preview mode with: |
90 | | - - `npm install` to make sure `node_modules` is up-to-date |
91 | | - - `npm run start` to start the live preview. Every time you save a file, the changes will be reflected instantaneously. |
92 | | -6. Once ready, you can also check how the production build would look like with the commands: |
93 | | - ``` |
94 | | - .ci_scripts/update_docs |
95 | | - python -m http.server --directory build/ |
96 | | - ``` |
97 | | -7. Add and commit your changes: |
| 85 | +4. Depending on your tool of choice, run these commands to obtain a live preview of the changes: |
| 86 | + |
| 87 | + <Tabs> |
| 88 | + <TabItem label="conda, mamba" value="conda"> |
| 89 | + ``` |
| 90 | + conda env create -f ./.ci_scripts/environment.yml |
| 91 | + conda activate conda-forge-docs |
| 92 | + npm install |
| 93 | + npm run start |
| 94 | + ``` |
| 95 | + </TabItem> |
| 96 | + <TabItem label="pixi" value="pixi" default="True"> |
| 97 | + ``` |
| 98 | + pixi run start |
| 99 | + ``` |
| 100 | + </TabItem> |
| 101 | + </Tabs> |
| 102 | + |
| 103 | +5. Once ready, add and commit your changes: |
98 | 104 | ``` |
99 | 105 | git add . |
100 | 106 | git commit -m "your commit message" |
101 | 107 | ``` |
102 | | -8. Submit a [pull request](https://help.github.com/articles/about-pull-requests/) to the main repository proposing your changes. |
| 108 | +6. Submit a [pull request](https://help.github.com/articles/about-pull-requests/) to the main repository proposing your changes. |
103 | 109 | The CI pipelines will include a PR preview on Netlify. |
104 | 110 |
|
105 | 111 | Happy contributing! |
|
0 commit comments