2021/06 更新方法
Committer/PMC 在本地iotdb目录pull 最新的master分支代码,运行以下命令,自动构建成功后即可完成网站更新。
mvn -P site -P compile-site -P compile-site-0.12 -P compile-site-0.11 -P compile-site-0.10 -P compile-site-0.9 -P compile-site-0.8 compile scm-publish:publish-scm -pl site
Committer/PMC首次执行时,构建完成时需要按照提示输入Apache 用户名和密码。
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 就行了,得过几分钟网页成功部署了才能看到更新
5. 如果网站build failure怎么办
!但是!,现在apache的jenkins中的网站部署有点问题,需要手动更新。。。
方法一:先去手动rebuild一下iotdb的jenkins,之后再rebuild一下网站的jenkins就可以过了 (暂不知道原理)
方法二:
5.1 在master分支运行
npm run build
所有生成的文件会放到dist下。注意dist类似于java中的target,所以这个文件夹是不需要上传的。
5.2 切换到asf-site分支
由于dist目录已经被gitignore了,所以此时dist中是master分支里编译出来的东西。
5.3 拷贝 dist/index.html 和 dist/static 到根目录
5.4 提交 index.html 和 static 文件夹到asf-site。上传代码。
6. 收工
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.