Chinese:
1. 修改src/views/Download.vue
在data()下很容易找到downloadVersionList,然后复制进去新的版本即可。
注意:下载网页默认选中的download版本是downloadVersionList里的第一个。
2. 修改src/components/Global.vue
找到SUPPORT_VERSION,照着加一项
修改文档的默认版本为最新版:const DEFAULT_VERSION = "0.9.0";
3. 修改src/components/Sidebar.vue
找到 第12行
Apache IoTDB (Incubating) V0.8.1 is released. Users are encouraged to read the overview of major changes in
<a class="link-color" href="https://raw.githubusercontent.com/apache/incubator-iotdb/release/0.8.1/RELEASE_NOTES.md">release notes</a>,
download the version in <router-link to="/Download">download page</router-link> and view documents in <router-link to="/Documents/0.8.1/chap1/sec1">documentation page</router-link>.
修改里面的链接和版本号即可。
4. 修改index.html
找到里面的iotdb版本和链接,修改成最新版。
本地检查网站是否正确:
npm run dev
然后推到远端 master 就行了,得过几分钟网页成功部署了才能看到更新
!但是!,现在apache的jenkins中的网站部署有点问题,需要手动更新。。。
5. 在master分支运行
npm run build
所有生成的文件会放到dist下。注意dist类似于java中的target,所以这个文件夹是不需要上传的。
6、切换到asf-site分支
由于dist目录已经被gitignore了,所以此时dist中是master分支里编译出来的东西。
7、拷贝 dist/index.html 和 dist/static 到根目录
8、提交 index.html 和 static 文件夹到asf-site。上传代码。
9、收工
English
1. modify src/views/Download.vue file:
add new version's urls at data()
2. modify src/views/Global.vue
add new version in SUPPORT_VESION.
3. modify src/components/Sidebar.vue
update the version number and links.
4. modify index.html
update the version number and links.