Skip to content

fix: pulled docs publish their requirements.txt #244

Closed

Description

@uniqueg

Why?

The docs hook (docs/hooks.py) pulls the docs/ of tesk-api and tesk-core (docs-sources.yml) into TESK's site. Their docs/requirements.txt (for their own Read the Docs builds) ends up in the published site as a static file (/tesk-api/requirements.txt, /tesk-core/requirements.txt): both repositories list it in exclude_docs of their mkdocs.yml, but MkDocs only applies the exclude_docs of TESK's mkdocs.yml, and the hook adds every pulled file except Python files.

How?

  • In the hook, leave out the pulled files that the pulled repository's own exclude_docs matches (patterns relative to its docs/), and MkDocs' default exclusions (hidden files, a top-level templates/).
  • Test it, and document it in "Docs of tesk-api and tesk-core" in docs/development.md.

Acceptance criteria

  • The strict docs build publishes no requirements.txt of tesk-api or tesk-core.
  • Tests cover the exclusions.

Activity

  1. added
    priority: low
    status: in progress
    type: bug
    type: docs
    workload: hours
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowstatus: in progresstype: bugtype: docsworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions