DSPy: The framework for programming—not prompting—language models
Python
fix: serve versioned docs from static root (#10447)
Isaac Miller5ddc49e3773d
diff --git a/docs/scripts/publish_versioned_docs.py b/docs/scripts/publish_versioned_docs.pyindex 0a709ba1a..48a4abf5a 100644--- a/docs/scripts/publish_versioned_docs.py+++ b/docs/scripts/publish_versioned_docs.py@@ -20,6 +20,8 @@ HOST_CONFIG = (json.dumps({"framework": None,+ "buildCommand": "true",+ "outputDirectory": ".","trailingSlash": True,"headers": [{diff --git a/tests/docs/test_versioned_docs.py b/tests/docs/test_versioned_docs.pyindex 41fcac62d..be299674c 100644--- a/tests/docs/test_versioned_docs.py+++ b/tests/docs/test_versioned_docs.py@@ -210,7 +210,10 @@ def test_mike_current_is_mutable_and_default(tmp_path):assert branch_file(repository, "versioned-docs", "current/index.html") == "second"assert "url=current/" in branch_file(repository, "versioned-docs", "index.html")assert 'location.replace("/current/guide/"' in branch_file(repository, "versioned-docs", "guide/index.html")- assert json.loads(branch_file(repository, "versioned-docs", "vercel.json"))["framework"] is None+ host_config = json.loads(branch_file(repository, "versioned-docs", "vercel.json"))+ assert host_config["framework"] is None+ assert host_config["buildCommand"] == "true"+ assert host_config["outputDirectory"] == "."production_inventory = subprocess.run(["git", "cat-file", "-e", "master:versions.json"], cwd=repository, capture_output=True)