Skip to content

Commit

Permalink
Replace hard-coded extension links with extlinks reference
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed Feb 22, 2022
1 parent 537b3a0 commit 6fc5008
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 65 deletions.
5 changes: 1 addition & 4 deletions pystac/extensions/datacube.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Datacube extension.
https://github.com/stac-extensions/datacube
"""
"""Implements the :stac-ext:`Datacube Extension <datacube>`."""

from abc import ABC
from typing import Any, Dict, Generic, List, Optional, TypeVar, Union, cast
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/eo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Electro-Optical (EO) extension.
https://github.com/stac-extensions/eo
"""
"""Implements the :stac-ext:`Electro-Optical Extension <eo>`."""

from typing import (
Any,
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the File extension.
https://github.com/stac-extensions/file
"""
"""Implements the :stac-ext:`File Info Extension <file>`."""

from typing import Any, Dict, Iterable, List, Optional, Union

Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/item_assets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Item Assets Definition extension.
https://github.com/stac-extensions/item-assets
"""
"""Implements the :stac-ext:`Item Assets Definition Extension <item-assets>`."""

from copy import deepcopy
from typing import Any, Dict, List, Optional
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/label.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Label extension.
https://github.com/stac-extensions/label
"""
"""Implements the :stac-ext:`Label Extension <label>`."""

from pystac.extensions.base import ExtensionManagementMixin, SummariesExtension
from typing import Any, Dict, Iterable, List, Optional, Sequence, Union, cast
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/pointcloud.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Point Cloud extension.
https://github.com/stac-extensions/pointcloud
"""
"""Implements the :stac-ext:`Point Cloud Extension <pointcloud>`."""
from typing import Any, Dict, Iterable, Generic, List, Optional, TypeVar, cast, Union

import pystac
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/projection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Projection extension.
https://github.com/stac-extensions/projection
"""
"""Implements the :stac-ext:`Projection Extension <projection>`."""

import json
from typing import Any, Dict, Generic, Iterable, List, Optional, TypeVar, Union, cast
Expand Down
13 changes: 5 additions & 8 deletions pystac/extensions/raster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Raster extension.
https://github.com/stac-extensions/raster
"""
"""Implements the :stac-ext:`Raster Extension <raster>`."""

from typing import Any, Dict, Iterable, List, Optional, Union

Expand Down Expand Up @@ -373,8 +370,8 @@ def apply(
assumed to represent a sampling over the region of the pixel or a point
sample at the center of the pixel.
data_type :The data type of the band.
One of the data types as described in
<https://github.com/stac-extensions/raster/#data-types>.
One of the data types as described in the
:stac-ext:`Raster Data Types <raster/#data-types> docs`.
bits_per_sample : The actual number of bits used for this band.
Normally only present when the number of bits is non-standard for the
datatype, such as when a 1 bit TIFF is represented as byte
Expand Down Expand Up @@ -423,8 +420,8 @@ def create(
assumed to represent a sampling over the region of the pixel or a point
sample at the center of the pixel.
data_type :The data type of the band.
One of the data types as described in
<https://github.com/stac-extensions/raster/#data-types>.
One of the data types as described in the
:stac-ext:`Raster Data Types <raster/#data-types> docs`.
bits_per_sample : The actual number of bits used for this band.
Normally only present when the number of bits is non-standard for the
datatype, such as when a 1 bit TIFF is represented as byte
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/sar.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Synthetic-Aperture Radar (SAR) extension.
https://github.com/stac-extensions/sar
"""
"""Implements the :stac-ext:`Synthetic-Aperture Radar (SAR) Extension <sar>`."""

from typing import Any, Dict, Generic, Iterable, List, Optional, TypeVar, cast, Union

Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/sat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Satellite extension.
https://github.com/stac-extensions/sat
"""
"""Implements the :stac-ext:`Satellite Extension <sat>`."""

from datetime import datetime as Datetime
from pystac.summaries import RangeSummary
Expand Down
4 changes: 1 addition & 3 deletions pystac/extensions/scientific.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""Implements the scientific extension.
https://github.com/stac-extensions/scientific
"""Implements the :stac-ext:`Scientific Citation Extension <scientific>`.
For a description of Digital Object Identifiers (DOIs), see the DOI Handbook:
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/table.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Table extension
https://github.com/stac-extensions/table
"""
"""Implements the :stac-ext:`Table Extension <table>.`"""
from typing import Any, Dict, Generic, List, Optional, TypeVar, Union, cast

import pystac
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/timestamps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Timestamps extension.
https://github.com/stac-extensions/timestamps
"""
"""Implements the :stac-ext:`Timestamps Extension <timestamps>`."""

from datetime import datetime as datetime
from pystac.summaries import RangeSummary
Expand Down
9 changes: 3 additions & 6 deletions pystac/extensions/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implements the Versioning Indicators extension.
https://github.com/stac-extensions/version
"""
"""Implements the :stac-ext:`Versioning Indicators Extension <version>`."""
from pystac.utils import get_required, map_opt
from typing import Any, Dict, Generic, List, Optional, TypeVar, Union, cast

Expand All @@ -26,8 +23,8 @@
class VersionRelType(StringEnum):
"""A list of rel types defined in the Version Extension.
See the `Version Extension Relation types
<https://github.com/stac-extensions/version#relation-types>`__ documentation
See the :stac-ext:`Version Extension Relation types
<version#relation-types>` documentation
for details."""

LATEST = "latest-version"
Expand Down
5 changes: 1 addition & 4 deletions pystac/extensions/view.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Implement the View Geometry extension.
https://github.com/stac-extensions/view
"""
"""Implement the :stac-ext:`View Geometry Extension <view>`."""

from typing import Any, Dict, Generic, Iterable, Optional, TypeVar, Union, cast

Expand Down

0 comments on commit 6fc5008

Please sign in to comment.