Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ devserver:
devserver-global:
"$(PELICAN)" -lr "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS) -b 0.0.0.0

#publish:
# "$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)

# Direct publishing is intentionally disabled. It built with the DEV config
# (pelicanconf.py: RELATIVE_URLS=True, wrong canonicals, no feeds) and
# force-pushed gh-pages, bypassing every CI guard. Deploys happen only via
# GitHub Actions (deploy.yml) on merge to main.
publish:
pelican content -o output -s pelicanconf.py
ghp-import output -b gh-pages
git push origin gh-pages --force
@echo "ERROR: 'make publish' is disabled - it bypasses CI and deploys a dev-config build." >&2
@echo "Publish via the PR flow instead: branch -> PR -> checks -> merge to main (deploy.yml ships it)." >&2
@exit 1

github: publish
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
Expand Down
6 changes: 5 additions & 1 deletion pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ def _asset_version() -> str:
TWITTER_USERNAME = 'rivassec'

PATH = "content"
ARTICLE_EXCLUDES = ['_external', 'extra']
# 'tools' is static-shipped (see STATIC_PATHS below); excluding it here stops
# the markdown reader from logging an ERROR on tools/iam-blast-radius/VENDORED.md
# ("could not find information about 'title'") on every single build.
ARTICLE_EXCLUDES = ['_external', 'extra', 'tools']
PAGE_EXCLUDES = ['_external', 'extra', 'tools']
STATIC_PATHS = ['images', 'static']
CUSTOM_CSS = 'static/custom.css'
THEME = 'themes/Flex'
Expand Down
Loading