Comments (9)
Hmm, that should never show up. How did you install docpress and what
versions did you use?
On Sat, Jul 9, 2016, 9:48 AM fuzzthink [email protected] wrote:
Do I need to do anything to use stylus?
No error if using css. Error if do.
docpress.json:
{
"markdown": {
"plugins": {
"decorate": {}
}
},
"css": [
"docs/style.styl"
]
}Error:
✗ /Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/data/style.styl:1:10
1| @require './normalize.css/normalize.css'
---------------^
2| @require './github-markdown-css/github-markdown.css'
3| @require './nprogress/nprogress.css'
4| @require './iconfonts/stylesheets/ionicons'failed to locate @require file ./normalize.css/normalize.css
1| @require './normalize.css/normalize.css' ---------------^ 2| @require './github-markdown-css/github-markdown.css' 3| @require './nprogress/nprogress.css' 4| @require './iconfonts/stylesheets/ionicons' failed to locate @require file ./normalize.css/normalize.css at Evaluator.visitImport (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/evaluator.js:901:21) at Evaluator.Visitor.visit (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/index.js:28:40) at Evaluator.visit (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/evaluator.js:156:18) at Evaluator.visitRoot (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/evaluator.js:693:27) at Evaluator.Visitor.visit (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/index.js:28:40) at Evaluator.visit (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/evaluator.js:156:18) at Evaluator.evaluate (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/visitor/evaluator.js:233:15) at Renderer.render (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/stylus/lib/renderer.js:86:26) at buildStylus (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/lib/build_css.js:37:7) at buildCss (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/lib/build_css.js:8:3) at Object.addCss (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/index.js:107:5) at Ware.<anonymous> (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/wrap-fn/index.js:45:19) at next (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/ware/lib/index.js:85:20) at /Users/john/dev/docsites/felix/node_modules/docpress/node_modules/wrap-fn/index.js:121:18 at callback (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/index.js:120:5) at useCache (/Users/john/dev/docsites/felix/node_modules/docpress/node_modules/docpress-base/lib/helpers/use_cache.js:6:5)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#102, or mute the thread
https://github.com/notifications/unsubscribe/AAEikT3lECBapXWYMaK7DES7oVS1VrSXks5qTv4AgaJpZM4JIg86
.
from docpress.
Tried all the following combinations:
global docpress only (both node 5.0 and 6.2)
global and local docpress (both node 5.0 and 6.2)
all 4 combinations has same error.
from docpress.
@fuzzthink why are you including the styles from docpress-base manually?
from docpress.
@knownasilya I'm not including styles from docpress-base manually. I'm only defining styles in docs/style.styl.
from docpress.
Ok, I'll look into it.
from docpress.
I think I know what's causing this. Docpress-Base uses stylus only in
development. On the release version, it uses the pre-rendered style.css.
Stylus CSS apparently are only supported on development versions of
docpress-base.
On Tue, Aug 16, 2016, 9:03 AM Ilya Radchenko [email protected]
wrote:
Ok, I'll look into it.
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#102 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEikaO1sywcB8dqq4hQHPW6uzW8Znbgks5qgQxZgaJpZM4JIg86
.
from docpress.
Can we delete the CSS file and use the stylus only?
from docpress.
It would add something like 1 second to every build time, something that is
kinda painful in development. Maybe a Metalsmith stylus plugin would be
better suited.
On Tue, Aug 16, 2016, 9:26 AM Ilya Radchenko [email protected]
wrote:
Can we delete the CSS file and use the stylus only?
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#102 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEikY2UuP8bdScxnAkVRyDc06ADVOR2ks5qgRHTgaJpZM4JIg86
.
from docpress.
Or the opposite, because everyone knows css but not stylus, so it'd be easier to contribute and less confusion if we have one base stylesheet (postcss processed, since we already use it).
from docpress.
Related Issues (20)
- Docpress serve trips up on symlinked folder. HOT 3
- Update docpress-core deps to fix security issue. HOT 3
- How to insert an image? HOT 6
- Error: README.md: Unknown reference '/docs/components.md' HOT 2
- Mobile: 'Next' overlay shadows button HOT 1
- Mobile: Links should scroll down to content instead of index table.
- isso instead of disqus .. HOT 1
- CRASH: TypeError: Cannot set property 'contents' of undefined
- Set livereload-port for docker watch to work
- Unknown reference '../README.md' HOT 1
- TypeError: Cannot read property 'contents' of undefined HOT 4
- Set htmlhref language to site HOT 1
- docpress --help vs docpress -h
- docpress init HOT 1
- Live code editing HOT 1
- subsites not included (windows) HOT 14
- Build failed - did you forget to load/include a language module? HOT 6
- Code syntax dark theme?
- RTL Support
- Version 9 of Highlight.js has reached EOL and is no longer supported
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 docpress.