New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating section #91

Closed
indieveed opened this Issue Aug 21, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@indieveed

indieveed commented Aug 21, 2014

I am trying to use livingstyleguide for the first time and I have a weird problem.

I added a markdown file for one of my .scss files, it is located in sass/base/_girids.scss, so I added sass/base/_grids.md.

Whatever content I add to _grids.md, the styleguide has to identical sections of "Grids" in the generated html file.

I checked for the _grids.scss being imported twice, and it is definitely is included only once.

I will post content of some files here.

my config.rb:

http_path = "/"
css_dir = "styles"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
fonts_dir = "fonts"
output_style = :nested
relative_assets = true
color_output = false

_girds.md:

Grid
=======

 ` ``
<div class="grid">
  <div class="grid__item one-half"></div>
  <div class="grid__item one-half"></div>
</div>
 ` ``

backticks actually do not have a space in between, I could not escape them

styleguide.html.lsg:

source: 'main.scss'

_grids.md is a scss file with 291 lines of code

I tried moving this grids file, renaming it and importing in different order.
I've just found out that it helps when I remove all the code from the file, so may be the problem is in SASS or compass. I'll try to figure out what exactly is responsible for the bug.

@indieveed

This comment has been minimized.

indieveed commented Aug 21, 2014

OK, I figured it out.

in _grids.scss I had an import of compass utility:

@import "compass/utilities/general/clearfix";

So it seems that LSG could not find it and included Grids one more time.
Looks like a bug to me, but the workaround was simply moving this import to main.scss.

@hagenburger

This comment has been minimized.

Member

hagenburger commented Aug 21, 2014

Interesting bug. I’ll try to reproduce that. Thanks for writing this issue. Let me know if you have any further questions.

@hagenburger hagenburger added the bug label Aug 24, 2014

hagenburger added a commit that referenced this issue Aug 24, 2014

@hagenburger

This comment has been minimized.

Member

hagenburger commented Aug 24, 2014

This is fixed in v1.2.0.pre.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment