@@ -319,113 +319,19 @@ Start a pull request
319319
320320The preferred way to contribute to Matplotlib is to fork the `main
321321repository <https://github.com/matplotlib/matplotlib/> `__ on GitHub,
322- then submit a "pull request" (PR). You can do this by cloning a copy of the
323- Matplotlib repository to your own computer, or alternatively using
324- `GitHub Codespaces <https://docs.github.com/codespaces >`_, a cloud-based
325- in-browser development environment that comes with the appropriate setup to
326- contribute to Matplotlib.
322+ then submit a "pull request" (PR). To work on a a pull request:
327323
328- Workflow overview
329- -----------------
330-
331- A brief overview of the workflow is as follows.
332-
333- #. `Create an account <https://github.com/join >`_ on GitHub if you do not
334- already have one.
335-
336- #. Fork the `project repository <https://github.com/matplotlib/matplotlib >`_ by
337- clicking on the :octicon: `repo-forked ` **Fork ** button near the top of the page.
338- This creates a copy of the code under your account on the GitHub server.
339-
340- #. Set up a development environment:
341-
342- .. tab-set ::
343-
344- .. tab-item :: Local development
345-
346- Clone this copy to your local disk::
347-
348- git clone https://github.com/<YOUR GITHUB USERNAME>/matplotlib.git
349-
350- .. tab-item :: Using GitHub Codespaces
351-
352- Check out the Matplotlib repository and activate your development environment:
353-
354- #. Open codespaces on your fork by clicking on the green "Code" button
355- on the GitHub web interface and selecting the "Codespaces" tab.
356-
357- #. Next, click on "Open codespaces on <your branch name>". You will be
358- able to change branches later, so you can select the default
359- ``main `` branch.
360-
361- #. After the codespace is created, you will be taken to a new browser
362- tab where you can use the terminal to activate a pre-defined conda
363- environment called ``mpl-dev ``::
364-
365- conda activate mpl-dev
366-
367-
368- #. Install the local version of Matplotlib with::
369-
370- python -m pip install --no-build-isolation --editable .[dev]
371-
372- See :ref:`installing_for_devs` for detailed instructions.
373-
374- #. Create a branch to hold your changes::
375-
376- git checkout -b my-feature origin/main
377-
378- and start making changes. Never work in the ``main`` branch!
379-
380- #. Work on this task using Git to do the version control. Codespaces persist for
381- some time (check the `documentation for details
382- <https://docs.github.com/codespaces/getting-started/the-codespace-lifecycle> `_)
383- and can be managed on https://github.com/codespaces. When you're done editing
384- e.g., ``lib/matplotlib/collections.py ``, do::
385-
386- git add lib/matplotlib/collections.py
387- git commit -m 'a commit message'
388-
389- to record your changes in Git, then push them to your GitHub fork with::
390-
391- git push -u origin my-feature
392-
393- GitHub Codespaces workflows
394- """""""""""""""""""""""""""
395-
396- If you need to open a GUI window with Matplotlib output on Codespaces, our
397- configuration includes a `light-weight Fluxbox-based desktop
398- <https://github.com/devcontainers/features/tree/main/src/desktop-lite> `_.
399- You can use it by connecting to this desktop via your web browser. To do this:
400-
401- #. Press ``F1 `` or ``Ctrl/Cmd+Shift+P `` and select
402- ``Ports: Focus on Ports View `` in the VSCode session to bring it into
403- focus. Open the ports view in your tool, select the ``noVNC `` port, and
404- click the Globe icon.
405- #. In the browser that appears, click the Connect button and enter the desktop
406- password (``vscode `` by default).
407-
408- Check the `GitHub instructions
409- <https://github.com/devcontainers/features/tree/main/src/desktop-lite#connecting-to-the-desktop> `_
410- for more details on connecting to the desktop.
411-
412- View documentation
413- ''''''''''''''''''
324+ #. **First ** set up a development environment, either by cloning a copy of the
325+ Matplotlib repository to your own computer or by using Github codespaces, by
326+ following the instructions in :ref: `installing_for_devs `
414327
415- If you also built the documentation pages, you can view them using Codespaces.
416- Use the "Extensions" icon in the activity bar to install the "Live Server"
417- extension. Locate the ``doc/build/html `` folder in the Explorer, right click
418- the file you want to open and select "Open with Live Server."
328+ #. **Then ** start a pull request by following the guidance in :ref: `development workflow <development-workflow >`
419329
420- Open a pull request on Matplotlib
421- ---------------------------------
330+ #. ** After starting ** check that your contribution meets the :ref: ` pull request guidelines < pr-author-guidelines >`
331+ and :ref: ` update the pull request < update-pull-request >` as needed.
422332
423- Finally, go to the web page of *your fork * of the Matplotlib repo, and click
424- **Compare & pull request ** to send your changes to the maintainers for review.
425- The base repository is ``matplotlib/matplotlib `` and the base branch is
426- generally ``main ``. For more guidance, see GitHub's `pull request tutorial
427- <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork> `_.
333+ #. **Finally ** follow up with maintainers on the PR if waiting more than a few days for
334+ feedback.
428335
429- For more detailed instructions on how to set up Matplotlib for development and
430- best practices for contribution, see :ref: `installing_for_devs ` and
431- :ref: `development-workflow `.
336+ If you have questions of any sort, reach out on the :ref: `contributor_incubator ` and join
337+ the :ref: `new_contributors_meeting `.
0 commit comments