INNER CODE UNIT · Python

_selected_public_sources

WenyuChiou/awesome-agentic-ai-zh · scripts/build-docs-tree.py:66

def _selected_public_sources() -> list[Path]:
    """Return every repository path that may enter the public build tree."""

    sources = [REPO / directory for directory in CONTENT_DIRS]
    sources.extend(REPO / relative for relative in CONTENT_FILES)
    for stem in ROOT_STEMS:
        for suffix in (".md", ".en.md", ".zh-Hans.md"):
            source = REPO / f"{stem}{suffix}"
            if source.exists() or source.is_symlink():
                sources.append(source)
    return sources


def _public_symlinks(sources: list[Path]) -> list[Path]:
    """Find symlinks without following them into an external tree."""

    found: set[Path] = set()
    for source in sources:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…