Skip to content

Commit

Permalink
[doc] refine version
Browse files Browse the repository at this point in the history
Change-Id: I607967edc2cdb44569f8d0d683b485e9f418ffb0
  • Loading branch information
luluman committed Mar 31, 2024
1 parent 6b2aab8 commit a948d0a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
./TPU-MLIR_Technical_Reference_Manual_ZH.pdf
pypi-publish:
if: "!contains(github.ref, 'beta')"
needs: build
name: Upload release to PyPI
runs-on: ubuntu-latest
Expand Down
8 changes: 1 addition & 7 deletions docs/developer_manual/source_en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@
print(time_e)
except subprocess.CalledProcessError as call_e:
print(call_e.output.decode(encoding="utf-8"))
tag_find = re.findall("(\d+)\.(\d+)\-(\d+)", tag_str)
if not tag_find:
tag_find = re.findall("(\d+)\.(\d+)", tag_str)
release = "unknown"
if tag_find:
release = ".".join(tag_find[0])

release = tag_str.lstrip('v')

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

Expand Down
7 changes: 1 addition & 6 deletions docs/developer_manual/source_zh/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
print(time_e)
except subprocess.CalledProcessError as call_e:
print(call_e.output.decode(encoding="utf-8"))
tag_find = re.findall("(\d+)\.(\d+)\-(\d+)", tag_str)
if not tag_find:
tag_find = re.findall("(\d+)\.(\d+)", tag_str)
release = "unknown"
if tag_find:
release = ".".join(tag_find[0])
release = tag_str.lstrip('v')


# -- General configuration ---------------------------------------------------
Expand Down
8 changes: 1 addition & 7 deletions docs/quick_start/source_en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@
print(time_e)
except subprocess.CalledProcessError as call_e:
print(call_e.output.decode(encoding="utf-8"))
tag_find = re.findall("(\d+)\.(\d+)\-(\d+)", tag_str)
if not tag_find:
tag_find = re.findall("(\d+)\.(\d+)", tag_str)
release = "unknown"
if tag_find:
release = ".".join(tag_find[0])

release = tag_str.lstrip('v')

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

Expand Down
8 changes: 1 addition & 7 deletions docs/quick_start/source_zh/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@
print(time_e)
except subprocess.CalledProcessError as call_e:
print(call_e.output.decode(encoding="utf-8"))
tag_find = re.findall("(\d+)\.(\d+)\-(\d+)", tag_str)
if not tag_find:
tag_find = re.findall("(\d+)\.(\d+)", tag_str)
release = "unknown"
if tag_find:
release = ".".join(tag_find[0])

release = tag_str.lstrip('v')

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

Expand Down

0 comments on commit a948d0a

Please sign in to comment.