Comments (5)
Hi @dokinchan, there is a typo in the documentation page
with:
@import "../../node_modules/hexo-theme-doc/_doc.scss"
/* NOT: @import "../node_modules/hexo-theme-doc/_doc.scss" */
It should work.
from hexo-theme-doc.
@dokinchan We are having issues with SCSS imports and npm
. Working on a proper fix.
from hexo-theme-doc.
Hi @rbarilani, after changing the file in "/{rootFolder}/source/styles/doc.scss"(This was added manually mentioned by @dokinchan earlier.)
from /* NOT: @import "../node_modules/hexo-theme-doc/_doc.scss" */
to @import "../../node_modules/hexo-theme-doc/_doc.scss"
It still not work for me.
The error messages:
~/CLRS/source(CLRS-sources*) » hexo s jay@Jays-MacBook-Pro
INFO Start processing
Error: File to import not found or unreadable: ../../../node_modules/dress-code/dist/sass/dress-code.
Parent style sheet: /Users/Jay/CLRS/node_modules/hexo-theme-doc/source/style/_doc/index.scss
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: File to import not found or unreadable: ../../../node_modules/dress-code/dist/sass/dress-code.
Parent style sheet: /Users/Jay/CLRS/node_modules/hexo-theme-doc/source/style/_doc/index.scss
at Object.module.exports.renderSync (/Users/Jay/CLRS/node_modules/node-sass/lib/index.js:439:16)
at Hexo. (/Users/Jay/CLRS/node_modules/hexo-renderer-sass/lib/renderer.js:25:23)
at /Users/Jay/CLRS/node_modules/hexo/lib/hexo/render.js:61:21
at tryCatcher (/Users/Jay/CLRS/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
How can I do? Thanks!
Specifications
- NodeJS Version: 8.9.4
- NPM Version: 5.6.0
- OS: macOS High Sierra version 10.13.3
- Hexo Version: 3.5.0
from hexo-theme-doc.
@dokinchan @walkccc working on a change that should fix the problem in the next release here. The change when merged will IMHO improve sass mechanism avoiding relative imports and fix the reported problem.
from hexo-theme-doc.
I confirmed @rbarilani 's change fixes the issue. To apply his change to your project, run npm i [email protected] --save
from hexo-theme-doc.
Related Issues (20)
- WARN No layout: index.html HOT 6
- Cannot use layout variable or helper in project partial HOT 2
- How can I add an image in my post? HOT 1
- Update to Swagger 3.0 HOT 1
- [Feature request] Tag support
- Poor style cutomization
- deploy
- How to deploy it on GitHub Pages HOT 1
- Reading progressbar
- Search does not support internationalization HOT 1
- Cannot set keywords
- Add Security.md file.
- Can I use a global variable in my MD? HOT 3
- While customizing the styles with SASS, hexo is breaking in importing dress-code library. HOT 13
- Search input is not displayed HOT 2
- Change Lang HOT 2
- dd
- 搜索框里面如何支持中文搜索功能 HOT 3
- After hexo generation, the page can not show HOT 6
- hexo-theme-doc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-doc.