Updated Sphinx to include Changelog

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I858d0579ab0e8ba9f228373b6d31dfd3088703ae
This commit is contained in:
Maisam Arif
2024-04-23 04:41:43 -05:00
parent 1bd18c1a65
commit e81051a724
4 changed files with 5 additions and 19 deletions
-13
View File
@@ -6,21 +6,8 @@
import subprocess
import urllib
from rocm_docs import ROCmDocs
esmi_readme_link = "https://raw.githubusercontent.com/amd/esmi_ib_library/master/docs/README.md"
try:
# Try to override esmi_lib_readme_link.md with the github esmi readme contents
with urllib.request.urlopen(esmi_readme_link) as f:
esmi_readme = f.read().decode('utf-8')
with open("./esmi_lib_readme_link.md", "w", encoding='utf-8') as f:
f.write(esmi_readme)
except urllib.error.URLError:
# don't care about the error because there is backup link in the file already
pass
get_version_year = r'sed -n -e "s/^#define\ AMDSMI_LIB_VERSION_YEAR\ //p" ../include/amd_smi/amdsmi.h'
get_version_major = r'sed -n -e "s/^#define\ AMDSMI_LIB_VERSION_MAJOR\ //p" ../include/amd_smi/amdsmi.h'
get_version_minor = r'sed -n -e "s/^#define\ AMDSMI_LIB_VERSION_MINOR\ //p" ../include/amd_smi/amdsmi.h'