Compare commits
No commits in common. "41feb179b25d0d2ce74fa4abe30cd85160e77892" and "602aa5b0aad38fadcf4e6cd0a36bb3fcaf879dbe" have entirely different histories.
41feb179b2
...
602aa5b0aa
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,8 +1,21 @@
|
|||||||
|
*/look/fsfe.min.css
|
||||||
|
*/look/valentine.min.css
|
||||||
|
fsfe.org/events/????/index.??.xhtml
|
||||||
|
fsfe.org/events/????/index.sources
|
||||||
|
fsfe.org/events/????/index.xsl
|
||||||
|
fsfe.org/news/????/index.??.xhtml
|
||||||
|
fsfe.org/news/????/index.sources
|
||||||
|
fsfe.org/news/????/index.xsl
|
||||||
|
fsfe.org/news/*/.*.??.xml
|
||||||
global/data/texts/.texts.??.xml
|
global/data/texts/.texts.??.xml
|
||||||
global/data/topbanner/.topbanner.??.xml
|
global/data/topbanner/.topbanner.??.xml
|
||||||
.default.xsl
|
.default.xsl
|
||||||
.localmenu.*.xml
|
.localmenu.*.xml
|
||||||
.*.xmllist
|
.*.xmllist
|
||||||
|
fsfe.org/search/index.js
|
||||||
|
fsfe.org/tags/tagged-*.??.xhtml
|
||||||
|
fsfe.org/tags/.tags.??.xml
|
||||||
|
global/data/modules/fsfe-activities-options.en.xml
|
||||||
# Local build stuff
|
# Local build stuff
|
||||||
output
|
output
|
||||||
# Python venv
|
# Python venv
|
||||||
@ -11,6 +24,9 @@ __pycache__
|
|||||||
#Nltk
|
#Nltk
|
||||||
.nltk_data
|
.nltk_data
|
||||||
|
|
||||||
|
## Status dir stuff
|
||||||
|
status.fsfe.org/*/data*/*
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
# docker compose
|
# docker compose
|
||||||
.env
|
.env
|
||||||
|
@ -15,10 +15,7 @@ from build.lib.misc import update_if_changed
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def run(languages: list[str], processes: int, working_dir: Path) -> None:
|
def create_activities_file() -> None:
|
||||||
"""
|
|
||||||
Internal subdir preparation
|
|
||||||
"""
|
|
||||||
logger.info("Creating activities file")
|
logger.info("Creating activities file")
|
||||||
raw_url = urlparse(
|
raw_url = urlparse(
|
||||||
"https://git.fsfe.org/FSFE/activities/raw/branch/master/activities.csv"
|
"https://git.fsfe.org/FSFE/activities/raw/branch/master/activities.csv"
|
||||||
@ -58,6 +55,6 @@ def run(languages: list[str], processes: int, working_dir: Path) -> None:
|
|||||||
option.text = f"{tag} ({description})"
|
option.text = f"{tag} ({description})"
|
||||||
|
|
||||||
update_if_changed(
|
update_if_changed(
|
||||||
working_dir.joinpath("fsfe-activities-options.en.xml"),
|
Path("global/data/modules/fsfe-activities-options.en.xml"),
|
||||||
etree.tostring(page, encoding="utf-8").decode("utf-8"),
|
etree.tostring(page, encoding="utf-8").decode("utf-8"),
|
||||||
)
|
)
|
@ -13,6 +13,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
|
from .create_activities_file import create_activities_file
|
||||||
from .global_symlinks import global_symlinks
|
from .global_symlinks import global_symlinks
|
||||||
from .index_website import index_websites
|
from .index_website import index_websites
|
||||||
from .prepare_subdirectories import prepare_subdirectories
|
from .prepare_subdirectories import prepare_subdirectories
|
||||||
@ -32,6 +33,11 @@ def phase1_run(languages: list[str], processes: int, pool: multiprocessing.Pool)
|
|||||||
"""
|
"""
|
||||||
logger.info("Starting Phase 1 - Setup")
|
logger.info("Starting Phase 1 - Setup")
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Create XML activities file
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
create_activities_file()
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Build search index
|
# Build search index
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
18
fsfe.org/.gitignore
vendored
18
fsfe.org/.gitignore
vendored
@ -1,18 +0,0 @@
|
|||||||
# css
|
|
||||||
look/fsfe.min.css
|
|
||||||
look/valentine.min.css
|
|
||||||
# automatically generate subdirectory stuff
|
|
||||||
events/????/index.??.xhtml
|
|
||||||
events/????/index.sources
|
|
||||||
events/????/index.xsl
|
|
||||||
news/????/index.??.xhtml
|
|
||||||
news/????/index.sources
|
|
||||||
news/????/index.xsl
|
|
||||||
news/*/.*.??.xml
|
|
||||||
# search index
|
|
||||||
search/index.js
|
|
||||||
#tags
|
|
||||||
tags/tagged-*.??.xhtml
|
|
||||||
tags/.tags.??.xml
|
|
||||||
# internal activities file
|
|
||||||
internal/fsfe-activities-options.*.xml
|
|
@ -1 +0,0 @@
|
|||||||
fsfe.org/internal/fsfe-:[]
|
|
@ -1 +0,0 @@
|
|||||||
fsfe.org/internal/fsfe-:[]
|
|
2
status.fsfe.org/.gitignore
vendored
2
status.fsfe.org/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
## Status dir stuff
|
|
||||||
*/data*/*
|
|
Loading…
x
Reference in New Issue
Block a user