Compare commits

..

No commits in common. "2e2da08a093fd78271f68f958b2618e4c74f417e" and "e9441296274594289b285431780f498b5fca59e2" have entirely different histories.

5 changed files with 7 additions and 22 deletions

4
.gitignore vendored
View File

@ -1,7 +1,7 @@
conf.yml
public/
content/events/
content/bibliography/
content/events
content/bibliography
# ---> macOS
# General

View File

@ -2,22 +2,9 @@
Site logics of "Mathematics & Artifice"
Setup:
```
'''
> python -m venv venv
> source venv/bin/activate
> pip install -r requirements.txt
> python make.py
```
Fetch bibliography (make sure conf.yml is set/valid):
```
> python fetch_bib.py
> python make.py
```
Fetch events (make sure conf.yml is set/valid):
```
> python fetch_ics.py
> python make.py
```
'''

View File

@ -62,7 +62,7 @@ if __name__ == "__main__":
fm_date = e.begin.format(DFMT)
fm_date_interval = f"{e.begin.format(DHFMT)}-{e.end.format(HFMT)}"
filename = f'{fm_date}-{name}.md'
filepath = pathlib.Path(conf['content']) / 'events' / filename
filepath = pathlib.Path(conf['content']) / 'event' / filename
if not filepath.exists():
print(f"new event: {e.name}")

View File

@ -55,11 +55,11 @@ if __name__ == "__main__":
events_dir = content_dir / 'events'
upcoming_events = []
previous_events = []
if not events_dir.exists():
print("path content/events does not exist.")
else:
events = list(utils.get_files_in_subdir(conf['content'], 'events', 'md').values())
events = list(utils.get_files_in_subdir(conf['content'], 'event', 'md').values())
for e in events:
p = frontmatter.load(e)
summary = f"{p['title']} - {p['date']}"

View File

@ -3,12 +3,10 @@ attrs==24.2.0
bibtexparser==1.4.2
certifi==2024.8.30
charset-normalizer==3.3.2
citeproc-py==0.6.0
feedparser==6.0.11
ics==0.7.2
idna==3.10
Jinja2==3.1.4
lxml==5.3.0
Markdown==3.7
MarkupSafe==2.1.5
pyparsing==3.1.4