Skip to content

Commit

Permalink
🐛(front) fonts for katex lib
Browse files Browse the repository at this point in the history
Katex npm package is using fonts. These files need to be uploaded
into the static folder of django.
  • Loading branch information
carofun committed Dec 30, 2022
1 parent f740c76 commit 065fa9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ COPY --from=front-builder \
COPY --from=front-builder \
/builder/src/ashley/static/ashley/font/* \
/builder/src/ashley/static/ashley/font/
COPY --from=front-builder \
/builder/src/ashley/static/ashley/css/fonts/* \
/builder/src/ashley/static/ashley/css/fonts/

RUN mkdir /install && \
pip install --prefix=/install .[sandbox]
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lint-all": "yarn lint-fix && yarn prettier-write",
"sass": "node-sass --include-path node_modules scss/_main.scss ../ashley/static/ashley/css/main.css",
"sass-production": "node-sass --include-path node_modules scss/_main.scss --output-style compressed ../ashley/static/ashley/css/main.css",
"webfonts": "mkdir -p ../ashley/static/ashley/font/ && cp -f ./node_modules/@fortawesome/fontawesome-free/webfonts/* ../ashley/static/ashley/font/",
"webfonts": "mkdir -p ../ashley/static/ashley/font/ ../ashley/static/ashley/css/fonts/ && cp -f ./node_modules/@fortawesome/fontawesome-free/webfonts/* ../ashley/static/ashley/font/ && cp -f ./node_modules/katex/dist/fonts/* ../ashley/static/ashley/css/fonts/",
"test": "jest",
"watch-sass": "nodemon -e scss -x 'yarn sass'"
},
Expand Down

0 comments on commit 065fa9a

Please sign in to comment.