Skip to content
Closed
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
11 changes: 10 additions & 1 deletion doc/_extensions/zephyr/manifest_projects_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"""

import re
from pathlib import Path
from typing import Any

from docutils import nodes
Expand Down Expand Up @@ -69,7 +70,15 @@ def rev_url(base_url: str, rev: str) -> str:
def run(self) -> list[nodes.Element]:
active_filter = self.options.get("filter", None)

manifest = Manifest.from_file(self.env.config.manifest_projects_table_manifest)
manifest_path = Path(self.env.config.manifest_projects_table_manifest)
with open(manifest_path) as f:
manifest_data = f.read()

# Use from_data instead of from_file to avoid loading local configuration
# This ensures we show projects that are enabled by default, independently of any local
# override in the user's manifest.project-filter setting.
manifest = Manifest.from_data(source_data=manifest_data)

projects = []
for project in manifest.projects:
if project.name == "manifest":
Expand Down
4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Zephyr documentation build configuration file.

Check warning on line 1 in doc/conf.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

Copyright missing

doc/conf.py:1 File has no SPDX-FileCopyrightText header, consider adding one.

Check warning on line 1 in doc/conf.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

License missing

doc/conf.py:1 File has no SPDX-License-Identifier header, consider adding one.
# Reference: https://www.sphinx-doc.org/en/master/usage/configuration.html

import os
Expand Down Expand Up @@ -292,6 +292,10 @@

notfound_urls_prefix = f"/{version}/" if is_release else "/latest/"

# -- Options for zephyr.manifest_projects_table --------------------------

manifest_projects_table_manifest = str(ZEPHYR_BASE / "west.yml")

# -- Options for zephyr.gh_utils ------------------------------------------

gh_link_version = f"v{version}" if is_release else "main"
Expand Down
Loading