Skip to content

Commit 3a48c88

Browse files
committed
Add minimum version to build docs support
1 parent aba8429 commit 3a48c88

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Some highlights:
103103
- **Universal Windows Platform** (UWP) support for Xbox consoles
104104
- **Apple M1 and Android x64 support** (by @pietpukkel)
105105
- **Windows x64 build support**
106+
- **Powerful cross-platform build system**
106107
- Improved Windows workflow, supporting linking with engine prebuilt libs. Please read the [Windows workflow guide](https://github.com/axmolengine/axmol/issues/564).
107108
- Refactored AudioEngine, OpenAL for all platforms:
108109
- [OpenAL Soft](https://github.com/kcat/openal-soft) (pass `-DAX_USE_ALSOFT=ON` to CMake to force enabling it)

README_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Axmol 引擎在 Cocos2d-x v4.0 的基础上进行迭代和改进。现在速度
111111
- **Apple M1 和 Android x64 支持** (by @pietpukkel)。
112112
- **Windows x64 构建支持**
113113
- **Windows SIMD 加速指令矩阵计算支持**
114+
- **强大的跨平台构建系统**
114115
- 支持链接引擎预编译库。 详见 [Windows 工作流指导](https://github.com/axmolengine/axmol/issues/564)
115116
- 重构 AudioEngine,所有平台均使用 OpenAL 并新增 `.wav` 音频格式支持。
116117
- 使用内存映射文件 [mio](https://github.com/mandreyel/mio) 重构 UserDefault,速度提升百倍。

tools/ci/build-docs.ps1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
# Can runs on Windows,Linux
33
param(
4-
$site_dist = $null
4+
$site_dist = $null,
5+
$min_ver = '2.3' # The minimum version to build docs
56
)
67

78
$myRoot = $PSScriptRoot
@@ -123,16 +124,23 @@ function configure_file($infile, $outfile, $vars) {
123124

124125
# query version map to build docs
125126
$release_tags = $(git tag)
126-
$verMap = @{'latest' = $null; }
127+
$verMap = @{}
127128
foreach ($item in $release_tags) {
128129
if ([Regex]::Match($item, '^v[0-9]+\.[0-9]+\.[0-9]+$').Success) {
129130
$docVer = $($item.Split('.')[0..1] -join '.').TrimStart('v')
131+
if ($docVer -lt $min_ver) {
132+
continue
133+
}
130134
$verMap[$docVer] = $item
131135
}
132136
}
133-
$strVerList = "'$($verMap.Keys -join "','")'"
134-
Write-Host "$(Out-String -InputObject $verMap)"
135137

138+
$verList = $verMap.GetEnumerator() | Sort-Object Value -Descending | ForEach-Object { $_.Key }
139+
140+
$verMap['latest'] = $null
141+
142+
$strVerList = "'latest','$($verList -join "','")'"
143+
Write-Host "$(Out-String -InputObject $verMap)"
136144

137145
# set default doc ver to 'latest'
138146
mkdirs "$site_dist/manual"

0 commit comments

Comments
 (0)