Skip to content

Commit 8c7bf8f

Browse files
Backport PR pandas-dev#45408: DOC: Clean up redirects & dead links (pandas-dev#45492)
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent cefb74c commit 8c7bf8f

29 files changed

+127
-149
lines changed

doc/source/development/code_style.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Testing
2828
Failing tests
2929
--------------
3030

31-
See https://docs.pytest.org/en/latest/skipping.html for background.
31+
See https://docs.pytest.org/en/latest/how-to/skipping.html for background.
3232

3333
Do not use ``pytest.xfail``
3434
---------------------------

doc/source/development/contributing_codebase.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Python (PEP8 / black)
155155

156156
pandas follows the `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_ standard
157157
and uses `Black <https://black.readthedocs.io/en/stable/>`_ and
158-
`Flake8 <http://flake8.pycqa.org/en/latest/>`_ to ensure a consistent code
158+
`Flake8 <https://flake8.pycqa.org/en/latest/>`_ to ensure a consistent code
159159
format throughout the project. We encourage you to use :ref:`pre-commit <contributing.pre-commit>`.
160160

161161
:ref:`Continuous Integration <contributing.ci>` will run those tools and
@@ -204,7 +204,7 @@ Import formatting
204204
pandas uses `isort <https://pypi.org/project/isort/>`__ to standardise import
205205
formatting across the codebase.
206206

207-
A guide to import layout as per pep8 can be found `here <https://www.python.org/dev/peps/pep-0008/#imports/>`__.
207+
A guide to import layout as per pep8 can be found `here <https://www.python.org/dev/peps/pep-0008/#imports>`__.
208208

209209
A summary of our current import sections ( in order ):
210210

@@ -449,7 +449,7 @@ continuous integration services, once your pull request is submitted.
449449
However, if you wish to run the test suite on a branch prior to submitting the pull request,
450450
then the continuous integration services need to be hooked to your GitHub repository. Instructions are here
451451
for `GitHub Actions <https://docs.github.com/en/actions/>`__ and
452-
`Azure Pipelines <https://docs.microsoft.com/en-us/azure/devops/pipelines/>`__.
452+
`Azure Pipelines <https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops>`__.
453453

454454
A pull-request will be considered for merging when you have an all 'green' build. If any tests are failing,
455455
then you will get a red 'X', where you can click through to see the individual failed tests.
@@ -776,18 +776,18 @@ Running the performance test suite
776776

777777
Performance matters and it is worth considering whether your code has introduced
778778
performance regressions. pandas is in the process of migrating to
779-
`asv benchmarks <https://github.com/spacetelescope/asv>`__
779+
`asv benchmarks <https://github.com/airspeed-velocity/asv>`__
780780
to enable easy monitoring of the performance of critical pandas operations.
781781
These benchmarks are all found in the ``pandas/asv_bench`` directory, and the
782-
test results can be found `here <https://pandas.pydata.org/speed/pandas/#/>`__.
782+
test results can be found `here <https://pandas.pydata.org/speed/pandas/>`__.
783783

784784
To use all features of asv, you will need either ``conda`` or
785785
``virtualenv``. For more details please check the `asv installation
786786
webpage <https://asv.readthedocs.io/en/latest/installing.html>`_.
787787

788788
To install asv::
789789

790-
pip install git+https://github.com/spacetelescope/asv
790+
pip install git+https://github.com/airspeed-velocity/asv
791791

792792
If you need to run a benchmark, change your directory to ``asv_bench/`` and run::
793793

doc/source/development/contributing_environment.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You will need `Build Tools for Visual Studio 2019
8282
In the installer, select the "C++ build tools" workload.
8383

8484
You can install the necessary components on the commandline using
85-
`vs_buildtools.exe <https://aka.ms/vs/16/release/vs_buildtools.exe>`_:
85+
`vs_buildtools.exe <https://download.visualstudio.microsoft.com/download/pr/9a26f37e-6001-429b-a5db-c5455b93953c/460d80ab276046de2455a4115cc4e2f1e6529c9e6cb99501844ecafd16c619c4/vs_BuildTools.exe>`_:
8686

8787
.. code::
8888
@@ -138,8 +138,8 @@ Creating a Python environment
138138

139139
Now create an isolated pandas development environment:
140140

141-
* Install either `Anaconda <https://www.anaconda.com/download/>`_, `miniconda
142-
<https://conda.io/miniconda.html>`_, or `miniforge <https://github.com/conda-forge/miniforge>`_
141+
* Install either `Anaconda <https://www.anaconda.com/products/individual>`_, `miniconda
142+
<https://docs.conda.io/en/latest/miniconda.html>`_, or `miniforge <https://github.com/conda-forge/miniforge>`_
143143
* Make sure your conda is up to date (``conda update conda``)
144144
* Make sure that you have :any:`cloned the repository <contributing.forking>`
145145
* ``cd`` to the pandas source directory
@@ -181,7 +181,7 @@ To return to your root environment::
181181

182182
conda deactivate
183183

184-
See the full conda docs `here <https://conda.pydata.org/docs>`__.
184+
See the full conda docs `here <https://conda.io/projects/conda/en/latest/>`__.
185185

186186

187187
Creating a Python environment (pip)
@@ -238,7 +238,7 @@ Consult the docs for setting up pyenv `here <https://github.com/pyenv/pyenv>`__.
238238

239239
Below is a brief overview on how to set-up a virtual environment with Powershell
240240
under Windows. For details please refer to the
241-
`official virtualenv user guide <https://virtualenv.pypa.io/en/stable/userguide/#activate-script>`__
241+
`official virtualenv user guide <https://virtualenv.pypa.io/en/latest/user_guide.html#activators>`__
242242

243243
Use an ENV_DIR of your choice. We'll use ~\\virtualenvs\\pandas-dev where
244244
'~' is the folder pointed to by either $env:USERPROFILE (Powershell) or

doc/source/development/debugging_extensions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Once the process launches, simply type ``run`` and the test suite will begin, st
8080
Checking memory leaks with valgrind
8181
===================================
8282

83-
You can use `Valgrind <https://www.valgrind.org>`_ to check for and log memory leaks in extensions. For instance, to check for a memory leak in a test from the suite you can run:
83+
You can use `Valgrind <https://valgrind.org/>`_ to check for and log memory leaks in extensions. For instance, to check for a memory leak in a test from the suite you can run:
8484

8585
.. code-block:: sh
8686

doc/source/development/extending.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ This would be more or less equivalent to:
468468
The backend module can then use other visualization tools (Bokeh, Altair,...)
469469
to generate the plots.
470470

471-
Libraries implementing the plotting backend should use `entry points <https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins>`__
471+
Libraries implementing the plotting backend should use `entry points <https://setuptools.pypa.io/en/latest/userguide/entry_point.html>`__
472472
to make their backend discoverable to pandas. The key is ``"pandas_plotting_backends"``. For example, pandas
473473
registers the default "matplotlib" backend as follows.
474474

doc/source/development/maintaining.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,4 @@ a milestone before tagging, you can request the bot to backport it with:
237237
238238
239239
.. _governance documents: https://github.com/pandas-dev/pandas-governance
240-
.. _list of permissions: https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization
240+
.. _list of permissions: https://docs.github.com/en/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization

doc/source/development/roadmap.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,4 @@ We improved the pandas documentation
203203
* :ref:`getting_started` contains a number of resources intended for new
204204
pandas users coming from a variety of backgrounds (:issue:`26831`).
205205

206-
.. _pydata-sphinx-theme: https://github.com/pandas-dev/pydata-sphinx-theme
206+
.. _pydata-sphinx-theme: https://github.com/pydata/pydata-sphinx-theme

0 commit comments

Comments
 (0)