Move scripts to subdir

This commit is contained in:
object-Object 2023-09-03 20:35:52 -04:00
parent 4983d5f98c
commit c925e8623d
4 changed files with 7 additions and 8 deletions

View file

View file

@ -12,15 +12,14 @@ from jinja2 import ChoiceLoader, FileSystemLoader, PackageLoader, StrictUndefine
from jinja2.sandbox import SandboxedEnvironment
from pydantic import model_validator
from hexdoc.__gradle_version__ import GRADLE_VERSION
from hexdoc.hexcasting.hex_book import load_hex_book
from hexdoc.minecraft import I18n
from hexdoc.patchouli import Book
from hexdoc.utils import HexdocModel, ModResourceLoader, Properties
from hexdoc.utils.jinja_extensions import IncludeRawExtension, hexdoc_block, hexdoc_wrap
from hexdoc.utils.path import write_to_path
from .__gradle_version__ import GRADLE_VERSION
from .utils.jinja_extensions import IncludeRawExtension, hexdoc_block, hexdoc_wrap
MARKER_NAME = ".sitemap-marker.json"

View file

@ -7,11 +7,11 @@ from typing import Self, Sequence
from pydantic import Field, TypeAdapter
from hexdoc.__gradle_version__ import GRADLE_VERSION
from hexdoc.hexdoc import MARKER_NAME, SitemapMarker
from hexdoc.utils import HexdocModel
from hexdoc.utils.model import DEFAULT_CONFIG
from hexdoc.utils import DEFAULT_CONFIG, HexdocModel
from hexdoc.utils.path import write_to_path
from .hexdoc import MARKER_NAME, SitemapMarker
class SitemapItem(HexdocModel):
default_path: str = Field(alias="defaultPath", default="")

View file

@ -34,8 +34,8 @@ dev = [
]
[project.scripts]
hexdoc = "hexdoc.hexdoc:main"
hexdoc_merge = "hexdoc.hexdoc_merge:main"
hexdoc = "hexdoc.scripts.hexdoc:main"
hexdoc_merge = "hexdoc.scripts.hexdoc_merge:main"
# Gradle version/deps