danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

Slow rendering for includes. #233

Closed ghost closed 8 years ago

ghost commented 8 years ago

When I'm using aglio.renderFile or when trying to run a server, it's really really slow. As in, it doesn't seem to render at all. I'm 99% there is no circular includes so I'm not sure why it would be so slow?

update: it actually looks like my file isn't rendering at all. not sure what I'm doing wrong with using includes.

this is the output I'm getting when verbose is on:

Loading theme default
Server started on http://127.0.0.1:3001/
Rendering src/apiv2.apib
Known data structures: Listing Base,User,Event,Current User,Rate Base,CostItem Base,Ticket,HostField,DiscountCode Base,Rate,CostBreakdown,CostItemCostBreakdown
Using variables /Users/rudolfolah/Workspace/developers.universe.com/node_modules/aglio/node_modules/aglio-theme-olio/styles/variables-default.less
Using styles src/style.less
Checking cache /Users/rudolfolah/Workspace/developers.universe.com/node_modules/aglio/node_modules/aglio-theme-olio/cache/a0fb770f0cf98a96685fa5d778e93a608a3a627c.css
Not cached or out of date. Generating CSS...

I thought the issue was related to not specifying the include path and that seemed to fix things, the dist/index.html was generated but then I ran the aglio build command a few times and the dist/index.html never generated again.

ghost commented 8 years ago

Solved my issue. It looks like the problem is with processing LESS CSS files.

I was running aglio with this flag: --theme-style config/style.less

After removing the flag, it run successfully.