diff --git a/.gitignore b/.gitignore index 0cde2dba..489bc54c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +# hexdoc +doc/**/_export/generated/ +_site/ +__gradle_version__.py + # eclipse bin *.launch @@ -29,7 +34,6 @@ plot/ # Python -/_site/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/doc/.gitignore b/doc/.gitignore deleted file mode 100644 index 43d72820..00000000 --- a/doc/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/src/hexdoc/_export/generated/ diff --git a/doc/src/hexdoc/__version__.py b/doc/src/hexdoc/__version__.py index 2150e998..e72c8049 100644 --- a/doc/src/hexdoc/__version__.py +++ b/doc/src/hexdoc/__version__.py @@ -1,10 +1,4 @@ # This file is auto-generated by hatch-gradle-version. -# Only the value of PY_VERSION is editable. -# All changes to other values will be ignored and overwritten. +# Only the value of PY_VERSION is editable. Do not edit other values. PY_VERSION = "1.0.dev0" - -# Everything below this line is completely auto-generated. - -GRADLE_VERSION = "0.11.1-7" -FULL_VERSION = "0.11.1.1.0rc7.dev0" diff --git a/doc/src/hexdoc/hexdoc.py b/doc/src/hexdoc/hexdoc.py index a3d65936..357c72b1 100644 --- a/doc/src/hexdoc/hexdoc.py +++ b/doc/src/hexdoc/hexdoc.py @@ -19,7 +19,7 @@ from hexdoc.utils import HexdocModel, ModResourceLoader, Properties from hexdoc.utils.cd import cd from hexdoc.utils.path import write_to_path -from .__version__ import GRADLE_VERSION +from .__gradle_version__ import GRADLE_VERSION from .utils.jinja_extensions import IncludeRawExtension, hexdoc_block, hexdoc_wrap MARKER_NAME = ".sitemap-marker.json" @@ -221,7 +221,6 @@ def main(args: Args | None = None) -> None: if args.is_release: # root should be the latest released version versions.append(GRADLE_VERSION) - if args.update_latest: versions.append("") diff --git a/doc/src/hexdoc/utils/compat.py b/doc/src/hexdoc/utils/compat.py index eb410a3c..f7c2319e 100644 --- a/doc/src/hexdoc/utils/compat.py +++ b/doc/src/hexdoc/utils/compat.py @@ -2,7 +2,7 @@ from enum import Enum from functools import total_ordering from typing import Any, Callable, Self -from hexdoc.__version__ import GRADLE_VERSION +from hexdoc.__gradle_version__ import GRADLE_VERSION @total_ordering diff --git a/doc/src/hexdoc/utils/resource_loader.py b/doc/src/hexdoc/utils/resource_loader.py index f81ba226..961f6637 100644 --- a/doc/src/hexdoc/utils/resource_loader.py +++ b/doc/src/hexdoc/utils/resource_loader.py @@ -9,7 +9,7 @@ from typing import Callable, Literal, Self, TypeVar, overload from pydantic.dataclasses import dataclass -from hexdoc.__version__ import GRADLE_VERSION +from hexdoc.__gradle_version__ import GRADLE_VERSION from hexdoc.utils.deserialize import JSONDict, decode_json_dict from hexdoc.utils.model import DEFAULT_CONFIG, HexdocModel, ValidationContext from hexdoc.utils.path import strip_suffixes, write_to_path diff --git a/pyproject.toml b/pyproject.toml index ec9d21e4..273ea5ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling", "hatch-gradle-version>=0.5.0"] +requires = ["hatchling", "hatch-gradle-version>=0.6.0"] build-backend = "hatchling.build" # project metadata