Rename to photojawn
This commit is contained in:
parent
e811f2949b
commit
8f7b336220
13 changed files with 14 additions and 14 deletions
2
Makefile
2
Makefile
|
@ -37,7 +37,7 @@ run:
|
|||
podman-compose up
|
||||
|
||||
build:
|
||||
podman build -t nickpegg/photoalbum . --build-arg GIT_COMMIT=$(shell git rev-parse --short HEAD)
|
||||
podman build -t nickpegg/photojawn . --build-arg GIT_COMMIT=$(shell git rev-parse --short HEAD)
|
||||
|
||||
clean:
|
||||
podman-compose down --rmi all
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# photoalbum
|
||||
# photojawn
|
||||
|
||||
A super simple photo album static site generator. You give it a path to a folder of
|
||||
photos and other photos, and it'll generate a basic photo album in that directory. Then
|
||||
|
@ -7,5 +7,5 @@ host it.
|
|||
|
||||
It's everything I need and nothing I don't.
|
||||
|
||||
Heavily inspired by the photoalbums found on bayarearides.com
|
||||
Heavily inspired by the photo albums found on https://bayarearides.com
|
||||
([example](https://bayarearides.com/rides/annadel1/photos/)).
|
||||
|
|
|
@ -4,10 +4,10 @@ from pathlib import Path
|
|||
|
||||
from rich.logging import RichHandler
|
||||
|
||||
from photoalbum.config import DEFAULT_CONFIG_PATH, Config
|
||||
from photoalbum.generate import generate
|
||||
from photojawn.config import DEFAULT_CONFIG_PATH, Config
|
||||
from photojawn.generate import generate
|
||||
|
||||
logger = logging.getLogger("photoalbum.cli")
|
||||
logger = logging.getLogger("photojawn.cli")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
@ -22,7 +22,7 @@ def main() -> None:
|
|||
elif args.action != "init":
|
||||
logger.error(
|
||||
f"No config file found at {conf_path}. If this is a new photo directory, "
|
||||
"please run `photoalbum init` in there first."
|
||||
"please run `photojawn init` in there first."
|
||||
)
|
||||
return
|
||||
|
||||
|
@ -44,7 +44,7 @@ def parse_args() -> Namespace:
|
|||
"--config",
|
||||
"-c",
|
||||
default=DEFAULT_CONFIG_PATH,
|
||||
help="Path to photoalbum.config.json for the album",
|
||||
help="Path to photojawn.config.json for the album",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--logging",
|
||||
|
@ -144,7 +144,7 @@ def cmd_generate(args: Namespace, config: Config) -> None:
|
|||
|
||||
def cmd_clean(args: Namespace, config: Config) -> None:
|
||||
"""
|
||||
Clean the photo album by all files that photoalbum generated
|
||||
Clean the photo album by all files that photojawn generated
|
||||
"""
|
||||
pass
|
||||
|
|
@ -3,7 +3,7 @@ from dataclasses import dataclass
|
|||
|
||||
import yaml
|
||||
|
||||
DEFAULT_CONFIG_PATH = "photoalbum.conf.yml"
|
||||
DEFAULT_CONFIG_PATH = "photojawn.conf.yml"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -8,7 +8,7 @@ from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|||
from PIL import Image, UnidentifiedImageError
|
||||
from rich.progress import Progress, track
|
||||
|
||||
from photoalbum.config import Config
|
||||
from photojawn.config import Config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
[tool.poetry]
|
||||
name = "photoalbum"
|
||||
name = "photojawn"
|
||||
version = "0.1.0"
|
||||
description = "A simple photo album static site generator"
|
||||
authors = ["Nick Pegg <nick@nickpegg.com>"]
|
||||
repository = "https://github.com/nickpegg/photoalbum"
|
||||
repository = "https://github.com/nickpegg/photojawn"
|
||||
readme = "README.md"
|
||||
license = "TODO"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
photoalbum = 'photoalbum.cli:main'
|
||||
photojawn = 'photojawn.cli:main'
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
# TODO: make sure we support >=3.10 via tests
|
||||
|
|
Loading…
Add table
Reference in a new issue