# Scroll Sites for Confluence

[Scroll Sites](https://marketplace.atlassian.com/apps/1211636/scroll-viewport-for-confluence?tab=overview\&hosting=cloud) is an Atlassian marketplace app by [K15t](https://www.k15t.com/) that allows you to transform Confluence pages into a public or restricted online help center for your users.&#x20;

Released integrates with Scroll Sites through a native integration. Setting up this integration is a breeze and requires just a few simple steps, taking less than 2 minutes to complete.

{% hint style="success" %}

#### See a demo

[https://released.scroll.site](https://released.scroll.site/)
{% endhint %}

## Installation

{% hint style="info" %}

### Pre-requisites&#x20;

* [Scroll Sites](https://marketplace.atlassian.com/apps/1211636/scroll-sites-for-confluence-help-centers-blogs-websites) in installed in Confluence.&#x20;
* [Released](https://marketplace.atlassian.com/apps/1230872/released-feedback-portal-public-roadmap-ai-release-notes?hosting=cloud\&tab=overview) is installed in Jira.
  {% endhint %}

{% stepper %}
{% step %}
**Get the Released Channel ID**

[Find the Channel ID](https://docs.released.so/guide/resources/how-tos/finding-the-channel-id) for the portal you want to embed and note it down.&#x20;
{% endstep %}

{% step %}
**Navigate to the integrations section in Scroll Sites**

1. Open the theme configurator under **Site Settings** > **Look and Feel** > **Customize theme**.
2. Click the **Integrations** tab.
   {% endstep %}

{% step %}
**Enable the Released integration**

<div align="left"><figure><img src="https://1499735372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCU5VgN3YVTfigwSnbdbk%2Fuploads%2FanoEWFGQQ2vHLCQCffg6%2FScrollSites-Integration.png?alt=media&#x26;token=6e64aea8-a27d-47d1-9851-15dd28e67466" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}
**Enter the Channel ID**

Enter the channel ID noted down in step 1 into the Channel ID field in the Released integration
{% endstep %}

{% step %}
**Rename the header link (optional)**

The Roadmaps and changelogs will be accessible via a link in the header. Change the link title to best match your use-case.&#x20;
{% endstep %}

{% step %}
**Save changes**

Click **Save changes** and close the theme configurator.
{% endstep %}

{% step %}
**Publish the site**

In the *Site settings* screen, click **Save changes** or **Publish Changes.**
{% endstep %}
{% endstepper %}

**Congratulations, you're done 🎉**

Roadmaps and posts published with Released will now automatically appear in your Scroll Sites help centre. <br>

***

## Legacy installation

These instructions apply to **Scroll Viewport** and are not applicable to the new **Scroll Sites** app.

{% stepper %}
{% step %}
**Get the Released Channel ID**

[Find the channel ID](https://docs.released.so/guide/resources/how-tos/finding-the-channel-id) for the announcement page and note it down.
{% endstep %}

{% step %}
**Create a placeholder page in Confluence**

* Create a page where you want the release notes to appear in your Sites documentation.
* Give the page your preferred name, e.g. "Release Notes".
* Leave the page empty and save.
  {% endstep %}

{% step %}
**Get the Confluence Page ID**

Note down the Confluence **Page ID** from the URL (see screenshot below).

<figure><img src="https://docs.released.so/guide/~gitbook/image?url=https%3A%2F%2F1499735372-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCU5VgN3YVTfigwSnbdbk%252Fuploads%252FYVr4u8IDii6feTxi0ogM%252FConfluence%2520PageID.png%3Falt%3Dmedia%26token%3D10c4f208-364c-454e-beac-5a990917f6e1&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=1b2dba89&#x26;sv=2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Add the custom JavaScript snippet to your Viewport theme**

* Navigate to your Sites theme settings.
* [Inject the following JavaScript](https://help.k15t.com/scroll-viewport/inject-custom-javascript).&#x20;

```javascript
if (vp.source.confluencePageId === "PAGE_ID") {
  vp.loadScript('https://embed.released.so/1/embed.js').then(() => {
    document.getElementById("article-content").innerHTML = '<released-page channel-id="CHANNEL_ID" color-scheme="light" color-scheme="light" top-offset="80px" color-primary="#FFF"></released-page>'
  });
}
```

{% hint style="info" %}
Ensure you replace the **Page\_ID** and **CHANNEL\_ID** placeholders with the IDs noted in the previous steps.&#x20;
{% endhint %}
{% endstep %}
{% endstepper %}
