Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:39

    dependabot[bot] on bundler

    (compare)

  • 06:39

    ddfreyne on main

    Bump nokogiri from 1.11.4 to 1.… Merge pull request #260 from na… (compare)

  • 06:39
    ddfreyne closed #260
  • Sep 27 20:22
    dependabot[bot] labeled #260
  • Sep 27 20:22
    dependabot[bot] opened #260
  • Sep 27 20:22

    dependabot[bot] on bundler

    Bump nokogiri from 1.11.4 to 1.… (compare)

  • Sep 18 08:28
    da2x opened #1551
  • Aug 09 00:12
    da2x opened #259
  • Aug 08 20:27
    da2x opened #1550
  • Aug 08 20:18
    da2x opened #1549
  • Aug 08 19:59
    da2x edited #1546
  • Aug 04 01:32
    da2x opened #1548
  • Aug 03 23:32
    da2x edited #1547
  • Aug 03 23:32
    da2x opened #1547
  • Aug 03 23:20
    da2x opened #1546
  • Jul 28 11:27
    DannyBen commented #1545
  • Jul 28 11:25
    DannyBen commented #1545
  • Jul 27 17:14
    DannyBen commented #1545
  • Jul 27 15:04
    DannyBen edited #258
  • Jul 27 14:59
    DannyBen opened #258
Ian Young
@iay
I've got some helper functions I've written for one of my sites and I'd like to write some unit tests for them. Is the nanoc-spec gem still a "don't use this" or is there otherwise something to help me build an item collection for tests?
Ian Young
@iay
(I've gone ahead and got that working with nanoc-spec but I'm still interested in the question of whether there's something better in there.)
Christian Tietze
@DivineDominion
Would be interested in that, too :)
Denis Defreyne
@ddfreyne
Hmm, good question about nanoc-spec. It hasn’t really changed much lately, so I think you can use it — though I can’t guarantee that there won’t be backwards-incompatible changes in the future
Ian Young
@iay
I'm fine with that proviso. The tradeoff is that testing code that moves around the content tree is tricky without some help. I have a couple of sites where I have some degree of interchangeability between /a.md and /a/index.md and there are a surprising number of edge cases for a concept like "parent" in that situation.
So nanoc-spec helped a lot.
Richard Downing
@theoldfellow
Just thought I'd say 'hi'. I last used Nanoc in 2015. And now I find I want to use it again. Great to know you are still going strong. And even more amazed to find that my sites still compile!
Denis Defreyne
@ddfreyne
Welcome back ;)
Christian Tietze
@DivineDominion
Anyone working on a JSON feed helper already by any chance? https://jsonfeed.org/
What brought this to my attention is the capability to display author avatars, which is cool for publications with multiple authors. The overall feed structure mimicks the feature of a Twitter timeline
b3nj
@b3nj
Hello guys.
i'm migrating an old website built on an older version of nanoc, using content_for method... which doesn't seem to exist anymore. can maybe anyone point me out what's the current preferred way ?
b3nj
@b3nj
seems it still exists, sorry :D
Denis Defreyne
@ddfreyne
@b3nj Glad to hear you found it!
@DivineDominion I’ve looked at JSON Feed, but haven’t implemented anything for it… could be good to add #json_feed to the Blogging helper I suppose!
Not quite Nanoc-related, but I’m rather happy with the horizontal multi-column layout for article I’ve been experimenting with: https://twitter.com/ddfreyne/status/1396578696962744329
Christian Tietze
@DivineDominion
I have an ultrawide at home, never tried horizontal scrolling and columnar layouts, though. Interesting!
Denis Defreyne
@ddfreyne
@DivineDominion I think it works especially well for the larger Lenses article (https://experiments.denisdefreyne.com/horizontal-layout/index-lenses.html). Still, it required more custom CSS (and even a bit of JavaScript) to get it to work super well.
Denis Defreyne
@ddfreyne
I’m looking for new career opportunities — anyone here have some good leads? :)
Also see --> https://twitter.com/ddfreyne/status/1399404990783950849
Christian Tietze
@DivineDominion
Denis Defreyne
@ddfreyne

Interesting! Though this is off-putting:

Ruby and JavaScript experience are a must; all Discourse applicants have a 40-80 hour paid trial project (over 2-10 weeks) prior to joining the team. The trial project usually involves adding a feature to Discourse or a Discourse plugin.

:grimacing:

Christian Tietze
@DivineDominion
I think that sounds cool. Ensures team compatibility and quality, and it's paid, so the risk is low for applicants
Denis Defreyne
@ddfreyne
It becomes problematic for people who have a full-time job, and especially for people who have responsibilities outside of work (e.g. parents, especially mothers)
Christian Tietze
@DivineDominion
40-80 hours would be 1-2 regular work weeks, right? And they say you can space it out over 10 weeks, so 4-8 hours per week doesn't sound too hard to make
if you have a 50h/wk job already, well that's tough
otherwise it'd boil down to 1 extra work day for 10 weeks at kost, e.g. Saturday. I dunno what more you could offer, excaept more time than 10 weeks, and I bet if you're a single father with a bunch of kids homeschooling, these nice folks might be trying to help
In my book this is as good as it could ever get -- if you want to get to know applicants at all, that is. Other companies might make do without onboarding like that, and it's fine to pick these instead. I don't see how Discourse's approach is problematic by design, though
Denis Defreyne
@ddfreyne
I think it becomes problematic when interviewing for multiple companies. I was in touch with ~15 companies for the job search this time around. Having a full-time job and doing tech challenges and 40–80 hours of extra paid work would add too much of a time burden
It’s possibly tricky from a legal/finance point of view in Germany as well, as you’d have to sign up to be a freelancer first (I know I had to)
In good news though, looks like I’ll have a new job soon — if all goes well!
Denis Defreyne
@ddfreyne
image.png
In other news, I looked through the Dart Sass API and found this.
This is good news, because it means that it should now be pretty simple to build a :dart_sass filter that does proper dependency tracking!
Christian Tietze
@DivineDominion
hmm so the deprecated Ruby Sass stuff might be replaced with that?
Denis Defreyne
@ddfreyne
I don’t think I’d replace it, but provide :dart_sass as an alternative to :sass. I don’t think it’s replaceable while keeping backwards compatibility.
Harald
@a4z
Awesome, was just stepping by to ask what the current state of the sass filter is
I am going now full pro in my web development and use that :-)
(just kidding, still have no clue what I do but I continue to use nanoc, and now I even build a new site)
but I guess, fastest would be to quickly add a own filter that assumes some dart/sass is in path and calls that ?
Harald
@a4z
So I made myself a sass filter, using simple dart sass, woks nice.
But how could I pipe the output of the sass filter as input to the yui_compressor so I get a compressed css written to disk ?
Christian Tietze
@DivineDominion
@a4z if the SASS filter produces foo.css, you can run a compression filter afterwards that takes foo.css and produces foo.css.min or whatever it does, I believe
so in a compile rule, you run SASS for item.identifier and then produce item.identifier.without_ext + '.css' and then use this as input for the compression filter
2 replies
Denis Defreyne
@ddfreyne
I’d love to take a look at your Dart Sass filter! I think the Nanoc distribution needs something like it
2 replies
Denis Defreyne
@ddfreyne
One more ticket related to Sass EOL: nanoc/nanoc#1545
I think an ideal Dart Sass filter would integrate with Node.js directly. It would avoid shelling out, because that’d likely incur a noticeable performance penalty
2 replies
Christian Tietze
@DivineDominion
The JS-ification of everything is really annoying :)
Denis Defreyne
@ddfreyne
It is. Not that I mind JavaScript/Node, but the ecosystem moves quite fast and it is tough to integrate with.
Harald
@a4z
sass is dart, that it compiles, or transpiles, to java script is a side effect.
You could do that also with ruby, like the asciidoctor people do that in some of their projects.
But I can understand, if you have a project with a legacy, changing the language gives a new green field, and possibilities. And going to dart was an interesting decision. I can understand that somehow, even if it's sad for people that still like Ruby
Harald
@a4z

somehow the search button on the doc page stopped working for me ....

is there a way to get html escaped strings (if that is the right name) from the content of a variable, like getting a http%3A%2F%2F instead of a http:// ?

Harald
@a4z
found it, html_escape
Achilleas Pipinellis
@axil_gitlab
@ddfreyne fya, I think Algolia stopped working in https://nanoc.app. I get the following error in the console: name: "AlgoliaSearchError", message: "Index nanoc does not exist",
Harald
@a4z
Are there any examples how to implement a search for static sites using https://lunrjs.com or http://elasticlunr.com ?
Just started reading the docs, and I understand - as usual when it comes to web tech - nothing, except it seems you need some kind of index ....
mkdocs seems to do have that implemented, but I dare switching to a tool I do not know at all ..