From e53d3612fce65a45a7cf6e12d2b8604b5e6a3a96 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Mon, 17 Feb 2020 17:16:19 +0800 Subject: [PATCH] Fix version (#3354) --- .SpaceVim.d/autoload/SpaceVim/dev/roadmap.vim | 64 ++++++++++++++----- docs/cn/index.md | 6 +- docs/cn/roadmap.md | 6 +- docs/index.md | 4 +- docs/roadmap.md | 18 ++++-- 5 files changed, 69 insertions(+), 29 deletions(-) diff --git a/.SpaceVim.d/autoload/SpaceVim/dev/roadmap.vim b/.SpaceVim.d/autoload/SpaceVim/dev/roadmap.vim index 4241b92a2..570cd0ec2 100644 --- a/.SpaceVim.d/autoload/SpaceVim/dev/roadmap.vim +++ b/.SpaceVim.d/autoload/SpaceVim/dev/roadmap.vim @@ -7,23 +7,7 @@ "============================================================================= let s:AUTODOC = SpaceVim#api#import('dev#autodoc') -let s:AUTODOC.begin = '^$' -let s:AUTODOC.end = '^$' -function! s:generate_content() abort - let content = ['## Completed', - \ '' - \ ] - let content += s:get_milestones() - return content -endfunction - -let s:AUTODOC.content_func = function('s:generate_content') -let s:AUTODOC.autoformat = 1 - -function! SpaceVim#dev#roadmap#updateCompletedItems() abort - call s:AUTODOC.update() -endfunction function! s:get_milestones() abort let milestones = github#api#issues#ListAllMilestones('SpaceVim', 'SpaceVim', 'closed', 'due_on', 'asc') @@ -44,3 +28,51 @@ function! s:get_milestones() abort endif return line endfunction + +function! s:generate_content() abort + let content = ['## Completed', + \ '' + \ ] + let content += s:get_milestones() + return content +endfunction + +function! s:get_milestones_cn() abort + let milestones = github#api#issues#ListAllMilestones('SpaceVim', 'SpaceVim', 'closed', 'due_on', 'asc') + let line = [] + + for milestone in milestones + call add(line, '### [' . milestone.title . '](' . milestone.html_url . ')' ) + call add(line, '') + if !empty(get(milestone, 'description', '')) + let line += split(milestone.description, "\n") + call add(line, '') + endif + call add(line, 'release note: [' . milestone.title . '](http://spacevim.org/SpaceVim-release-' . milestone.title . '/)' ) + call add(line, '') + endfor + if line[-1] !=# '' + let line += [''] + endif + return line +endfunction + +function! s:generate_content_cn() abort + let content = ['## 已完成', + \ '' + \ ] + let content += s:get_milestones_cn() + return content +endfunction + +function! SpaceVim#dev#roadmap#updateCompletedItems(lang) abort + let s:AUTODOC.begin = '^$' + let s:AUTODOC.end = '^$' + if a:lang == 'cn' + let s:AUTODOC.content_func = function('s:generate_content_cn') + else + let s:AUTODOC.content_func = function('s:generate_content') + endif + let s:AUTODOC.autoformat = 1 + call s:AUTODOC.update() +endfunction diff --git a/docs/cn/index.md b/docs/cn/index.md index 8782ed300..c4ee24024 100644 --- a/docs/cn/index.md +++ b/docs/cn/index.md @@ -50,7 +50,7 @@ SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织 - 目前 SpaceVim 的开发状态如何? -当前最新发布的稳定版本是 v1.2.0。可以查看 [时间表](https://github.com/SpaceVim/SpaceVim/milestones) 获取开发进度, +当前最新发布的稳定版本是 v1.3.0。可以查看 [时间表](https://github.com/SpaceVim/SpaceVim/milestones) 获取开发进度, 或者阅读 [Roadmap](roadmap/) 获取开发计划。 - SpaceVim 是尝试搭建一个 IDE 吗? @@ -61,12 +61,12 @@ SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织 ```sh ~/.SpaceVim> ls autoload/SpaceVim/layers/lang | wc -l -78 +87 ``` - SpaceVim 支持什么版本的 Vim/Neovim? -建议使用 Vim 7.4 或者 Neovim v0.1.7及其以上版本。 +建议使用 Vim 7.4 或者 Neovim v0.1.7及其以上版本。为了更好的使用体验,建议使用最新版的 Neovim。 更多常见问题请阅读[常见问题解答](faq/) diff --git a/docs/cn/roadmap.md b/docs/cn/roadmap.md index f913cb3f1..254ae6787 100644 --- a/docs/cn/roadmap.md +++ b/docs/cn/roadmap.md @@ -13,7 +13,7 @@ SpaceVim 的设计蓝图和[里程碑](https://github.com/SpaceVim/SpaceVim/mile - [下一个版本](#下一个版本) - [v1.4.0](#v140) - [版本说明](#版本说明) -- [Completed](#completed) +- [已完成](#已完成) - [v0.1.0](#v010) - [v0.2.0](#v020) - [v0.3.0](#v030) @@ -45,11 +45,11 @@ There are release milestones and meta milestones ("buckets"). - [todo](https://github.com/SpaceVim/SpaceVim/milestone/4) is a bucket for triaged tickets which should be on the roadmap but cannot yet be assigned to a concrete milestone. - [unplanned](https://github.com/SpaceVim/SpaceVim/milestone/5) is a bucket for low-priority items or items lacking a feasible path to completion. - + -## Completed +## 已完成 ### [v0.1.0](https://github.com/SpaceVim/SpaceVim/milestone/1) diff --git a/docs/index.md b/docs/index.md index 7e5f31948..000f7a6de 100644 --- a/docs/index.md +++ b/docs/index.md @@ -59,7 +59,7 @@ Contribute code, report bugs and request features at [GitHub](https://github.com - What is the project status? -The current stable version is v1.2.0, See the [milestones page](https://github.com/SpaceVim/SpaceVim/milestones) +The current stable version is v1.3.0, See the [milestones page](https://github.com/SpaceVim/SpaceVim/milestones) for development progress and the [Roadmap](roadmap/) for high-level plans. - Is SpaceVim trying to turn Vim/Neovim into an IDE? @@ -70,7 +70,7 @@ With layers feature, this version of Vim distribution try to turn Vim/Neovim int ```sh ~/.SpaceVim> ls autoload/SpaceVim/layers/lang | wc -l -78 +87 ``` - Which version of Vim/Neovim is needed? diff --git a/docs/roadmap.md b/docs/roadmap.md index d803c8c8f..b93f49c3a 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -10,7 +10,7 @@ The roadmap and [milestones](https://github.com/SpaceVim/SpaceVim/milestones) de - [Next](#next) - - [v1.3.0](#v130) + - [v1.4.0](#v140) - [Meta](#meta) - [Completed](#completed) - [v0.1.0](#v010) @@ -25,12 +25,14 @@ The roadmap and [milestones](https://github.com/SpaceVim/SpaceVim/milestones) de - [v0.9.0](#v090) - [v1.0.0](#v100) - [v1.1.0](#v110) + - [v1.2.0](#v120) + - [v1.3.0](#v130) ## Next -### [v1.3.0](https://github.com/SpaceVim/SpaceVim/milestone/16) +### [v1.4.0](https://github.com/SpaceVim/SpaceVim/milestone/17) ## Meta @@ -42,7 +44,7 @@ There are release milestones and meta milestones ("buckets"). - [todo](https://github.com/SpaceVim/SpaceVim/milestone/4) is a bucket for triaged tickets which should be on the roadmap but cannot yet be assigned to a concrete milestone. - [unplanned](https://github.com/SpaceVim/SpaceVim/milestone/5) is a bucket for low-priority items or items lacking a feasible path to completion. - + @@ -132,8 +134,14 @@ release note: [v1.0.0](http://spacevim.org/SpaceVim-release-v1.0.0/) ### [v1.1.0](https://github.com/SpaceVim/SpaceVim/milestone/14) -First stable release of SpaceVim - release note: [v1.1.0](http://spacevim.org/SpaceVim-release-v1.1.0/) +### [v1.2.0](https://github.com/SpaceVim/SpaceVim/milestone/15) + +release note: [v1.2.0](http://spacevim.org/SpaceVim-release-v1.2.0/) + +### [v1.3.0](https://github.com/SpaceVim/SpaceVim/milestone/16) + +release note: [v1.3.0](http://spacevim.org/SpaceVim-release-v1.3.0/) +