Adds timezone offsets to event start and end times for accurate scheduling. Also corrects an incorrect event date.
121 lines
3.0 KiB
Makefile
121 lines
3.0 KiB
Makefile
.PHONY: help
|
|
help: ## Show this help
|
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
install: ## Install
|
|
@npm install
|
|
@hugo mod get -u
|
|
@uv sync
|
|
@uv run pre-commit install
|
|
@uv run pre-commit autoupdate
|
|
|
|
cache: ## Clean the cache
|
|
@hugo --gc
|
|
|
|
clean: cache gomodule ## Clean the directory of the project of cache e meta file and other things
|
|
@find . -type d -empty -delete
|
|
|
|
.PHONY: run
|
|
run: clean ## Build the site cleaning all
|
|
@hugo --minify
|
|
|
|
.PHONY: gomodule
|
|
gomodule: ## Update Go Module
|
|
@hugo mod get -u ./...
|
|
@hugo mod tidy
|
|
@hugo mod get -u
|
|
|
|
update: clean ## Update the site requirements
|
|
@npm update
|
|
@uv lock
|
|
@uv sync
|
|
@uv run pre-commit autoupdate
|
|
@uv export --no-dev --no-hashes --format requirements-txt > requirements.txt
|
|
|
|
send_webmention: ## Send webmention from feed
|
|
@uv run python send_webmention.py
|
|
|
|
develop: ## Run the site local
|
|
@hugo server --disableFastRender --renderToMemory
|
|
|
|
developfuture: ## Run the site local with all the future article
|
|
@hugo server --disableFastRender --buildFuture --renderToMemory
|
|
|
|
developall: ## Run the site local with all the article, future or drafts
|
|
@hugo server --disableFastRender --buildFuture --buildDrafts --renderToMemory
|
|
|
|
.PHONY: hydra
|
|
hydra: ## Check links
|
|
@python hydra.py http://localhost:1313/ --config ./hydra-config.json
|
|
@python hydra.py http://fundor333.com/ --config ./hydra-config.json
|
|
|
|
.PHONY: new
|
|
new: ## Make new object for the blog
|
|
@uv run python3 make-post.py
|
|
|
|
characters: ## Sorting characters
|
|
@python3 sorting_characters.py
|
|
|
|
.PHONY: build
|
|
build: clean ## Build for dev
|
|
@hugo mod get -u
|
|
@hugo
|
|
|
|
.PHONY: syndication
|
|
syndication: ## Syndication script
|
|
@uv run python action_script/syndication-adder.py
|
|
|
|
|
|
.PHONY: webmention
|
|
webmention: ## Webmention script
|
|
@uv run python action_script/webmention.py
|
|
|
|
.PHONY: anime
|
|
anime: ## Anime script
|
|
@uv run python action_script/aniist_run.py
|
|
|
|
automation: anime webmention syndication ## Run all the automation script
|
|
@uv run python action_script/syndication-collector.py
|
|
@uv run python action_script/syndication-correction.py
|
|
|
|
|
|
deploy: update characters meet webmention syndication## Ready to deploy
|
|
@hugo --minify
|
|
@python mastodon2hugo.py @fundor333@mastodon.social
|
|
|
|
broadcast: clean ## broadcast the site
|
|
@hugo server --disableFastRender --buildFuture --buildDrafts -bind=0.0.0.0
|
|
|
|
deploy_prod: ## Ready to deploy
|
|
@npm update
|
|
@hugo mod get -u
|
|
@hugo --minify
|
|
|
|
|
|
.PHONY: submodule
|
|
submodule: ## Get submodule for this repo
|
|
git submodule update --init --recursive
|
|
|
|
.PHONY: weekly
|
|
weekly: ## Weekly script
|
|
@weeknote -config weeknote-config.json
|
|
@python3 make-post.py weekly_cover
|
|
|
|
precommit: ## Run pre-commit hooks
|
|
@git add . & uv run pre-commit run
|
|
|
|
micro: ## Run microblog script
|
|
@uv run python3 make-post.py micro
|
|
|
|
now: ## Run now script
|
|
@uv run python3 make-post.py now
|
|
|
|
notebook: ## Run notebook script
|
|
@uv run python3 make-post.py notebook
|
|
|
|
notebook_editor: ## Run notebook editor
|
|
@uv run jupyter lab .
|
|
|
|
meet: ## Run meet script
|
|
@uv run python3 micro_meetup.py --memory True
|