我们有一个可以导出 Confluence 空间的内部插件。空间 css 文件已包含在内,但这远未完成。我浏览了 Confluence API,但找不到任何可以告诉我页面(包括宏)需要正确呈现的资源。基本上我需要一些能让我为 css 和 js 重现以下内容的东西:
<!-- include system css resources -->
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/34/_/download/superbatch/css/batch.css" media="all">
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/34/_/download/superbatch/css/batch.css?conditionalComment=lt+IE+9" media="all">
<![endif]-->
<!--[if IE 9]>
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/34/_/download/superbatch/css/batch.css?conditionalComment=IE+9" media="all">
<![endif]-->
<!--[if lte IE 9]>
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/34/_/download/superbatch/css/batch.css?conditionalComment=lte+IE+9" media="all">
<![endif]-->
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/34/_/download/superbatch/css/batch.css?media=print" media="print">
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/4e59e07231dd67576ce6f003b6a8095e/_/download/contextbatch/css/page/batch.css?conditionalComment=lt+IE+9" media="all">
<![endif]-->
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/4e59e07231dd67576ce6f003b6a8095e/_/download/contextbatch/css/page/batch.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/75877fb710740f0fb2358dd832691580/_/download/contextbatch/css/plugin.quick.comment.pre/batch.css" media="all">
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/767f156fe1e9f3d7a21cf551551d1dd8/_/download/contextbatch/css/viewcontent,main/batch.css?conditionalComment=lt+IE+9" media="all">
<![endif]-->
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/767f156fe1e9f3d7a21cf551551d1dd8/_/download/contextbatch/css/viewcontent,main/batch.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/62d979954d4d69b0a4870d806bfe4e43/_/download/contextbatch/css/atl.general/batch.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/1.3.4-SNAPSHOT/_/download/batch/com.jfb.confluence.plugins.latex:styles/com.jfb.confluence.plugins.latex:styles.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/1.0-SNAPSHOT/_/download/batch/com.jfb.confluence.plugins.numcapt:styles/com.jfb.confluence.plugins.numcapt:styles.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/2.0.2/_/download/batch/com.atlassian.confluence.plugins.pagetree:pagetree-resources/com.atlassian.confluence.plugins.pagetree:pagetree-resources.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/5/_/styles/colors.css?spaceKey=HELP" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/4.2.1/_/download/resources/com.atlassian.confluence.plugins.doctheme:documentation/default-theme.css" media="all">
<link type="text/css" rel="stylesheet" href="/s/en_GB/3277/32/4.2.1/_/download/resources/com.atlassian.confluence.plugins.doctheme:documentation/splitter.css" media="all">
<!-- end system css resources -->
有任何想法吗?这一定是可能的!