mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs(build): add cannonical stable url to all docs
This commit is contained in:
parent
899bc1d6b2
commit
474ebfc3ee
@ -4,13 +4,9 @@
|
||||
#
|
||||
# This file is imported from a language-specific conf.py (ie en/conf.py or
|
||||
# zh_CN/conf.py)
|
||||
|
||||
# type: ignore
|
||||
# pylint: disable=wildcard-import
|
||||
# pylint: disable=undefined-variable
|
||||
|
||||
from __future__ import print_function, unicode_literals
|
||||
|
||||
import os.path
|
||||
import re
|
||||
|
||||
@ -208,6 +204,7 @@ github_repo = 'espressif/esp-idf'
|
||||
html_context['github_user'] = 'espressif'
|
||||
html_context['github_repo'] = 'esp-idf'
|
||||
|
||||
|
||||
# Extra options required by sphinx_idf_theme
|
||||
project_slug = 'esp-idf'
|
||||
versions_url = 'https://dl.espressif.com/dl/esp-idf/idf_versions.js'
|
||||
@ -258,5 +255,7 @@ def conf_setup(app, config):
|
||||
# Not for all target
|
||||
pass
|
||||
|
||||
config.html_baseurl = f'https://docs.espressif.com/projects/esp-idf/{config.language}/stable/{config.idf_target}'
|
||||
|
||||
|
||||
user_setup_callback = conf_setup
|
||||
|
Loading…
x
Reference in New Issue
Block a user