Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

...