feat: support building the website inside the repo

This commit is contained in:
Darragh Elliott 2024-09-26 14:31:47 +01:00
parent 68775f6f09
commit 18647572b4
4 changed files with 8 additions and 5 deletions

3
.gitignore vendored
View File

@ -15,6 +15,9 @@ global/data/topbanner/.topbanner.??.xml
fsfe.org/search/index.js
fsfe.org/tags/tagged-*.en.xhtml
fsfe.org/tags/.tags.??.xml
# Local build stuff
output/*
!output/README.md
## Status dir stuff
status.fsfe.org/*/data*/*

View File

@ -63,7 +63,7 @@ stylesheets: $(SUBDIRS)
# Dive into subdirectories
# -----------------------------------------------------------------------------
SUBDIRS := $(shell find */* -name "Makefile" | xargs dirname)
SUBDIRS := $(shell find . -regex "./[a-z\.]+\.[a-z]+/.*/Makefile" | xargs dirname)
all: $(SUBDIRS)
$(SUBDIRS): .FORCE

View File

@ -190,10 +190,7 @@ EOF
# All files which should just be copied over
COPY_SRC_FILES := \$(shell find -L "\$(INPUTDIR)" -type f \
-not -path '\$(INPUTDIR)/.git/*' \
-not -path '\$(INPUTDIR)/build/*' \
-not -path '\$(INPUTDIR)/global/*' \
-not -path '\$(INPUTDIR)/tools/*' \
-regex "\$(INPUTDIR)/[a-z\.]+\.[a-z]+/.*" \
-not -name '.drone.yml' \
-not -name '.gitignore' \
-not -name 'README*' \

3
output/README.md Normal file
View File

@ -0,0 +1,3 @@
# Output
This folder contains the output of the build script when called with default args.