fix a link problem wen publish public

Since we use html base element, we must ensure that all files,
including the auto-generated index.org/index.html has the correct links
relative to the href attribute of base element.