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
outputFileparameter. - A corresponding CSS file (same name as
outputFile, but with.cssextension) will also be generated for styling.
How It Works
- Collect Markdown Files: Scans the specified directory for markdown files.
- Extract Release Info: Parses each markdown file for release data.
- Render HTML: Uses Jinja2 templates to format the extracted data into HTML.
- 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.htmlto change the structure of the output HTML. - CSS Styling: Edit
template.cssto 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)
| File | Size | Uploaded | |
|---|---|---|---|
| relnotegen-0.1.3.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|