Skip to content

Commit

Permalink
Merge branch 'docs/sphinx-warns-and-errors' of https://github.com/Jus…
Browse files Browse the repository at this point in the history
…taSqu1d/pycord into docs/sphinx-warns-and-errors
  • Loading branch information
JustaSqu1d committed Aug 13, 2024
2 parents 2298c40 + c279992 commit 81d4de3
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 @@ -313,8 +313,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 81d4de3

Please sign in to comment.