Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to extend bundled documentation theme markup and css

Martin Steinorth September 27, 2012

Hi there,

i need to change the markup and css of the documentation theme. Unfortunately the theme only offers the ability to add some markup at certain positions such as navigation, header and footer.

Is there a way to extend the bundled documentation theme in the same way, as the basic theme can be extended?

<theme key="simpletheme" name="Simple Theme" class="com.atlassian.confluence.themes.BasicTheme">

The best solution would be to override the main.vmd decorator, alter the markup and then use the other built in macros and decorators. I tried that by implementing a Decorator Module Plugin, but without luck.

I thought about checking out the whole theme, altering an redeploying it. But the SVN trunk contains a OBSOLETE.txt which says that the source has been moved to a git repository which i can't find anywhere. Maybe someone has a clue on that.

Any other suggestions?

Thanks
Martin

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
childnode August 10, 2014

Hi,

You might add the dependency for the original documentation theme:

<dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>doctheme</artifactId>
            <version>${confluence.version}</version>
            <scope>compile</scope>
        </dependency>

to your pom.xml.

Then build and copy the original atlassian-plugin.xml from target/classes/atlassian-plugin.xml to src/main/resources.

You might also check the answers on how to extend the original theme on https://answers.atlassian.com/questions/286817or how to customize some parts in https://answers.atlassian.com/questions/10233

~Marcel

TAGS
AUG Leaders

Atlassian Community Events