remove symlink to support devs using Windows (#1090)

This commit is contained in:
Kevin Barabash
2018-01-28 23:01:57 -05:00
committed by GitHub
parent 0eae99fb08
commit bf080cd6a4
6 changed files with 4 additions and 68 deletions

View File

@@ -31,7 +31,7 @@ $(NIS) setup: package.json
lint: $(NIS)
$(NPM) run lint
webpack: katex.js $(wildcard src/*.js) $(wildcard static/*.less) $(NIS)
webpack: katex.js $(wildcard src/*.js) $(wildcard static/*.less) submodules/katex-fonts/fonts.less $(NIS)
$(NPM) run build
.PHONY: build/fonts build/contrib

View File

@@ -54,7 +54,7 @@
},
"bin": "cli.js",
"scripts": {
"lint": "eslint katex.js katex.webpack.js cli.js webpack.common.js webpack.config.js webpack.dev.js src test contrib dockers && stylelint static/fonts.less static/katex.less",
"lint": "eslint katex.js katex.webpack.js cli.js webpack.common.js webpack.config.js webpack.dev.js src test contrib dockers && stylelint static/katex.less",
"flow": "flow",
"jest": "jest",
"jest-update": "jest --updateSnapshot",

View File

@@ -1 +0,0 @@
../submodules/katex-fonts/fonts

View File

@@ -1,63 +0,0 @@
@font-folder: "fonts";
@use-ttf: true;
@use-woff: true;
@use-woff2: true;
.use-woff2(@family, @family-suffix) when (@use-woff2 = true) {
src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.woff2') format('woff2')
}
.use-woff(@family, @family-suffix) when (@use-woff = true) {
src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.woff') format('woff')
}
.use-ttf(@family, @family-suffix) when (@use-ttf = true) {
src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.ttf') format('truetype')
}
.generate-suffix(@weight, @style) when (@weight = normal) and (@style = normal) {
@suffix: 'Regular';
}
.generate-suffix(@weight, @style) when (@weight = normal) and (@style = italic) {
@suffix: 'Italic';
}
.generate-suffix(@weight, @style) when (@weight = bold) and (@style = normal) {
@suffix: 'Bold';
}
.generate-suffix(@weight, @style) when (@weight = bold) and (@style = italic) {
@suffix: 'BoldItalic';
}
.font-face(@family, @weight, @style) {
.generate-suffix(@weight, @style);
@font-face {
font-family: 'KaTeX_@{family}';
.use-woff2(@family, @suffix);
.use-woff(@family, @suffix);
.use-ttf(@family, @suffix);
font-weight: @weight;
font-style: @style;
}
}
.font-face('AMS', normal, normal);
.font-face('Caligraphic', bold, normal);
.font-face('Caligraphic', normal, normal);
.font-face('Fraktur', bold, normal);
.font-face('Fraktur', normal, normal);
.font-face('Main', bold, normal);
.font-face('Main', bold, italic);
.font-face('Main', normal, italic);
.font-face('Main', normal, normal);
// .font-face('Math', bold, italic);
.font-face('Math', normal, italic);
// .font-face('Math', normal, normal);
.font-face('SansSerif', bold, normal);
.font-face('SansSerif', normal, italic);
.font-face('SansSerif', normal, normal);
.font-face('Script', normal, normal);
.font-face('Size1', normal, normal);
.font-face('Size2', normal, normal);
.font-face('Size3', normal, normal);
.font-face('Size4', normal, normal);
.font-face('Typewriter', normal, normal);

View File

@@ -1,4 +1,4 @@
@import "fonts.less";
@import "../submodules/katex-fonts/fonts.less";
// The mu unit is defined as 1/18 em
@mu: 1.0/18.0em;