From 0db3b0025f98d8b030a1da50b0d8d1fd75ac69da Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 13 Aug 2024 01:04:34 +0200 Subject: [PATCH] fix(docs): fix encoding? tf !crowdin upload --- docs/conf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2e8daf71ee..96356965e6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ old_changelog = os.path.join(os.path.dirname(__file__), "..", "CHANGELOG.md") new_changelog = os.path.join(os.path.dirname(__file__), "changelog.md") -with open(old_changelog) as f: +with open(old_changelog, encoding="utf-8") as f: changelog_lines = f.readlines() # Inject relative documentation links @@ -39,12 +39,12 @@ # Only write if it's changed to avoid recompiling the docs def write_new(): - with open(new_changelog, "w") as fw: + with open(new_changelog, "w", encoding="utf-8") as fw: fw.write(CHANGELOG_TEXT) try: - c_file = open(new_changelog) + c_file = open(new_changelog, encoding="utf-8") except FileNotFoundError: write_new() else: @@ -312,8 +312,8 @@ def write_new(): # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = None -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. +# The name of an image file (relative to this directory) to place at the top of +# the sidebar. html_logo = "./images/pycord_logo.png" # The name of an image file (within the static path) to use as favicon of the