Skip to main content

relnotegen

Overview

relnotegen is a Python-based tool designed to automate the process of generating and styling release notes for mobile applications. It extracts release information from markdown files stored in Azure DevOps wiki, formats this information into HTML using Jinja2 templates, and then applies Tailwind CSS for styling. The final HTML release notes can be uploaded to cloud storage or used in any other desired manner.

Features

  • Markdown to HTML: Converts markdown files from Azure DevOps wiki into HTML.
  • Dynamic Styling: Uses Tailwind CSS to style the generated HTML release notes.
  • Customizable Templates: Supports Jinja2 templates for HTML output, allowing for flexible and customizable formatting.
  • Configurable: Easily configurable via a JSON file.

Getting Started

Prerequisites

  • Python 3.6 or higher
  • Jinja2, markdown (Installable via pip)
  • Access to Azure DevOps wiki markdown files
  • Node.js and npm (for Tailwind CSS)

Installation

Install the package via pip:

$ pip install relnotegen

Configuration

Create the relnotegen.config.json file to set your preferences. Here's an example (all fields are required):

{
    "searchPath": "./mdown",
    "template": "template.html",
    "outputFile": "myapp-release-notes.html",
    "templateParameters": {
        "pageTitle": "MyApp Release Notes",
        "heading": "What's New",
        "package": "Your App Name"
    }
}

Usage

Run relnotegen:

$ relnotegen

Output

  • The script will generate an HTML file as specified in the outputFile parameter.
  • A corresponding CSS file (same name as outputFile, but with .css extension) will also be generated for styling.

How It Works

  1. Collect Markdown Files: Scans the specified directory for markdown files.
  2. Extract Release Info: Parses each markdown file for release data.
  3. Render HTML: Uses Jinja2 templates to format the extracted data into HTML.
  4. Generate CSS: Runs Tailwind CSS to style the HTML file.

Only markdown files with the proper "frontmatter" are collected. The frontmatter starts and ends with three dashes. Here's an example (both fields are required):

---
release-date: 2023-10-29
version: 2.0.8
---
We worked hard to bring you the following updates:

## Improvements <span class="ios"/><span class="android"/>
- You can now order peperoni pizza
- We removed pineapple as possible pizza toppings

## Bug Fixes <span class="ios"/>
- Fixed a crash issue when ordering more than 100 pizza's

Customization

  • HTML Template: Modify template.html to change the structure of the output HTML.
  • CSS Styling: Edit template.css to customize styles. Run Tailwind CSS to compile these styles into the final CSS.

License

This project is licensed under the MIT License.

Metadata

Release files for relnotegen 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relnotegen 0.1.3
File Size Uploaded
relnotegen-0.1.3.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for relnotegen 0.1.3
File Interpreter ABI Platform
relnotegen-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / relnotegen-0.1.3.tar.gz

Download URL relnotegen-0.1.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b00e3f36d02be6aa79d13188b39de20300267326a8fb9a3652056bc2416348a9
BLAKE2b-256 checksum
How to use checksums
90bc340577d8b6a32770bdd95f5d42f983887e3273f431ed66b86b6abec236a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / relnotegen-0.1.3-py3-none-any.whl

Download URL relnotegen-0.1.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e60b22f4022b1f708f820dce02fb421dfcf22eb865aa6a7a761a4c66d5e5280d
BLAKE2b-256 checksum
How to use checksums
63c708afbb579e4f4195572848fc5b0af11a82301be8753d1938a7b4fe5c258e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page