Compare commits
2 Commits
602aa5b0aa
...
41feb179b2
Author | SHA1 | Date | |
---|---|---|---|
41feb179b2 | |||
![]() |
ffefe38f41 |
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,21 +1,8 @@
|
||||
*/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/topbanner/.topbanner.??.xml
|
||||
.default.xsl
|
||||
.localmenu.*.xml
|
||||
.*.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
|
||||
output
|
||||
# Python venv
|
||||
@ -24,9 +11,6 @@ __pycache__
|
||||
#Nltk
|
||||
.nltk_data
|
||||
|
||||
## Status dir stuff
|
||||
status.fsfe.org/*/data*/*
|
||||
|
||||
# Secrets
|
||||
# docker compose
|
||||
.env
|
||||
|
@ -13,7 +13,6 @@
|
||||
import logging
|
||||
import multiprocessing
|
||||
|
||||
from .create_activities_file import create_activities_file
|
||||
from .global_symlinks import global_symlinks
|
||||
from .index_website import index_websites
|
||||
from .prepare_subdirectories import prepare_subdirectories
|
||||
@ -33,11 +32,6 @@ def phase1_run(languages: list[str], processes: int, pool: multiprocessing.Pool)
|
||||
"""
|
||||
logger.info("Starting Phase 1 - Setup")
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Create XML activities file
|
||||
# -----------------------------------------------------------------------------
|
||||
create_activities_file()
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Build search index
|
||||
# -----------------------------------------------------------------------------
|
||||
|
18
fsfe.org/.gitignore
vendored
Normal file
18
fsfe.org/.gitignore
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# 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
fsfe.org/internal/pd.sources
Normal file
1
fsfe.org/internal/pd.sources
Normal file
@ -0,0 +1 @@
|
||||
fsfe.org/internal/fsfe-:[]
|
1
fsfe.org/internal/rc.sources
Normal file
1
fsfe.org/internal/rc.sources
Normal file
@ -0,0 +1 @@
|
||||
fsfe.org/internal/fsfe-:[]
|
@ -15,7 +15,10 @@ from build.lib.misc import update_if_changed
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def create_activities_file() -> None:
|
||||
def run(languages: list[str], processes: int, working_dir: Path) -> None:
|
||||
"""
|
||||
Internal subdir preparation
|
||||
"""
|
||||
logger.info("Creating activities file")
|
||||
raw_url = urlparse(
|
||||
"https://git.fsfe.org/FSFE/activities/raw/branch/master/activities.csv"
|
||||
@ -55,6 +58,6 @@ def create_activities_file() -> None:
|
||||
option.text = f"{tag} ({description})"
|
||||
|
||||
update_if_changed(
|
||||
Path("global/data/modules/fsfe-activities-options.en.xml"),
|
||||
working_dir.joinpath("fsfe-activities-options.en.xml"),
|
||||
etree.tostring(page, encoding="utf-8").decode("utf-8"),
|
||||
)
|
2
status.fsfe.org/.gitignore
vendored
Normal file
2
status.fsfe.org/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
## Status dir stuff
|
||||
*/data*/*
|
Loading…
x
Reference in New Issue
Block a user