-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: about page help is generated based on README.md (#6)
- Loading branch information
Showing
9 changed files
with
43 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
INPUT_FILE="${1:-README.md}" | ||
OUTPUT_FILE="${2:-README.html}" | ||
|
||
# Convert the markdown file to a JSON payload | ||
jq -R -s '{"mode": "gfm", "text": .}' < "$INPUT_FILE" > payload.json | ||
|
||
# Send the JSON payload to the GitHub API | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/markdown \ | ||
-d @payload.json > "$OUTPUT_FILE" | ||
|
||
# Remove the temporary JSON payload | ||
rm payload.json | ||
|
||
# Remove the Build and Installation sections from readme | ||
awk ' | ||
/<h2>Build<\/h2>/ {skip=1; next} | ||
/<h2>Polarion configuration<\/h2>/ {skip=0} | ||
!skip' "$OUTPUT_FILE" > "$OUTPUT_FILE.tmp" && mv "$OUTPUT_FILE.tmp" "$OUTPUT_FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changelog before migration to conventional commits | ||
|
||
| Version | Changes | | ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| v1.5.0 | About page extended with help and icon | | ||
| v1.4.0 | * Changed the way of loading attachment content on the page<br/> * Separate endpoints for creating and updating workItem<br/> * Added swagger annotations<br/> * Refactoring<br/> * Update maven dependencies | | ||
| v1.3.0 | * Update polarion version<br/>* Added "about page" for json editor plugin<br/>* Implemented ApiController<br/> * Refactoring<br/>Update maven dependencies | | ||
| v1.2.0 | Initial release | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
33 changes: 0 additions & 33 deletions
33
src/main/resources/webapp/json-editor-admin/html/help/configuration.css
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
src/main/resources/webapp/json-editor-admin/html/help/configuration.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters