Skip to content

Instantly share code, notes, and snippets.

@rijnhard
Last active May 23, 2019 10:06
Show Gist options
  • Save rijnhard/9d36c2803c6f967bd99c to your computer and use it in GitHub Desktop.
Save rijnhard/9d36c2803c6f967bd99c to your computer and use it in GitHub Desktop.
[Confluence Apiary embed] #confluence #api #documentation
## Macro title: Apiary
## Macro has a body: Y
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: Rijnhard Hessel
## Date created: 10/02/2016
## This is an example macro
## @param Subdomain:title=Subdomain|type=string|required=true|desc=Apiary subdomain to load
<div id='apiary'>
<script type='text/javascript' src="https://api.apiary.io/seeds/embed.js">
</script>
<script type='text/javascript'>
AJS.toInit(function(){
var embed = new Apiary.Embed({
subdomain: '$paramSubdomain'
});
});
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment