-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: content of about page now generated based on information from R…
…EADME.md (#36)
- Loading branch information
Showing
8 changed files
with
36 additions
and
294 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
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,24 @@ | ||
#!/bin/bash | ||
|
||
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
Empty file.
33 changes: 0 additions & 33 deletions
33
src/main/resources/webapp/pdf-exporter-admin/html/help/configuration.css
This file was deleted.
Oops, something went wrong.
254 changes: 0 additions & 254 deletions
254
src/main/resources/webapp/pdf-exporter-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