-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_website.py
More file actions
executable file
·34 lines (28 loc) · 1.31 KB
/
Copy pathcreate_website.py
File metadata and controls
executable file
·34 lines (28 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python
"""
Entry point for website generation.
This script uses the refactored modules from the website package.
"""
import argparse
import sys
import os
from website.main import main as website_main
from pausanias_db import add_database_argument
def parse_arguments():
parser = argparse.ArgumentParser(description="Create a static website to visualize mythic and skeptical aspects of Pausanias passages")
add_database_argument(parser)
parser.add_argument("--output-dir", default="pausanias_site",
help="Output directory for the static website (default: pausanias_site)")
parser.add_argument("--max-passages", type=int, default=None,
help="Maximum number of passages to include (default: all)")
parser.add_argument("--title", default="Pausanias Analysis",
help="Title for the website (default: 'Pausanias Analysis')")
return parser.parse_args()
if __name__ == '__main__':
# Enable phrase translation by default unless explicitly disabled
if '--no-translate-phrases' in sys.argv:
sys.argv.remove('--no-translate-phrases')
elif '--translate-phrases' not in sys.argv:
sys.argv.append('--translate-phrases')
# This script simply delegates to the refactored website module
website_main()