Xiangdong Huang created IOTDB-1009:
--------------------------------------
Summary: Improve the process of compiling the website
Key: IOTDB-1009
URL: https://issues.apache.org/jira/browse/IOTDB-1009
Project: Apache IoTDB
Issue Type: Task
Components: Website
Reporter: Xiangdong Huang
Currently, we need more than 8GB memory to compile the website,
and it is time-consuming...
We can expect that the time cost will be more and more if we release more
versions.
It is because we need to compile the docs from 0.8, 0.9, 0.10, etc..
However, docs from 0.8 to 0.10 is rarely modified. That is to say, we do not
need to compile them every time.
Therefore, I'd like to call a re-organization about compiling the website.
1. modify the site/pom.xml, put compiling docs of each version into different
profiles.
2. for each profile, only compile the doc of one version:
- download the doc (zip file) from github;
- unpack the zip file and copy to target/.... folders
- compile
- copy generated HTML files to the final output directory.
3.1 if using `scm-publish` plugin, and we allow just compile docs of some
versions (i.e., enable some profiles), we can download current htmls from the
`iotdb-website` repo and then merge the htmls with new generated files, and
then call `scm-publish` to cover all the files in the website repo;
3.2 if we use `git push` command to upload new files to the website repo, it is
easier. But, it may lead to some unuseful files left in the website repo.
I think this logic can work. :D
--
This message was sent by Atlassian Jira
(v8.3.4#803005)