Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing path to build documentation #689

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('doc/website/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
Expand Down
9 changes: 5 additions & 4 deletions doc/website/scripts/generate_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_last_modified_date(path: str) -> str:
try:
# Get the last commit date for the path
cmd = ["git", "log", "-1", "--format=%ad", "--date=short", path]
result = subprocess.run(cmd, cwd="/holohub", capture_output=True, text=True, check=True)
result = subprocess.run(cmd, cwd=path, capture_output=True, text=True, check=True)
# Convert YYYY-MM-DD to Month DD, YYYY format
date = result.stdout.strip()
try:
Expand Down Expand Up @@ -260,8 +260,7 @@ def generate_pages() -> None:
Returns:
None
"""
root = Path(__file__).parent.parent.parent
applications_dir = root / "holohub/"
root = Path(__file__).parent.parent.parent.parent

statistics = {
"operators": 0,
Expand All @@ -271,8 +270,10 @@ def generate_pages() -> None:
"benchmarks": 0,
}

logger.info(f"root: {root}")

# Parse the metadata.json files
for metadata_file in applications_dir.rglob("metadata.json"):
for metadata_file in root.rglob("metadata.json"):
parse_metadata_file(metadata_file, statistics)

logger.info(f"Stats: {statistics}")
Expand Down
Loading