rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 262 forks source link

Scroll agent behaviour #38

Open markets opened 10 years ago

markets commented 10 years ago

hey @rstacruz, I think this is related to https://github.com/rstacruz/flatdoc/issues/31.

I have a Flatdoc based site here: http://marcanguera.net/awesome-ruby.

The scroll agent has a weird behaviour. I already have a TOC in the Readme file, so I want to remove it from main content (no sense, I have this info into the menu). I'm doing this (weird behaviour increases):

$(document).on('flatdoc:ready', function() {
  $(".content h1 img").remove();
  $(".content ul:first").remove();
});

As you said in the other issue, this is by design, but if we change it to a different implementation, Flatdoc based sites would be even more amazing. Do you think it's possible to fix that? Maybe Planned?

Thanks.

markets commented 10 years ago

hey @rstacruz

I finally disabled the scroll agent because it made the menu works in a strange way.

I really like Flatdoc, IMO would we an amazing enhancement to the main theme :+1:

Thanks.