From eb80d7ff608300dfe67aaf8bd298f6dc4128d81d Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 29 Mar 2023 18:17:55 -0500 Subject: [PATCH] :rotating_light: (docs): Format plugins with black --- docs/plugins/add_files.py | 4 ++-- docs/plugins/filter_readmes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/plugins/add_files.py b/docs/plugins/add_files.py index e7d969ea7..630139b5e 100644 --- a/docs/plugins/add_files.py +++ b/docs/plugins/add_files.py @@ -15,7 +15,7 @@ def append_readme(files: Files, config: Config): path="README.md", src_dir="..", dest_dir=config.site_dir, - use_directory_urls=config.use_directory_urls + use_directory_urls=config.use_directory_urls, ) files.append(f) config.watch.append(f.abs_src_path) @@ -40,7 +40,7 @@ def chart_file(src_path: str, config: Config): path=os.path.join("charts", chart_name + ".md"), src_dir=src_dir, dest_dir=config.site_dir, - use_directory_urls=config.use_directory_urls + use_directory_urls=config.use_directory_urls, ) f.abs_src_path = src_path return f diff --git a/docs/plugins/filter_readmes.py b/docs/plugins/filter_readmes.py index 767cd6d29..f158673ee 100644 --- a/docs/plugins/filter_readmes.py +++ b/docs/plugins/filter_readmes.py @@ -20,7 +20,7 @@ def main(markdown: str, page: Page, config: Config, files: Files): def filter_repo_readme(markdown: str, page: Page, config: Config): # Update page title page.title = "Introduction" - markdown = markdown.split('\n', 1)[-1] + markdown = markdown.split("\n", 1)[-1] markdown = "# Introduction\n" + markdown # Exclude chart overview from search