Ha they are actually using the same template I am ...
# tornadofx
n
Ha they are actually using the same template I am currently using for a prototype of our tornadofx website I hope I can share some details soon
a
That's great. Let me know if you need some help. I an not an expert but have learned a thing or two in the process of patching the theme 🙂
n
Ah nice... well i can push the branch to the github project and you can have a look...I am actually using Hugo for the site generation... I the future the site will be automatically buld everytime there is a change in the guide, I also plan on integrating the changelog and also embed the kdoc much like kotlin.io
a
A new branch sounds wonderful. openjfx.io uses hugo as well. The website is hosted on github and the javadoc is just a separate repository on github. May be we could do something similar for TFX unless you have a better idea 😉
n
i guess nobody made a static site generator using kotlin's html-dsl yet ?
e
@Nikky There are already pretty complete HTML DSLs out there, so that would be a very nice starting point at least. A Hugo clone in Kotlin DSL ... that I would use!
n
for this to be really useful you need to be ale to just drop a page.html.kts file somewhere, but still be able to use some data like, which relative path it is or which page, application name, who knows what.. can you do something like
expect val something: Data
at the top of a script ? or maybe just use delegates and maybe koin's
inject()
e
I wish I had time to play with that. Form components etc would be really sweet.
w
@Nikky I have been doing this. I have not gotten to the part where it is a library that others can use, but my whole site is written in it, and I wrote extensions for kotlin code snippets and slideshows. Code : https://github.com/wakingrufus/website site: https://wakingrufus.neocities.org
âž• 1
👀 1
n
it seems you made a mix of Html DSL and code generator for the kotlin code snippets, cool
but once you include the kotlin compiler oyu could probably reuse parts of that to parse a .kts and add syntax coloring, i will definitl be watching this if i attempt to do my own.. probably once 1.3-rc comes out due to projected changes to the scripting (compiler)
w
I wanted to try to use kotlin poet to build the kotlin code snippets, but there was no way to override the way it outputs to add the html markup and syntax css
but that script parsing idea is cool. Ill have to look into that