Add exclude_dirs support for translation system#894
Open
ewels wants to merge 2 commits intonextflow-io:masterfrom
Open
Add exclude_dirs support for translation system#894ewels wants to merge 2 commits intonextflow-io:masterfrom
ewels wants to merge 2 commits intonextflow-io:masterfrom
Conversation
Add a YAML configuration file (translate_config.yml) that allows excluding directories from automatic translation. Excluded directories are skipped during sync and are not flagged as orphaned. Pages in excluded directories still appear on translated sites with the English fallback admonition.
✅ Deploy Preview for nextflow-training ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Nextflow linting complete! ❌ 1 files had 1 errors 💡 Tip: Click filename locations to go directly to that code. View all 1 issues
View formatting changes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_scripts/translate/translate_config.yml) with anexclude_dirsoption to skip entire directories from automatic translationiter_en_docs(),get_orphaned_files(), and config loading to respect the exclusion listTRANSLATING.mdDetails
The
exclude_dirslist intranslate_config.ymlaccepts top-level directory names underdocs/en/docs/(e.g.,side_quests,info). Excluded directories are:The config file is empty by default — all directories are translated unless explicitly excluded.
Files changed
_scripts/translate/translate_config.ymlexclude_dirsoption_scripts/translate/config.pyget_translate_config()andget_exclude_dirs()_scripts/translate/paths.pyiter_en_docs()filters excluded directories, new_is_excluded()helper_scripts/translate/git_utils.pyget_orphaned_files()skips excluded directoriesTRANSLATING.md