TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ivy: a minimalist static site generator in Python

164 pointsby dmlhllndalmost 8 years ago

18 comments

cvwrightalmost 8 years ago
Ivy looks great. That said, every time I see a new SSG in Python, I get all excited about it for a minute. Then I remember this bit of advice: &quot;Just use Jekyll&quot;.<p>&gt; Jekyll is not better than the rest for any fundamental design reason; it’s better because it’s enormously popular and therefore excels in the long tail of details.<p>&gt; ...<p>&gt; If, like me, you secretly believe that everything is better if it’s written in Python, I still suggest you start with Jekyll (which is done in Ruby). In my experience, using Jekyll does not require writing or reading a single line of Ruby.<p><a href="http:&#x2F;&#x2F;www.cs.cornell.edu&#x2F;~asampson&#x2F;blog&#x2F;jekyll.html" rel="nofollow">http:&#x2F;&#x2F;www.cs.cornell.edu&#x2F;~asampson&#x2F;blog&#x2F;jekyll.html</a><p>This matches my own experience pretty well.
评论 #14877497 未加载
评论 #14877713 未加载
评论 #14878321 未加载
评论 #14877602 未加载
评论 #14876789 未加载
bgrohmanalmost 8 years ago
For a <i>minimalist</i> static site generator, I think it&#x27;s hard to beat just writing your own that does exactly what you want and nothing else. In a hundred lines or less of Python, you can have your minimal generator, know exactly how it works and how to extend it, and be able to refresh your memory on conventions&#x2F;configuration with thirty seconds of scrolling through the source.
评论 #14878943 未加载
评论 #14879766 未加载
fiatjafalmost 8 years ago
<p><pre><code> mysite&#x2F; site.py # site configuration file ext&#x2F; # extensions directory for plugins inc&#x2F; # includes directory for menus, etc. lib&#x2F; # library directory for themes out&#x2F; # output directory for html files res&#x2F; # resources directory for static assets src&#x2F; # source directory for text files </code></pre> Isn&#x27;t this way too messy?<p>What are the advantages of this over the other 1000000 static site generators?
评论 #14875503 未加载
shalabhcalmost 8 years ago
This is public domain, which is very generous, but apparently problematic. E.g. see comments here <a href="https:&#x2F;&#x2F;www.red-gate.com&#x2F;simple-talk&#x2F;opinion&#x2F;geek-of-the-week&#x2F;dr-richard-hipp-geek-of-the-week&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.red-gate.com&#x2F;simple-talk&#x2F;opinion&#x2F;geek-of-the-wee...</a>:<p>&quot;If I had known as much about copyright in 2001 as I know now, I probably would have gone with something like the Apache license. Live and learn…&quot;
评论 #14878924 未加载
评论 #14876478 未加载
krickalmost 8 years ago
No disrespect, but, seriously, given that project was created 9 months ago, &quot;minimalistic static site generator&quot; isn&#x27;t really sufficient project description, let alone marketing slogan. What I want to know is why to use it over<p>* Jekyll<p>* Hakyll<p>* Hugo<p>* Pelican<p>* Sculpin<p>* ...
alpbalmost 8 years ago
Try Hugo if you do not care about the language it&#x27;s written in. It has a pretty vibrant community. <a href="https:&#x2F;&#x2F;gohugo.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gohugo.io&#x2F;</a>
评论 #14878373 未加载
评论 #14877383 未加载
noir_lordalmost 8 years ago
<a href="http:&#x2F;&#x2F;mulholland.xyz&#x2F;docs&#x2F;ivy&#x2F;themes.html" rel="nofollow">http:&#x2F;&#x2F;mulholland.xyz&#x2F;docs&#x2F;ivy&#x2F;themes.html</a> is gorgeous on FF&#x2F;Android.<p>I might replace my static blog script with this :)
评论 #14875368 未加载
ue_almost 8 years ago
I don&#x27;t mean to detract from Ivy, but...<p>As an interesting aside, the fact that you can organise your pages in a hierarchy reminds me of cat-v&#x27;s &quot;werc&quot; website framework[0]. It&#x27;s not a static site generator, but it will read the directory and file tree into a navigation menu, so you can navigate the tree using a sidebar. It will render pages using markdown on the fly.<p>Perhaps the &quot;killer feature&quot; is that you can run multiple subdomains using one instance. If you configure your web server correctly, a request to x.y.com will serve the website stored in the x.y.com directory etc.<p>It&#x27;s also very small and extensible.<p>[0] <a href="http:&#x2F;&#x2F;werc.cat-v.org" rel="nofollow">http:&#x2F;&#x2F;werc.cat-v.org</a>
评论 #14875501 未加载
jwilkalmost 8 years ago
Poor name choice:<p><a href="https:&#x2F;&#x2F;ant.apache.org&#x2F;ivy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ant.apache.org&#x2F;ivy&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;robpike&#x2F;ivy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;robpike&#x2F;ivy</a>
评论 #14876693 未加载
评论 #14876719 未加载
评论 #14877519 未加载
评论 #14876416 未加载
tedmistonalmost 8 years ago
Looks like a cool project. What made you choose to build this vs use an existing one like Pelican, Nikola, or Lektor?<p>Have you thought about integrating a bundler like Webpack or something similar, and also support for Sass?
评论 #14875491 未加载
otterproalmost 8 years ago
I&#x27;ve used Pelican before and I&#x27;m currently using Jekyll, but this looks interesting enough to try on a small blog&#x2F;project, and I like what I see. I wish it were more blog-oriented, or have a blog plugin, so it makes creating&#x2F;managing blogs easier.
krosaenalmost 8 years ago
Cool!<p>Would appreciate a motivation section in the readme, specifically whether this addresses needs better than others (especially Lektor which seems aimed at the same use case).<p>Or not, it&#x27;s your project, can just be because you wanna :)
type0almost 8 years ago
I like that it has the syntex support which seem to fix some of Markdown faults related to HTML
评论 #14875603 未加载
mrkgnaoalmost 8 years ago
I really think the only thing differentiating these static site generators from each other is how pretty the demo site&#x27;s CSS is. :&#x2F;<p>Ivy looks great, though.
git-pullalmost 8 years ago
Consider creating a page to put on on website that compares and contrasts Ivy compared to other static site generators. Link to via Readme<p>A similar conceptual example: <a href="https:&#x2F;&#x2F;vuejs.org&#x2F;v2&#x2F;guide&#x2F;comparison.html" rel="nofollow">https:&#x2F;&#x2F;vuejs.org&#x2F;v2&#x2F;guide&#x2F;comparison.html</a><p>Mention whether your SSG supports reStructuredtext, markdown, etc.
nine_kalmost 8 years ago
The way --watch is implemented is pretty, mmm, crude.<p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;597962&#x2F;223424" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;597962&#x2F;223424</a> lists saner alternatives for the major platforms.
euskealmost 8 years ago
What I think would be awesome is a html &quot;rename&quot; tool, which is to rewrite all the relative urls and filenames in HTML&#x2F;css files when changing their location. Does anyone know?
ateesdalejralmost 8 years ago
Ah this is quite interesting... I was working on making my own one of these. I might just use this instead!
评论 #14877397 未加载
评论 #14882117 未加载