Skip to content

Commit

Permalink
Set html_baseurl (#50)
Browse files Browse the repository at this point in the history
readthedoc will deprecate setting html_baseurl automatically soon soon.
Now we set it explicitly in conf.py.

https://about.readthedocs.com/blog/2024/07/addons-by-default/#how-does-it-affect-my-projects
  • Loading branch information
xuhdev authored Jul 16, 2024
1 parent 0b3ffbd commit 0ea60e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@
# -- Project information -----------------------------------------------------

project = 'EditorConfig Specification'
copyright = '2019--2020, EditorConfig Team'
copyright = '2019--2024, EditorConfig Team'
author = 'EditorConfig Team'

version = '0.16.0'
release = '0.16.0'

# -- General configuration ---------------------------------------------------

import os

# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

# The master document
master_doc = 'index'

Expand Down

0 comments on commit 0ea60e1

Please sign in to comment.