Skip to content

Commit

Permalink
Add test for language and locale param set in mkdocs material
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink authored Sep 8, 2024
1 parent 2953442 commit d424ed9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 11 additions & 0 deletions tests/fixtures/basic_project/mkdocs_theme_locale_and_language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
site_name: test gitrevisiondatelocalized_plugin
use_directory_urls: true

theme:
name: 'material'
language: zh
locale: en

plugins:
- search
- git-revision-date-localized
11 changes: 6 additions & 5 deletions tests/test_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,17 @@ def validate_mkdocs_file(temp_path: str, mkdocs_yml_file: str):
'basic_project/mkdocs_plugin_locale.yml',
'basic_project/mkdocs_with_override.yml',
'basic_project/mkdocs_theme_language.yml',
'basic_project/mkdocs_creation_date.yml',
'basic_project/mkdocs_theme_locale_and_language.yml',
'basic_project/mkdocs_theme_locale_disabled.yml',
'basic_project/mkdocs_timeago_locale.yml',
'basic_project/mkdocs_timeago.yml',
'basic_project/mkdocs_theme_timeago.yml',
'basic_project/mkdocs_fallback_to_build_date.yml',
'basic_project/mkdocs_theme_locale.yml',
'basic_project/mkdocs_locale.yml',
'basic_project/mkdocs_theme_timeago_override.yml',
'basic_project/mkdocs_theme_timeago_instant.yml',
'basic_project/mkdocs_creation_date.yml',
'basic_project/mkdocs_timeago_locale.yml',
'basic_project/mkdocs_timeago.yml',
'basic_project/mkdocs_fallback_to_build_date.yml',
'basic_project/mkdocs_locale.yml',
'basic_project/mkdocs_exclude.yml',
'basic_project/mkdocs_meta.yml',
'basic_project/mkdocs_custom_type.yml',
Expand Down

0 comments on commit d424ed9

Please sign in to comment.