Skip to content

Commit 22e13a7

Browse files
committed
Remove fontimage.png from npm package
It turned out that README in npm registry page cannot show images in the package and the only one way is to host images somewhere and refer to the URLs. It is okay to revert the image reference in README-npm.md for now.
1 parent 7d30b10 commit 22e13a7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

README-npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a handwritten font created by @saltcandy123.
44

5-
![Font image](./fontimage.png)
5+
![Font image](https://raw.githubusercontent.com/saltcandy123/saltcandy123font/main/fontimage.png)
66

77
## Usage
88

scripts/build-dist.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ NPM_PACKAGE_DIR="${DIST_DIR}/npm-package"
1919
mkdir -p "${NPM_PACKAGE_DIR}"
2020
cp "${DIST_DIR}/saltcandy123font.ttf" "${DIST_DIR}/saltcandy123font.woff" "${NPM_PACKAGE_DIR}/"
2121
cp "${BASE_DIR}/README-npm.md" "${NPM_PACKAGE_DIR}/README.md"
22-
bash "${BASE_DIR}/scripts/generate-fontimage.sh" "${DIST_DIR}/saltcandy123font.ttf" "${NPM_PACKAGE_DIR}/fontimage.png"
2322
cat <<EOF | python -m json.tool >"${NPM_PACKAGE_DIR}/package.json"
2423
{
2524
"name": "@saltcandy123/saltcandy123font",

0 commit comments

Comments
 (0)