Skip to content

Commit

Permalink
Updated CHANGELOG
Browse files Browse the repository at this point in the history
Also add make target to build HTML from README and CHANGELOG. Just for
reviewing.
  • Loading branch information
rakus committed Oct 29, 2023
1 parent ece9b01 commit 910a2ab
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

* Build and test on MacOS. Add MacOS binary to release artifacts (as tar.gz).

### CHANGED

* Generated code to test whether shell function exists.

## [0.1.0] - 2023-09-09

Initial Release

[0.1.0]: https://github.com/rakus/parseargs/releases/tag/v0.1.0
[Unreleased]: https://github.com/rakus/parseargs/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/rakus/parseargs/compare/d64c536...v0.1.0

30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,35 @@ target/parseargs-${VERSION}-${TARGET_ENV}.tar.gz: prepare-archive
clean:
cargo clean

define HTML_HEAD
<!DOCTYPE html>
<html lang="en">
<head>
<title>Quick Change Directory</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
endef

define HTML_TAIL
</body>
</html>
endef

target/%.html: %.md
@mkdir -p target
( echo "$${HTML_HEAD}" && marked --gfm --tables $< && echo "$${HTML_TAIL}" ) > $@

target/README.html: README.md

target/CHANGELOG.html: CHANGELOG.md

html: target/README.html target/CHANGELOG.html ## format README and CHANGELOG for review

help: ## Prints targets with help text
@cat ${MAKEFILE_LIST} | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%s\033[0m\n %s\n", $$1, $$2}'

0 comments on commit 910a2ab

Please sign in to comment.