Comitting the doks to github, seems like Sass/Scss converted to single css file, css not loading #110
Replies: 4 comments 13 replies
-
@raqueeb - npm is most needed to update dependecies - with Later on in your workflow you can work with hugo commands, npm works as a script runner, defined in For example Does this help? |
Beta Was this translation helpful? Give feedback.
-
Glad it works better now! On extra font - maybe put a separate question in
discussion and provide the source repository.
That part I have not tried, and know little about, but maybe someone else
can help.
пт, 5 февр. 2021 г., 11:19 Rakibul Hassan <[email protected]>:
… Thank you. You are spot on at the baseurl thing. I have changed it to
/newsite/, now it loads the css.
I added the custom font in $\doks\assets\scss\common_fonts.scss
@font-face {
font-family: "SiyamRupali";
src:
local("Jost"),
url('/fonts/vendor/jost/SiyamRupali.woff') format('woff');
font-weight: normal;
font-style: 400;
font-display: block;
}
/* jost-regular - latin */
@font-face {
font-family: "Jost";
font-style: normal;
font-weight: 400;
font-display: swap;
src:
local("Jost"),
url("/fonts/vendor/jost/jost-v4-latin-regular.woff2") format("woff2"),
url("/fonts/vendor/jost/jost-v4-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
I have to update this as
@font-face { font-family: "SiyamRupali"; src: local("Jost"),
url('/newsite/fonts/vendor/jost/SiyamRupali.woff') format('woff');
font-weight: normal; font-style: 400; font-display: block; }
[image: image]
<https://user-images.githubusercontent.com/32799073/107007702-1abce900-67bd-11eb-8250-6c6bb48be679.png>
Other system fonts are loading, but it's not adding /newsite/ to the
custom font. I believe I have to add it manually.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#110 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWBLSPNTYEWGFDTHWDXUTS5OSZXANCNFSM4XCGMD5A>
.
|
Beta Was this translation helpful? Give feedback.
-
I've set up instructions how to deploy a site to GitHub Pages — automatically. See: https://getdoks.org/docs/recipes/deployment/#deploy-to-github-pages |
Beta Was this translation helpful? Give feedback.
-
I think github actions is up into learning curve - the simplest form is
publish manually to docs folder to see if it works, next is publish into
gh-pages branch possibly with ghp-import. I would say Githab Actions is the
third deployment mode, not really a default, imo.
пт, 5 февр. 2021 г., 16:19 Henk Verlinde <[email protected]>:
… What am I missing?
I've set up instructions how to deploy a site to GitHub Pages —
automatically.
See: https://getdoks.org/docs/recipes/deployment/#deploy-to-github-pages
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWBLUTGJ42LH7HP4DKKB3S5PV5BANCNFSM4XCGMD5A>
.
|
Beta Was this translation helpful? Give feedback.
-
Since I'm trying to deploy the doks to github page via npm, initially I started the development process by
Then building it, with
It builds a public folder. All the Sass/Scss files converted to single css file. I tend to push the pulic forder contents to main github branch and set this up as gh-pages, the index.html file loads up without the css rendeting.
What am I missing?
I'm confident with hugo, can I do the whole thing with hugo only - not npm?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions