Skip to content

Wiki:采用 Confluence 导出的 HTML #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shaunthegeek opened this issue Jul 5, 2021 · 2 comments
Closed

Wiki:采用 Confluence 导出的 HTML #11

shaunthegeek opened this issue Jul 5, 2021 · 2 comments
Assignees

Comments

@shaunthegeek
Copy link
Member

发现 Confluence 老版本没有 API,所以要:导出数据,再导入 CODING wiki。

https://developer.atlassian.com/server/confluence/confluence-server-rest-api/

Confluence Server REST API need Confluence Server 5.5 and later, Confluence Data Center 5.6 and later

@shaunthegeek shaunthegeek self-assigned this Jul 5, 2021
@shaunthegeek
Copy link
Member Author

调研发现 XML 格式极其复杂,用于导入导出 Confluence。
而 HTML 格式很简单,用于到处,然后导入到外部 wiki,很合适。

https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html

image

shaunthegeek added a commit that referenced this issue Jul 5, 2021
shaunthegeek added a commit that referenced this issue Jul 5, 2021
shaunthegeek added a commit that referenced this issue Jul 6, 2021
shaunthegeek added a commit that referenced this issue Jul 6, 2021
shaunthegeek added a commit that referenced this issue Jul 6, 2021
shaunthegeek added a commit that referenced this issue Jul 6, 2021
shaunthegeek added a commit that referenced this issue Jul 6, 2021
@shaunthegeek
Copy link
Member Author

Confluence 链接规则:

  • 标题:汉字,没有英文链接,而是 ID,比如 http://localhost:8090/pages/viewpage.action?pageId=65630,导出为 65630.html
  • 标题:英文带空格,在链接里变成加号,比如 http://localhost:8090/display/DEMO/hello+world,导出为 hello-world_123.html
  • 标题:英文带连字符,直接变成链接,比如 http://localhost:8090/display/DEMO/hello-world,导出为 hello-world_456.html

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant