---
title: "Release notes setup"
url: https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup
description: "How release notes are generated, published, and refreshed behind the scenes, and how the back end is set up."
author: Writing sample by Marla Sowards
---

> For an index of every page on this site, see [llms.txt](https://www.marlasowards.com/llms.txt).

> **Note:** I built this project for an enterprise SaaS company. However, what I've shared is genericized to mask proprietary information, including names of companies, products, features, and UI controls. Product images are mockups generated by Claude.

# Release notes setup

**Jump to**

- [How they're generated](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#how-theyre-generated)
- [How they're published](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#how-theyre-published)
- [How they're refreshed](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#how-theyre-refreshed)
- [Back-end setup](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#back-end-setup)
  - [Release Notes extension templates](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#release-notes-extension-templates)
- [For the future: Clean up release pipelines from deprecated Classic edition versions](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#for-the-future-clean-up-release-pipelines-from-deprecated-classic-edition-versions)

## How they're generated

Release notes are generated in the Release Notes extension, an Azure DevOps extension. The extension:

- Compares Azure DevOps releases to identify work items that represent changes between releases

- Uses templating logic in a template to:

  - Filter out work items that don't meet the [work item logic](https://www.marlasowards.com/samples/release-notes-automation-guide/27-work-item-logic.md)
  - Use fields marked in the work item to curate a note with a title, description, and work item ID
  - Sort notes by product

- Exports a file of the notes to the release-notes repo

## How they're published

[Local scripts](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#local-scripts-prepare-notes-for-review-assembly-and-publish):

- Transform the exported file to a format compatible with Clearpath Community requirements
- Post the notes on Clearpath Community

## How they're refreshed

Execute the scripts manually to refresh a release notes page on Clearpath Community.

## Back-end setup

See [Custom fields on Azure DevOps work items](https://www.marlasowards.com/samples/release-notes-automation-guide/includes/28-work-item-fields-setup.md).

### Release Notes extension templates

> **Note: Reference**
>
> - Classic edition What's New
>   - Handlebars template
> - Classic Template/Data Mart Designer What's New
>   - Handlebars template

See [Release Notes extension setup](https://www.marlasowards.com/samples/release-notes-automation-guide/42-release-notes-extension-setup.md).

#### Labels

The release notes extension's templates are tagged with labels that drive the sort order and section headings on the published page.

### Local scripts prepare notes for review, assembly, and publish

> **Note**
>
> See [Prepare release notes for review](https://www.marlasowards.com/samples/release-notes-automation-guide/31-prepare-release-notes-for-review.md) for steps to execute.

The scripts directory in the release-notes repo contains:

| Script                     | What it does                                                                                                                                                                                                                                                                                                                         |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1_html-to-md.sh            | Transforms exported HTML to Markdown (see [why the export is in HTML and not Markdown](https://www.marlasowards.com/samples/release-notes-automation-guide/42-release-notes-extension-setup.md#limitation))                                                                                                                          |
| 2_assemble-markdown.sh     | Assembles all release notes files in reverse chronological order and adds a master table of contents                                                                                                                                                                                                                                 |
| 3_md-to-html.sh            | Transforms the exported Markdown to HTML, applies CSS styles supported by Clearpath Community, and posts it on Clearpath Community; see [Community site pages setup](https://www.marlasowards.com/samples/release-notes-automation-guide/43-community-site-pages-setup.md) for steps to get a token for the `restUserToken` variable |
| img.sh                     | Uploads images to Clearpath Community and outputs the URL so they can be inserted in the published page on Clearpath Community; see [Include images in release notes](https://www.marlasowards.com/samples/release-notes-automation-guide/35-include-images-in-release-notes.md)                                                     |
| only-toc-on-existing-md.sh | Updates the table of contents for a release date file if the file was changed after the original table of contents is generated                                                                                                                                                                                                      |

See the detailed notes at the top of each script for added information.

## For the future: Clean up release pipelines from deprecated Classic edition versions
