From f14aac513e6824e29f51a963671a81dd2967e820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:27:11 +0200 Subject: [PATCH] DOC: Update URLs from "http" to "https" if available (#3467) --- .github/ISSUE_TEMPLATE/1-bug_report.yaml | 2 +- AUTHORS.md | 6 +++--- README.md | 2 +- doc/_static/version_switch.js | 2 +- doc/_templates/footer.html | 2 +- doc/contributing.md | 10 +++++----- doc/overview.md | 4 ++-- examples/gallery/lines/roads.py | 2 +- pygmt/src/grd2cpt.py | 2 +- pygmt/src/makecpt.py | 2 +- pygmt/src/select.py | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1-bug_report.yaml b/.github/ISSUE_TEMPLATE/1-bug_report.yaml index 2ca187ae646..735bf2b612c 100644 --- a/.github/ISSUE_TEMPLATE/1-bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/1-bug_report.yaml @@ -23,7 +23,7 @@ body: For more details, check out: - [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve) - - [Craft Minimal Bug Reports](http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) + - [Craft Minimal Bug Reports](https://matthewrocklin.com/minimal-bug-reports) placeholder: "PASTE CODE HERE" render: python diff --git a/AUTHORS.md b/AUTHORS.md index c69d9caa936..9dea1bba49b 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -13,16 +13,16 @@ The following people have contributed code and/or documentation to the project | [Abhishek Anant](https://twitter.com/itsabhianant) | [0000-0002-5751-2010](https://orcid.org/0000-0002-5751-2010) | Unaffiliated | | [Andre L. Belem](https://github.com/andrebelem) | [0000-0002-8865-6180](https://orcid.org/0000-0002-8865-6180) | Fluminense Federal University, Brazil | | [Dongdong Tian](https://seisman.info/) | [0000-0001-7967-1197](https://orcid.org/0000-0001-7967-1197) | China University of Geosciences, China | -| [Jamie Quinn](http://jamiejquinn.com) | [0000-0002-0268-7032](https://orcid.org/0000-0002-0268-7032) | University College London, United Kingdom | +| [Jamie Quinn](https://jamiejquinn.com) | [0000-0002-0268-7032](https://orcid.org/0000-0002-0268-7032) | University College London, United Kingdom | | [Jiayuan Yao](https://github.com/core-man) | [0000-0001-7036-4238](https://orcid.org/0000-0001-7036-4238) | Nanyang Technological University, Singapore | | [Jing-Hui Tong](https://github.com/jhtong33) | [0009-0002-7195-3071](https://orcid.org/0009-0002-7195-3071) | National Taiwan Normal University, Taiwan | | [Kathryn Materna](https://github.com/kmaterna) | [0000-0002-6687-980X](https://orcid.org/0000-0002-6687-980X) | US Geological Survey, USA | -| [Leonardo Uieda](http://www.leouieda.com/) | [0000-0001-6123-9515](https://orcid.org/0000-0001-6123-9515) | University of Liverpool, United Kingdom | +| [Leonardo Uieda](https://www.leouieda.com/) | [0000-0001-6123-9515](https://orcid.org/0000-0001-6123-9515) | University of Liverpool, United Kingdom | | [Liam Toney](https://liam.earth/) | [0000-0003-0167-9433](https://orcid.org/0000-0003-0167-9433) | University of Alaska Fairbanks, USA | | [Malte Ziebarth](https://github.com/mjziebarth) | [0000-0002-5190-4478](https://orcid.org/0000-0002-5190-4478) | GFZ German Research Centre for Geosciences, Germany | | [Max Jones](https://github.com/maxrjones) | [0000-0003-0180-8928](https://orcid.org/0000-0003-0180-8928) | University of Hawaiʻi at Mānoa, USA | | [Michael Grund](https://github.com/michaelgrund) | [0000-0001-8759-2018](https://orcid.org/0000-0001-8759-2018) | SNP Innovation Lab GmbH, Germany | -| [Tyler Newton](http://www.tnewton.com/) | [0000-0002-1560-6553](https://orcid.org/0000-0002-1560-6553) | University of Oregon, USA | +| [Tyler Newton](https://www.tnewton.com/) | [0000-0002-1560-6553](https://orcid.org/0000-0002-1560-6553) | University of Oregon, USA | | [Wei Ji Leong](https://github.com/weiji14) | [0000-0003-2354-1988](https://orcid.org/0000-0003-2354-1988) | Development Seed, USA | | [William Schlitzer](https://github.com/willschlitzer) | [0000-0002-5843-2282](https://orcid.org/0000-0002-5843-2282) | Unaffiliated | | [Yohai Magen](https://github.com/yohaimagen) | [0000-0002-4892-4013](https://orcid.org/0000-0002-4892-4013) | Tel Aviv University, Israel | diff --git a/README.md b/README.md index b8bb251fe6c..316daf328b8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [Documentation (development version)](https://www.pygmt.org/dev) | [Contact](https://forum.generic-mapping-tools.org) | [TryOnline](https://github.com/GenericMappingTools/try-gmt) -[![Latest version on PyPI](http://img.shields.io/pypi/v/pygmt.svg?style=flat-square)](https://pypi.python.org/pypi/pygmt) +[![Latest version on PyPI](https://img.shields.io/pypi/v/pygmt.svg?style=flat-square)](https://pypi.python.org/pypi/pygmt) [![Latest version on conda-forge](https://img.shields.io/conda/v/conda-forge/pygmt?style=flat-square)](https://anaconda.org/conda-forge/pygmt) [![GitHub Actions Tests status](https://github.com/GenericMappingTools/pygmt/workflows/Tests/badge.svg)](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests.yaml) [![GitHub Actions GMT Dev Tests status](https://github.com/GenericMappingTools/pygmt/workflows/GMT%20Dev%20Tests/badge.svg)](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml) diff --git a/doc/_static/version_switch.js b/doc/_static/version_switch.js index ac6f81a5eff..acedd8c1d4c 100644 --- a/doc/_static/version_switch.js +++ b/doc/_static/version_switch.js @@ -74,7 +74,7 @@ window.location.href = new_url; }, error: function() { - window.location.href = 'http://' + doc_url + '/' + selected; + window.location.href = 'https://' + doc_url + '/' + selected; } }); } diff --git a/doc/_templates/footer.html b/doc/_templates/footer.html index 801cad7e3a9..13a0f4bdfdf 100644 --- a/doc/_templates/footer.html +++ b/doc/_templates/footer.html @@ -3,7 +3,7 @@ {%- block extrafooter %}

-Built with Sphinx +Built with Sphinx using a theme provided by Read the Docs

diff --git a/doc/contributing.md b/doc/contributing.md index ec33c9a4daa..d5ac0ac1875 100644 --- a/doc/contributing.md +++ b/doc/contributing.md @@ -100,7 +100,7 @@ Please take a look at these resources to learn about Git and pull requests (don' hesitate to [ask questions](contributing.md#getting-help)): * [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/). -* [Git Workflow Tutorial](http://www.asmeurer.com/git-workflow/) by Aaron Meurer. +* [Git Workflow Tutorial](https://www.asmeurer.com/git-workflow/) by Aaron Meurer. * [How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github). ### Getting Help @@ -111,7 +111,7 @@ the project where you can ask questions. ### Pull Request Workflow -We follow the [git pull request workflow](http://www.asmeurer.com/git-workflow) +We follow the [git pull request workflow](https://www.asmeurer.com/git-workflow) to make changes to our codebase. Every change made goes through a pull request, even our own, so that our [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) @@ -168,7 +168,7 @@ To increase the chances of getting your pull request accepted quickly, try to: or [Tutorials](contributing.md#contributing-tutorials). * Have a good coding style - Use readable code, as it is better than clever code (even with comments). - - Follow the [PEP8](http://pep8.org) style guide for code and the + - Follow the [PEP8](https://pep8.org) style guide for code and the [NumPy style guide](https://numpydoc.readthedocs.io/en/latest/format.html) for docstrings. Please refer to [Code style](contributing.md#code-style). @@ -251,7 +251,7 @@ There are four main components to PyGMT's documentation: The documentation is written primarily in [reStructuredText](https://docutils.sourceforge.io/rst.html) and built by -[Sphinx](http://www.sphinx-doc.org/). Please refer to +[Sphinx](https://www.sphinx-doc.org/). Please refer to {gmt-docs}`reStructuredText Cheatsheet ` if you are new to reStructuredText. When contributing documentation, be sure to follow the general guidelines in the [pull request workflow](contributing.md#pull-request-workflow) @@ -473,7 +473,7 @@ code, be sure to follow the general guidelines in the ### Code Style We use the [ruff](https://docs.astral.sh/ruff) tool to format the code, so we -don't have to think about it. It loosely follow the [PEP8](http://pep8.org) guide +don't have to think about it. It loosely follow the [PEP8](https://pep8.org) guide but with a few differences. Regardless, you won't have to worry about formatting the code yourself. Before committing, run it to automatically format your code: diff --git a/doc/overview.md b/doc/overview.md index 2b1c7cd40e4..feef05b9514 100644 --- a/doc/overview.md +++ b/doc/overview.md @@ -18,8 +18,8 @@ and JPG for use on the web and elsewhere. In fact, PyGMT users will usually not contact with the original PostScript files and get only the more convenient formats like PDF and PNG. -The project was started in 2017 by [Leonardo Uieda](http://www.leouieda.com) and -[Paul Wessel](http://www.soest.hawaii.edu/wessel) (the co-creator and main developer of +The project was started in 2017 by [Leonardo Uieda](https://www.leouieda.com) and +[Paul Wessel](https://www.soest.hawaii.edu/wessel) (the co-creator and main developer of GMT) at the University of Hawaiʻi at Mānoa. The development of PyGMT has been supported by NSF grants [OCE-1558403](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1558403) and [EAR-1948602](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1948602). diff --git a/examples/gallery/lines/roads.py b/examples/gallery/lines/roads.py index 7c1e75ef943..c2a5f69980a 100644 --- a/examples/gallery/lines/roads.py +++ b/examples/gallery/lines/roads.py @@ -17,7 +17,7 @@ # Read shapefile data using geopandas gdf = gpd.read_file( - "http://www2.census.gov/geo/tiger/TIGER2015/PRISECROADS/tl_2015_15_prisecroads.zip" + "https://www2.census.gov/geo/tiger/TIGER2015/PRISECROADS/tl_2015_15_prisecroads.zip" ) # The dataset contains different road types listed in the RTTYP column, # here we select the following ones to plot: diff --git a/pygmt/src/grd2cpt.py b/pygmt/src/grd2cpt.py index 43f0db976e9..240d47d30c7 100644 --- a/pygmt/src/grd2cpt.py +++ b/pygmt/src/grd2cpt.py @@ -57,7 +57,7 @@ def grd2cpt(grid, **kwargs): highest *z*-value, and the NaN color (N) painted wherever values are undefined. For color tables beyond the standard GMT offerings, visit `cpt-city `_ and - `Scientific Colour-Maps `_. + `Scientific Colour-Maps `_. If the master CPT includes B, F, and N entries, these will be copied into the new master file. If not, the parameters :gmt-term:`COLOR_BACKGROUND`, diff --git a/pygmt/src/makecpt.py b/pygmt/src/makecpt.py index d241035da76..d128e1f7aff 100644 --- a/pygmt/src/makecpt.py +++ b/pygmt/src/makecpt.py @@ -43,7 +43,7 @@ def makecpt(**kwargs): reversed relative to the master cpt, and can be made continuous or discrete. For color tables beyond the standard GMT offerings, visit `cpt-city `_ and - `Scientific Colour-Maps `_. + `Scientific Colour-Maps `_. The CPT includes three additional colors beyond the range of z-values. These are the background color (B) assigned to values lower than the lowest diff --git a/pygmt/src/select.py b/pygmt/src/select.py index 75f4fa802ef..ecd6d12bfad 100644 --- a/pygmt/src/select.py +++ b/pygmt/src/select.py @@ -162,7 +162,7 @@ def select( given range or is NaN (use ``skiprows`` to skip NaN records). If *max* is omitted then we test if *z* equals *min* instead. This means equality within 5 ULPs (unit of least precision; - http://en.wikipedia.org/wiki/Unit_in_the_last_place). Input file must + https://en.wikipedia.org/wiki/Unit_in_the_last_place). Input file must have at least three columns. To indicate no limit on *min* or *max*, specify a hyphen (-). If your 3rd column is absolute time then remember to supply ``coltypes="2T"``. To specify another column, append