Skip to content

Commit

Permalink
Merge pull request #2581 from bsipocz/CI_linkcheck
Browse files Browse the repository at this point in the history
CI: adding linkcheck
  • Loading branch information
bsipocz authored Nov 11, 2022
2 parents 3b642ff + 4aac8c7 commit 31842df
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci_crontests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
toxargs: -v
toxposargs: -v

- name: Documentation build with linkcheck
os: ubuntu-latest
python: '3.10'
toxenv: linkcheck

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Installation and Requirements
Astroquery works with Python 3.7 or later.
As an `astropy`_ affiliate, astroquery requires `astropy`_ version 4.0 or later.

astroquery uses the `requests <http://docs.python-requests.org/en/latest/>`_
astroquery uses the `requests <https://requests.readthedocs.io/en/latest/>`_
module to communicate with the internet. `BeautifulSoup
<http://www.crummy.com/software/BeautifulSoup/>`_ and `html5lib'
<https://html5lib.readthedocs.io/en/latest/>`_ are needed for HTML parsing for
Expand Down
2 changes: 0 additions & 2 deletions astroquery/alfalfa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
:Author: Jordan Mirocha (mirochaj@gmail.com)
This package is for querying the ALFALFA data repository hosted at
http://arecibo.tc.cornell.edu/hiarchive/alfalfa/
"""
import warnings

Expand Down
4 changes: 2 additions & 2 deletions astroquery/hips2fits/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def query(self, hips, width, height, projection, ra, dec, fov, coordsys="icrs",
* The center of projection in world coordinates (ra, dec)
* The fov angle in world coordinates
* The rotation angle of the projection
* The name of the projection. All `astropy projections <https://docs.astropy.org/en/stable/wcs/#supported-projections>`_ are supported:
* The name of the projection. All `astropy projections <https://docs.astropy.org/en/stable/wcs/supported_projections.html>`_ are supported:
Parameters
----------
Expand All @@ -181,7 +181,7 @@ def query(self, hips, width, height, projection, ra, dec, fov, coordsys="icrs",
Height in pixels of the output image.
projection : str
Name of the requested projection, eg: SIN, TAN, MOL, AIT, CAR, CEA, STG Compulsory if wcs is not provided.
See `this page <https://docs.astropy.org/en/stable/wcs/#supported-projections>`_ for an exhaustive list.
See `this page <https://docs.astropy.org/en/stable/wcs/supported_projections.html>`_ for an exhaustive list.
fov : `~astropy.coordinates.Angle`
Size (FoV) of the cutout on the sky.
This is the size of the largest dimension of the image.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The following packages are required for astroquery installation & use:
* `numpy <http://www.numpy.org>`_ >= 1.16
* `astropy <http://www.astropy.org>`__ (>=4)
* `pyVO`_ (>=1.1)
* `requests <http://docs.python-requests.org/en/latest/>`_
* `requests <https://requests.readthedocs.io/en/latest/>`_
* `keyring <https://pypi.python.org/pypi/keyring>`_
* `Beautiful Soup <https://www.crummy.com/software/BeautifulSoup/>`_
* `html5lib <https://pypi.python.org/pypi/html5lib>`_
Expand Down
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist =
py{37,38,39,310}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
codestyle
linkcheck
build_docs
requires =
setuptools >= 30.3.0
Expand Down Expand Up @@ -71,3 +72,12 @@ requires =
commands =
pip freeze
python setup.py build_sphinx -W


[testenv:linkcheck]
changedir = {toxinidir}
description = check the links in the HTML docs
extras = docs
commands =
pip freeze
python setup.py build_sphinx -W -b linkcheck

0 comments on commit 31842df

Please sign in to comment.