Skip to content

Commit

Permalink
fix(docs): fix encoding? tf
Browse files Browse the repository at this point in the history
!crowdin upload
  • Loading branch information
Lulalaby committed Aug 12, 2024
1 parent d8a948b commit 0db3b00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0db3b00

Please sign in to comment.