SassDoc / sassdoc-theme-default

Default theme for SassDoc.
MIT License
10 stars 30 forks source link

pass variable from doc to index.js #100

Closed iamnewton closed 7 years ago

iamnewton commented 7 years ago

I've noticed that I can pass a variable in the gulp-sassdoc to the views in my theme using the views.{variable}, but how do I pass this variable to the ctx or index.js so I can parse it and modify it for my views?

pascalduez commented 7 years ago

Hi @chrisopedia,

I'm not sure to fully understand, could you give us a bit more details/context? Passing additional stuff to sassdoc-theme-default won't have much effect, since the theme will not make any use of it.

If your building a custom theme, that's another story. You can gain quite some advanced control in your theme index.js. Also have a look at sassdoc-extras where we do data transformations and additions.

iamnewton commented 7 years ago

I figure it out. Thanks.