File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -115,16 +115,20 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig:
115
115
"author" : config .site_author or None ,
116
116
"buildDate" : formatdate (get_build_timestamp ()),
117
117
"copyright" : config .copyright ,
118
- "description" : self .config ['description' ] if self .config ['description' ] \
119
- else config ['site_description' ],
118
+ "description" : (
119
+ self .config ["description" ]
120
+ if self .config ["description" ]
121
+ else config ["site_description" ]
122
+ ),
120
123
"entries" : [],
121
124
"generator" : f"{ __title__ } - v{ __version__ } " ,
122
125
"html_url" : self .util .get_site_url (mkdocs_config = config ),
123
126
"language" : self .util .guess_locale (mkdocs_config = config ),
124
127
"pubDate" : formatdate (get_build_timestamp ()),
125
128
"repo_url" : config .repo_url ,
126
- "title" : self .config ['title' ] if self .config ['title' ] \
127
- else config ['site_name' ],
129
+ "title" : (
130
+ self .config ["title" ] if self .config ["title" ] else config ["site_name" ]
131
+ ),
128
132
"ttl" : self .config .feed_ttl ,
129
133
}
130
134
Original file line number Diff line number Diff line change @@ -661,7 +661,9 @@ def test_simple_build_custome_title_description(self):
661
661
with tempfile .TemporaryDirectory () as tmpdirname :
662
662
cli_result = self .build_docs_setup (
663
663
testproject_path = "docs" ,
664
- mkdocs_yml_filepath = Path ("tests/fixtures/mkdocs_custom_title_description.yml" ),
664
+ mkdocs_yml_filepath = Path (
665
+ "tests/fixtures/mkdocs_custom_title_description.yml"
666
+ ),
665
667
output_path = tmpdirname ,
666
668
)
667
669
if cli_result .exception is not None :
You can’t perform that action at this time.
0 commit comments