Configuration
This page provides instructions to customize the Bob Swift Atlassian Code Pro for Confluence app.
After upgrading or installing the app, follow the steps mentioned below to navigate to the app's configuration:
- Log in as a Confluence administrator with global permissions.
- Select .  > Manage apps
- Either search for Code Pro for Confluence or scroll to Bob Swift Configuration, and click Code Pro to view app configuration.
The Code Pro for Confluence - Configuration screen has the following main settings:
Configuration
Enable or disable the required parameter to apply the settings. Click Save to confirm the changes.
Parameter | Default | Description |
---|---|---|
Restrict URL access | Off | Select this option to control whether or not URLs conform to the Confluence Whitelist, provided whitelisting is enabled. |
Help us improve the product | Off | Enable this option to allow us to collect some usage data that helps us improve our product. To learn more about what is being sent, refer to Analytics information. |
Profiles
Profiles comprise a common set of parameters that allow users to add a profile in the Code Pro macro. Some advantages of using profiles are:
- Profiles allow user authentication required by some URLs to be hidden from page viewers and editors. Only Confluence administrators have access to this information.
- Enables macro editors to quickly configure the macro by reusing a shared definition for URL access.Â
- Relative addressing can be used making the page content less likely to require changes when base URLs are relocated.Â
- Macro configured URL (that is not a full URL) is appended to the profile provided URL. The first part goes in the URL to source code parameter of the profile. The second part (or ones like it) goes into each macro usage. For example, if source reference is something like https://bitbucket.org/bob_swift/gint/raw/tip/src/main/groovy/org/swift/tools/Gint.groovy, then a profile could be set up to reference all source in the Gint repository by configuring the profile:Â
url=
. Then the macro references would be relative like:Â src/main/groovy/org/swift/tools/Gint.groovy.https:
//bitbucket.org/bob_swift/gint/raw/tip
- Macro configured URL (that is not a full URL) is appended to the profile provided URL. The first part goes in the URL to source code parameter of the profile. The second part (or ones like it) goes into each macro usage. For example, if source reference is something like https://bitbucket.org/bob_swift/gint/raw/tip/src/main/groovy/org/swift/tools/Gint.groovy, then a profile could be set up to reference all source in the Gint repository by configuring the profile:Â
- Combine settings of a profile with another profile(s). Use the '|' delimiter to combine name-value pairs with the specified profile settings.
For example, you can create a profile 'A' that defines a customized style using HTML tags. This can be appended to another profile 'B' asurl=
. In the macro, if profile 'A' is selected, retrieved data is shown with the custom styles given in profile 'B'.https:
//bitbucket.org/bob_swift/gint/raw/tip|A
Important information:
- Administrators can provide a maximum of 30 profiles to be used with the Code Pro macro.
- Specify the required settings for a profile as name-value pairs separated with a '|' delimiter between each pair.
- Each value is applied on the resultant data; if valid, that value is applied, else is ignored.Â
- Other parameters such as language, title, collapse, theme, firstline, borderColor, borderStyle, borderWidth, bgColor, titleBGColor, sections, encoding, collapsetype, and script can also be given as the wiki parameter syntax for a profile.
- Learn more about the possible settings for a profile available in the Code Pro macro guide.
The following actions can be performed:
- Add new profiles directly. Enter the required values in the Name and Value parameters, and click Save.
- Edit the profile by changing the given values and click Save to confirm the changes.
- Remove a profile by deleting the name and value of the profile. Click Save to confirm the changes.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.