Skip to content

Commit

Permalink
Fix the everest doc generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
verveerpj committed Sep 27, 2024
1 parent 7843b2f commit e5190f6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/everest/docs/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os

from tests.everest.utils import relpath
from pathlib import Path

from everest.docs.generate_docs_from_config_spec import generate_docs_pydantic_to_rst

committed_file = os.path.abspath(
relpath("..", "..", "docs", "everest", "config_generated.rst")
)
committed_file = (
Path(__file__).parents[3] / "docs" / "everest" / "config_generated.rst"
).resolve()


print(f"Writing new docs contents to {committed_file}")
docs_content = generate_docs_pydantic_to_rst()
Expand Down

0 comments on commit e5190f6

Please sign in to comment.