Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add stylesheets back into header when serving static content outside of confluence

Peter Kahn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2013

Backstory

We product javadoc for our product and want to serve it to customers via confluence. We presently, import in into confluence as xml which doesn't quite work as well as we'd like. We are moving it outside of confluence but control access via confluence seraph (see extend confluence security).

Our current problem is that the javadoc can't load their stylesheets because their header is replaced with the one from confluence.

How can we get confluence to leave the header alone?

1 answer

1 accepted

0 votes
Answer accepted
Peter Kahn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2013

We can use AJS to inject the stylesheet info into the header. This allows the javadoc files to locate their stylesheets and render properly.

<script type="text/javascript"><!--
AJS.toInit(function(){
    AJS.$('head').append('<link rel="stylesheet" type="text/css" href="../../stylesheet.css">');
});
//-->
</script>

 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events