Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a live demo which uses content from Atlassian Market place status page

ConfiDoc Excerpt Macro
rootdiv class="components-container one-column"
serviceIdc577da46-df22-47ef-85bf-6513d639a2d1

HTML
<style>
 <style type="text/css">
.component-status {
  color:green;
  font-weight:bolderbold;
}
</style>

 

It uses a bit of a custom CSS and the configuration on the page looks like this:

Image Added

It all starts with Configuration definition and that looks like this:

Image Added

You can see it is very simple, no authentication is used and we just read the whole page from http://status.marketplace.atlassian.com/

Then we do some "magic" with selectors to select only the bits we are interested in

And the selector for ConfiDoc Excerpt macro looks like this

Code Block
div class="components-container one-column"

We just take in the contents from this "DIV" element

This is how the ConfiDoc Excerpt macro looks like in the config mode

Image Added

With a bit of custom CSS we can make it more readable on our page (see live example on top of the page)