Skip to end of banner
Go to start of banner

Macros overview

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This article contains information about each macro available in the app. Select any of the links to learn more:

  • Markdown

  • Markdown from Github

  • Markdown from Bitbucket

  • Markdown from Gitlab

  • Markdown from a URL

@How to use

You can pull Markdown from Bitbucket, from a URL, or through direct entry.

Entering Markdown directly in-page

Add the Markdown macro to the required Confluence page:

Then paste your content into the macro editor:

Or, you can paste the content directly in the macro on the page:

Markdown from a URL

Add your URL to the URL field, and click Save. Make sure your URL is pointing to raw Markdown!

Markdown from Github

Now simply select Markdown from Github on the macro page and select your desired token:

Markdown from Bitbucket

Now simply select Markdown from Bitbucket on the macro page and select your desired token:

Here's a breakdown of each field:

Field

Description

Username/Organization Name

The username or organization name in which the repository is hosted under. For example, if the URL for your repository was:

https://bitbucket.org/ mohamicorp/search-for-stash

The username would be mohamicorp

Repository

The username the repository is hosted under. For example, if the URL for your repository was:

https://bitbucket.org/mohamicorp/ search-for-stash

The repository would be search-for-stash

Branch or Commit Hash

The Branch which you want to pull documentation from. A good example is master

File Path

The directory the file is hosted under. A good example might be:

src/main/resources/README.md

Markdown from Gitlab

Now simply select Markdown from Gitlab on the macro page and select your desired token:

Here's a breakdown of each field:

Field

Description

URL

URL of the markdown file you want to get pulled to Confluence. Can be a link to either regular or raw file. If URL is provided configuration bellow is not required.

https://gitlab.com/mohami/smarter-search-for-bitbucket/-/blob/master/README.md

Username/Organization Name

The username or organization name in which the repository is hosted under. For example, if the URL for your repository was:

https://gitlab.com/mohami/smarter-search-for-bitbucket

The username would be mohami

Repository

The username the repository is hosted under. For example, if the URL for your repository was:

https://gitlab.com/mohami/smarter-search-for-bitbucket

The repository would be smarter-search-for-bitbucket

Branch or Commit Hash

The Branch which you want to pull documentation from. A good example is master

File Path

The directory the file is hosted under. A good example might be:

src/main/resources/http://README.md

  • No labels