diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 36f2baa9..14cf6952 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -14,7 +14,7 @@ jobs: - name: Install and Build 🔧 run: | - npm install + npm install npm run build - name: Deploy 🚀 diff --git a/docusaurus.config.js b/docusaurus.config.js index 015475fd..4337696b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,3 +1,4 @@ +const path = require('path') module.exports = { title: 'EOSIO Enterprise Blockchain Development Services - EOS Costa Rica', tagline: '', @@ -26,7 +27,7 @@ module.exports = { }, ], ], - + plugins: [path.resolve(__dirname, 'src/plugins', 'webpackconfig')], themeConfig: { image:"img/metaImgBlack.png", footer: {}, diff --git a/package.json b/package.json index 1bf074f2..360bed5e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", - "build": "docusaurus build", + "build": "docusaurus build --no-minify", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "serve": "docusaurus serve" diff --git a/src/css/custom.css b/src/css/custom.css index aef0f467..1848e424 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -1,7 +1,20 @@ /*Fonts*/ -@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); +@font-face { + font-family: 'Lato'; + src: url('/fonts/Lato-Bold.ttf') format('truetype'); + font-weight: bold; +} + +@font-face { + font-family: 'Lato'; + src: url('/fonts/Lato-Regular.ttf') format('truetype'); + font-weight: normal; +} +:root { + --ifm-font-family-base: 'Lato'; +} /*Typographys*/ h1 { diff --git a/src/plugins/webpackconfig/index.js b/src/plugins/webpackconfig/index.js new file mode 100644 index 00000000..8a4a5ab8 --- /dev/null +++ b/src/plugins/webpackconfig/index.js @@ -0,0 +1,23 @@ +const webpack = require('webpack') +module.exports = function () { + return { + name: 'custom-docusaurus-plugin', + configureWebpack() { + return { + module: { + rules: [ + { + test: /\.(png|woff|woff2|eot|ttf|svg)$/, + loader: 'url-loader?limit=100000' + } + ], + }, + plugins: [ + new webpack.ProvidePlugin({ + Buffer: ['buffer', 'Buffer'], + }) + ], + }; + }, + }; +}; \ No newline at end of file diff --git a/static/fonts/GothamPro-Bold.woff2 b/static/fonts/GothamPro-Bold.woff2 deleted file mode 100755 index cd592950..00000000 Binary files a/static/fonts/GothamPro-Bold.woff2 and /dev/null differ diff --git a/static/fonts/GothamPro-Light.woff2 b/static/fonts/GothamPro-Light.woff2 deleted file mode 100755 index ef0cc29b..00000000 Binary files a/static/fonts/GothamPro-Light.woff2 and /dev/null differ diff --git a/static/fonts/GothamPro-Medium.woff2 b/static/fonts/GothamPro-Medium.woff2 deleted file mode 100755 index 984e78aa..00000000 Binary files a/static/fonts/GothamPro-Medium.woff2 and /dev/null differ diff --git a/static/fonts/GothamPro.woff2 b/static/fonts/GothamPro.woff2 deleted file mode 100755 index 14a0e037..00000000 Binary files a/static/fonts/GothamPro.woff2 and /dev/null differ diff --git a/static/fonts/Lato-Bold.ttf b/static/fonts/Lato-Bold.ttf new file mode 100644 index 00000000..b63a14d6 Binary files /dev/null and b/static/fonts/Lato-Bold.ttf differ diff --git a/static/fonts/Lato-Regular.ttf b/static/fonts/Lato-Regular.ttf new file mode 100644 index 00000000..33eba8b1 Binary files /dev/null and b/static/fonts/Lato-Regular.ttf differ