News for hackers. Stuff that matters.
Re:Comprehensive Python Cheatsheet (2018) by sametmax on Monday February 04, 2019 @07:05AM (#19075619)
Nice, but why does this needs JS to be rendered ?
Re:Comprehensive Python Cheatsheet (2018) by pizzaburek on Monday February 04, 2019 @07:25AM (#19075712)
Because it's rendered directly from README.md. That way it's easier for me, because I don't have to render it every time I make a change (I make a lot of little edits all the time), and project's Github page (https://github.com/gto76/python-cheatsheet) always has the same content as webpage.
Re:Comprehensive Python Cheatsheet (2018) by explainplease on Monday February 04, 2019 @09:12AM (#19076469)
It's quite annoying to have to enable JS for 3 different domains just to see something other than a blank page. It also prevents non-JS browsers and retrievers from seeing content.

If you were to use e.g. org-mode for the source document, you could easily export to HTML automatically when the file is saved.

You could also easily use a git hook to run e.g. pandoc to convert md to HTML automatically.

There are many ways of automatically exporting HTML when you save the md source file. Please use one.

Re:Comprehensive Python Cheatsheet (2018) by pizzaburek on Monday February 04, 2019 @09:25AM (#19076552)
Will look into it, thanks for info.
Re:Comprehensive Python Cheatsheet (2018) by explainplease on Monday February 04, 2019 @09:29AM (#19076571)
Thanks for being open to the idea (unlike the downvoters). HN is so tiresome.
Re:Comprehensive Python Cheatsheet (2018) by bo1024 on Monday February 04, 2019 @09:57AM (#19076792)
I would also encourage the author and others to export static documents to HTML. As a user, I really appreciate it.
Re:Comprehensive Python Cheatsheet (2018) by klohto on Monday February 04, 2019 @11:20AM (#19077544)
Why not use static site generator and re-run on content update?
Re:Comprehensive Python Cheatsheet (2018) by sametmax on Monday February 04, 2019 @08:38AM (#19076243)
Thanks.