Skip to content

Commit

Permalink
Remove fontimage.png from npm package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
saltcandy123 committed Nov 26, 2021
1 parent 7d30b10 commit 22e13a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a handwritten font created by @saltcandy123.

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

## Usage

Expand Down
1 change: 0 additions & 1 deletion scripts/build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ NPM_PACKAGE_DIR="${DIST_DIR}/npm-package"
mkdir -p "${NPM_PACKAGE_DIR}"
cp "${DIST_DIR}/saltcandy123font.ttf" "${DIST_DIR}/saltcandy123font.woff" "${NPM_PACKAGE_DIR}/"
cp "${BASE_DIR}/README-npm.md" "${NPM_PACKAGE_DIR}/README.md"
bash "${BASE_DIR}/scripts/generate-fontimage.sh" "${DIST_DIR}/saltcandy123font.ttf" "${NPM_PACKAGE_DIR}/fontimage.png"
cat <<EOF | python -m json.tool >"${NPM_PACKAGE_DIR}/package.json"
{
"name": "@saltcandy123/saltcandy123font",
Expand Down

0 comments on commit 22e13a7

Please sign in to comment.