Skip to content

Comments

Patch resolvemd for PT translation support#6

Open
dawnkelly09 wants to merge 7 commits intomainfrom
patch-resolvemd-translation-support
Open

Patch resolvemd for PT translation support#6
dawnkelly09 wants to merge 7 commits intomainfrom
patch-resolvemd-translation-support

Conversation

@dawnkelly09
Copy link
Contributor

This pull request updates the resolve_md MkDocs plugin to improve support for multilingual documentation builds, specifically by ensuring that language-specific content is correctly filtered and output directories are properly set for non-English builds. The changes focus on distinguishing between English and localized (e.g., Portuguese) content during the build process.

Key changes include:

Multilingual output directory handling:

  • The output directory (site_dir) is now adjusted so that non-English builds are placed in a language-specific subdirectory (e.g., site/pt for Portuguese), ensuring separation of localized content.

Language-aware file filtering:

  • The get_all_markdown_files method now filters files based on the current build language:
    • When building English, it skips folders for other languages (e.g., skips /pt/).
    • When building a localized version (e.g., Portuguese), it skips non-localized root files and only includes files from the corresponding language folder, with logic to avoid including English files in the localized build.
  • The method is no longer static, allowing it to access the current language setting.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@dawnkelly09 dawnkelly09 requested a review from Copilot February 2, 2026 22:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dawnkelly09 and others added 2 commits February 2, 2026 14:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dawnkelly09 dawnkelly09 requested a review from eshaben February 2, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant