Commit ea3e1b0a authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix mirror

parent 01f518d8
Loading
Loading
Loading
Loading
+4 −3
Changes for src/climax/__main__.py: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ SAXON_DISTRO = (
    "https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/10.8/Saxon-HE-10.8.jar"
)
MAX_DISTRO = "https://git.unicaen.fr/pdn-certic/max-v2/-/archive/0.0.1-alpha/max-v2-0.0.1-alpha.zip"
CURRENT_MAX_DISTRO_DIR = "max-v2-0.0.1-alpha"
CURRENT_MAX_DISTRO_DIR = os.path.splitext(os.path.basename(MAX_DISTRO))[0]
JAVA_DISTROS = {
    "darwin/arm64": "https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_macos-aarch64_bin.tar.gz",
    "linux/x86_64": "https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_linux-x64_bin.tar.gz",
@@ -632,8 +632,9 @@ def mirror(
    # copy website
    pywebcopy_config["encoding"] = "utf-8"
    try:
        for lang in config.languages:
            start_url = f"http://localhost:{port_number}/{lang}/tdm.html"
        # for lang in config.languages:
        # start_url = f"http://localhost:{port_number}/{lang}/tdm.html"
        start_url = f"http://localhost:{port_number}/"
        save_website(
            url=start_url,
            project_folder=str(directory),
+1 −1
Changes for src/pywebcopy/urls.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ common_suffix_map = {
    "application/json": ".json",  # JSON format
    "application/ld+json": ".jsonld",  # JSON-LD format
    "application/msword": ".doc",  # Microsoft Word
    "application/octet-stream": ".bin",  # Any kind of binary data
    "application/octet-stream": "",  # Any kind of binary data
    "application/ogg": ".ogx",  # OGG
    "application/pdf": ".pdf",  # Adobe Portable Document Format (PDF)
    "application/php": ".php",  # Hypertext Preprocessor (Personal Home Page)