diff --git a/doc/doc.json b/doc/doc.json index 1eec18618c7d2df6b75b50f3113571dbe5896e43..e3e48ac6a78bb37f24dc44d7a24f50f3a266a496 100644 --- a/doc/doc.json +++ b/doc/doc.json @@ -112,7 +112,8 @@ "4. OpenCV(4.5.4) | 问题:OpenCV 开始支持Qt6了,但是支持还不完善" ] } - ] + ], + "version": "4.5.4" }, { "released_at": "2021-10-11", @@ -176,7 +177,8 @@ ], "article": "https://blog.csdn.net/m0_37993445/article/details/120895752" } - ] + ], + "version": "3.4.16" }, { "released_at": "2021-10-11", @@ -272,7 +274,8 @@ ], "article": "https://blog.csdn.net/crazybingofpga/article/details/119416005" } - ] + ], + "version": "4.5.3" }, { "released_at": "2021-10-11", @@ -322,7 +325,8 @@ ], "article": "https://blog.csdn.net/qq_47538417/article/details/120640113" } - ] + ], + "version": "3.4.15" } ] } \ No newline at end of file diff --git a/src/doc.py b/src/doc.py index f93f866f59b0d0ab4e0bbd3d95dce629b8f78934..bc85becd65f5f5726d7a7c14ad1fdb5ebffe596b 100644 --- a/src/doc.py +++ b/src/doc.py @@ -49,6 +49,8 @@ class DocWalker(): version_full_dir, version_config['features'] ) + parts = version_full_dir.split("/") + version_config['version'] = parts[len(parts)-1] version_config['features'] = simple_list_md_load(features_path) versions.append(version_config) root_config['versions'] = versions