GithubHelp home page GithubHelp logo

Comments (9)

rstacruz avatar rstacruz commented on June 27, 2024

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.

mationai avatar mationai commented on June 27, 2024

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.

knownasilya avatar knownasilya commented on June 27, 2024

@fuzzthink why are you including the styles from docpress-base manually?

from docpress.

mationai avatar mationai commented on June 27, 2024

@knownasilya I'm not including styles from docpress-base manually. I'm only defining styles in docs/style.styl.

from docpress.

knownasilya avatar knownasilya commented on June 27, 2024

Ok, I'll look into it.

from docpress.

rstacruz avatar rstacruz commented on June 27, 2024

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.

knownasilya avatar knownasilya commented on June 27, 2024

Can we delete the CSS file and use the stylus only?

from docpress.

rstacruz avatar rstacruz commented on June 27, 2024

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.

knownasilya avatar knownasilya commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.