Updated Sphinx to include Changelog
Signed-off-by: Maisam Arif <maisarif@amd.com> Change-Id: I858d0579ab0e8ba9f228373b6d31dfd3088703ae
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user