Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
8b7792ad
Commit
8b7792ad
authored
Nov 24, 2023
by
Sam Wu
Browse files
Fix formatting in conf.py to pass yapf3
parent
af131ec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
docs/conf.py
docs/conf.py
+3
-2
No files found.
docs/conf.py
View file @
8b7792ad
...
...
@@ -29,13 +29,14 @@ import re
from
rocm_docs
import
ROCmDocs
html_theme_options
=
{
"flavor"
:
"list"
}
templates_path
=
[
"."
]
# Use the current folder for templates
templates_path
=
[
"."
]
# Use the current folder for templates
setting_all_article_info
=
True
all_article_info_os
=
[
"linux"
]
with
open
(
'../CMakeLists.txt'
,
encoding
=
'utf-8'
)
as
f
:
match
=
re
.
search
(
r
'.*\brocm_setup_version\(VERSION\s+([0-9.]+)[^0-9.]+'
,
f
.
read
())
match
=
re
.
search
(
r
'.*\brocm_setup_version\(VERSION\s+([0-9.]+)[^0-9.]+'
,
f
.
read
())
if
not
match
:
raise
ValueError
(
"VERSION not found!"
)
version_number
=
match
[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment