...
This article illustrates how to create a Profile profile in the Markdown macro macros using a URL.
Info |
---|
Before you begin:
/projects/:id/repository/files/:file_path/raw
https://gitlab.com/api/v4
https://gitlab.com/api/v4/projects/:id/repository/files/:file_path/raw?ref=master
|
You can There are three ways to work with URLs in three ways:which are explained in the sections below.
Use the complete URL
You can create a profile by providing the complete URL for the Markdown content.
Navigate to Markdown CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > Manage apps General Configuration > BOB SWIFT CONFIGURATION > > Bob Swift Atlassian Add-ons - Markdown > Configure > Profiles.
Click Add Profile.
- Enter BitURL a unique name for the profile in the Profile name text box. For this example, enter BitURL in the text box.
- Select URL from the options in Profile type.
Enter https://bitbucket.org/bob_swift/gint/raw/9c1b737cf0ff28ddf7cbbd199685e533d310ce9f/README.md in the URL text box.
Click Save profile to create a Profilethe profile.
...
To use this profile in a Confluence page:
- Search for the Markdown from a URL macro
...
- and edit it.
- Select BitURL from the Profile list
...
- and then, click Save.
Use a fixed URL
You can create a profile by providing a fixed URL for the Markdown content and enter the relative path to the Markdown file in the markdown-url macro.
Navigate to Markdown CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > Manage apps General Configuration > BOB SWIFT CONFIGURATION > > Bob Swift Atlassian Add-ons - Markdown > Configure > Profiles.
Click Add Profile.
- Enter BitURL a unique name for the profile in the Profile name text box. For this example, enter BitURL in the text box.
- Select URL from the options in Profile type.
Enter https://bitbucket.org in the URL text box.
Click Save profile to create a Profileprofile to create the profile.
7. Select BitURL
To use this profile in a Confluence page:
- Search for the markdown-url macro and edit it.
- Select BitURL from the Profile list in the
...
- editor.
...
...
- Enter the relative path to the
...
- /bob_swift/gint/raw/9c1b737cf0ff28ddf7cbbd199685e533d310ce9f/README.md Markdown file in the URL to markdown file parameter.
...
- Click Save.
Info |
---|
This method allows multiple users to access a profile across pages and instances of the markdown-url macro. |
Skip creating a profile
You can skip creating a profile and provide the complete URL in the URL to markdown file parameter in the macro editor.
- Enter
...
- Enter https://bitbucket.org/bob_swift/gint/raw/9c1b737cf0ff28ddf7cbbd199685e533d310ce9f/README.md in in the the URL to markdown file parameter.
- Click Save.
...