by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 25 07:33

    ddfreyne on bundler

    (compare)

  • Jun 25 07:33

    ddfreyne on main

    Bump rack from 2.2.2 to 2.2.3 … Merge pull request #249 from na… (compare)

  • Jun 25 07:33
    ddfreyne closed #249
  • Jun 24 17:19
    dependabot[bot] labeled #249
  • Jun 24 17:19
    dependabot[bot] opened #249
  • Jun 24 17:19

    dependabot[bot] on bundler

    Bump rack from 2.2.2 to 2.2.3 … (compare)

  • Jun 19 19:04
    sirosen commented #1504
  • Jun 17 14:21
    Fjan closed #1501
  • Jun 17 14:21
    Fjan commented #1501
  • Jun 17 13:24
    ddfreyne commented #1501
  • Jun 17 13:24
    ddfreyne reopened #1501
  • Jun 17 11:58
    Fjan commented #1501
  • Jun 17 11:36
    blinry commented #1471
  • Jun 17 09:21
    DaveEveritt commented #245
  • Jun 17 08:48

    ddfreyne on main

    Upgrade Nanoc to 4.11.18 (compare)

  • Jun 17 08:24

    ddfreyne on 4.11.18

    (compare)

  • Jun 17 08:24

    ddfreyne on nanoc-cli-v4.11.18

    (compare)

  • Jun 17 08:23

    ddfreyne on nanoc-core-v4.11.18

    (compare)

  • Jun 17 08:21

    ddfreyne on main

    Set version to 4.11.18 Add release notes for 4.11.18 (compare)

  • Jun 17 08:05
    ddfreyne commented #1504
Gregory Pakosz
@gpakosz
it's both logical and so confusing
Gregory Pakosz
@gpakosz
Also @ddfreyne , a bigger timeout doesn't always help
I'm still hitting
Magick::ImageMagickError: unable to open image `/vagrant/output/images/convert-batch.png': No such file or directory @ error/blob.c/OpenBlob/2874

Current item: /tools/inktool/overview.md (:default representation)

  0. _factory/lib/images.rb:43:in `ping'
  1. _factory/lib/images.rb:43:in `image'
  2. item /tools/inktool/overview.md (rep default):185:in `get_binding'
Item A depends on Image B. And Item A's compilation tries to open image in output/ before it has arrived
I'm not sure if you commented that already but imho when an item A depends on a binary item B, the only correct option is to wait for item B to arrive in output/ before launching compilation of item A. Is it what Nanoc is currently doing?
2 replies
Gregory Pakosz
@gpakosz
damn and guard doesn't work with Vagrant :(
Gregory Pakosz
@gpakosz
is there a way I can ask nanoc live to launch guard -p to force polling ?
Denis Defreyne
@ddfreyne
@gpakosz I think in that case, I’d run nanoc live and guard separately
nanoc live (the one that is provided by guard-nanoc) is a thin wrapper around both
Gregory Pakosz
@gpakosz
you meant nanoc view and guard?
Denis Defreyne
@ddfreyne
Yep, sorry
Harald
@a4z

what it the 'trick' in the blogging extension, why the question if items are frozen, and if, the data gets assigned to a variable just to return that

      blk = -> { @items.select { |item| item[:kind] == 'article' } }
      if @items.frozen?
        @article_items ||= blk.call
      else
        blk.call
      end

I can understsand that there might be some caching wanted, and that the result is returned if it exists
or does this something different?
but why the items.frozen question ? if this is not the case there is no caching, when is which branch relevant?

Harald
@a4z
my second question for this evening is, is there a way to influence that certain item will pe written out after others ?
3 replies
Denis Defreyne
@ddfreyne
@a4z Yep, that is related to caching. The list of items is becomes frozen after preprocessing
Ian Young
@iay
Are the people having performance issues with the host file system in Docker running on Macs? The main issue is not file system speed per se but the overhead required to get bidirectional consistency. There are mount options that can improve performance a fair bit depending on what you're doing. See https://docs.docker.com/docker-for-mac/osxfs-caching/ for details.
Ran into this on a project I was working on recently: https://github.com/iay/shibboleth-build-docker/blob/master/README.md#performance
(The workround we used -- temporarily moving the data to /tmp in the container -- obviously wouldn't apply here)
Denis Defreyne
@ddfreyne
@iay So far I’ve avoided using Docker on Mac because of speed issues…
Harald
@a4z
is there a way to call compile from the post processign step?
Gregory Pakosz
@gpakosz
no because it's a post processing step, compilation and routing have happened by then
Harald
@a4z
hm, that what I have expected, but it is sad, have now all pieces together, and I am super happy, but I have that one use case where I would need to influence that one page is processed after others, and I do not know how to do that
8 replies
Gregory Pakosz
@gpakosz
@ddfreyne hello, do you think you can make a point release with the longer timeout soon?
3 replies
Harald
@a4z

So, if you have one blog index page that depends on all individual articles, you could do e.g. @items.find_all('/articles/*').each(&:path) to force a dependency onto all those pages

A question to this ... what does it mean.. :-) , what does .each(&:path) actually call on the item?
my ruby is not that strong, and from the doc I see there is a path property, but I am unsure how that relates, but I am very interested in understanding .

Denis Defreyne
@ddfreyne
.each(&:path) is the same as .each { |something| something.path } — it’s syntactic sugar
So essentially, it loops over the collection and calls the path method on it
(and the call to #path makes Nanoc record a dependency onto the item that you called the #path methd on)
Harald
@a4z
Thanks for the explanation! so I call the path method on all blog articles, but when do I do that and how does this relate the the blogindex page?
Do I need to have a own rule for the blogindex page and do this in this rule?
Harald
@a4z
oh, I think I found it , I do it in the blog index erb page ? and this creates a dependency just because I call a method on the item? magic, this is magic !
(have of course to try out if this is true but I think it is... tested, seems to be the case, .. magic! )
3 replies
Harald
@a4z
For the atom feed, what do I need to do that not the whole content of a page/article lands in the feed.xml for each entry, but only the excerpt ?
1 reply
ethancrawford
@ethancrawford
Hello @ddfreyne. I'm interested in helping to solve my recently raised issue nanoc/nanoc#1502 if I can. The only problem is that I'm not quite sure yet of a suitable approach - I'd welcome any pointers if/when you have the time! :slight_smile:
Denis Defreyne
@ddfreyne
@ethancrawford Hi! I think the way to fix it would be to look at utf8.rb (which defines Nanoc::CLI::StreamCleaners::UTF8, check whether str is a UTF-8 string, and if not, return str without doing anything on it
1 reply
ethancrawford
@ethancrawford
Btw, is there much left to do before merging in the branch where you have extracted the sass filter into its own gem? (I'm still curious about replacing sass with sassc :smile:)
9 replies
ethancrawford
@ethancrawford
..and another question :joy: :sweat_smile: if I were interested in allowing the kramdown filter to parse github flavoured markdown, would you prefer this to be added as a separate filter, or allowed as a config setting to the existing one? :slight_smile:
4 replies
Harald
@a4z

a qeustion to the documentation, the example in the blogger helper for generating a feed is

compile '/blog/feed/' do
  filter :erb
  write '/blog.xml'
end

what input does this actually take? I mean, /blog/feed/ is a folder , so which file will be compiled ?

4 replies
Denis Defreyne
@ddfreyne
nanoc 4.11.18 is out!
5 replies
ethancrawford
@ethancrawford
:tada:
Denis Defreyne
@ddfreyne
I have a day off today and this is how I choose to spend it… fixing threading bugs
But don’t worry. I will definitely be not doing much later today
ethancrawford
@ethancrawford
:laughing:
Harald
@a4z
You do an awesome job @ddfreyne by providing this great tool and active maintaining it and helping users like me. Thanks a lot Denis !!
Denis Defreyne
@ddfreyne
Thank you :)
Harald
@a4z
finally I am done and my nanoc base site is online, did also some plug for nanoc :-)
https://a4z.gitlab.io/blog/2020/06/21/Moving-this-site-to-a-new-location.html
Denis Defreyne
@ddfreyne
@a4z Very nice :)
I found a typo: piplelines
@a4z You can integrate a spell checker with Nanoc if you want: https://github.com/nanoc/nanoc.ws/blob/main/lib/checks.rb
That is how I do it with nanoc.ws
Harald
@a4z
Thanks! will definitely look into spell checker, obviously VS Code code spell check does not show me all, or my eyes are too tired in the evening :-)
2 replies
Harald
@a4z

apropos check, I get 2 fails positives from the ilink checker, both to the same site , one time from the blog index and 1 time from an article linking to the same page, in both case the html is

<a href="/blog/2017/10/14/Using-SQLite3-in-your-C++-application.html">Using SQLite3 in your C++ application</a>

both links work... maybe the ++ in the URL?

3 replies
ethancrawford
@ethancrawford
Hey hey @ddfreyne. Do you still consider https://groups.google.com/d/topic/nanoc/aSG7QC_oqZQ/discussion to be the ideal way to combine multiple items into one?
2 replies
Harald
@a4z
can I create a ignore list for various checkers ?
I have 2 problems, one is that thi the url checker, reporting an URL that clearly works wget https://a4z.gitlab.io/blog/2017/10/14/Using-SQLite3-in-your-C++-application.html as being wrong,
the second is the html validator, since google wants to put me a html page into my root so it knows I am the owner of the page. And this is of course no valid html5
It would be nice if I could automate the checkers, but I need a way to exclude such false positives