News for hackers. Stuff that matters.
Re:Tiny websites are great by cyrialize on Tuesday May 19, 2020 @10:58AM (#23235558)
I do exactly what you recommend.

My website, https://cyrialize.dev/, is hosted on Neocities. I used jekyll to create it and I use water.css which I found on CSS Bed (https://www.cssbed.com/). The Neocities gem is VERY useful.

My process is super simple, it's basically:

- Make changes

- Commit & Push

- jekyll build

- neocities push _site/

Re:Tiny websites are great by StavrosK on Tuesday May 19, 2020 @11:19AM (#23235787)
I agree with you so much, I even removed the push step and have Gitlab CI do it for me:

https://gitlab.com/stavros/neocities-gitlab-ci-demo

Re:Tiny websites are great by j4yav on Wednesday May 20, 2020 @09:35AM (#23246618)
Nice! You can actually get even a bit simpler with it. I am working on contributing a template for Neocities to GitLab that does not require even a subscription account: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32640

I'm using it to deploy my own site (which happens to be subscription, but that isn't required): https://metaluna.io/

Re:Tiny websites are great by StavrosK on Wednesday May 20, 2020 @09:41AM (#23246658)
Oh that would be fantastic! Where will this template show up? I didn't know Gitlab had CI templates.

How do you upload files without WebDAV? As far as I know, there's no API.

BTW I'm not sure if it still exists, but they had a lifetime supporter account, where you can get a lifetime subscription for $100 in Bitcoin. I got it to support the effort, though I don't really use it, but a bunch of Terabytes of bandwidth and 50 GB of hosting space won't go to waste.

Re:Tiny websites are great by j4yav on Wednesday May 20, 2020 @09:51AM (#23246748)
Once merged and in a release, it will show up on the new project page, after selecting "create from template": https://gitlab.com/projects/new

This uses their official CLI RubyGem along with the token you can get through the web interface.

Re:Tiny websites are great by samanthalee233 on Wednesday May 20, 2020 @12:34PM (#23248876)
In case you need some more documentation around these templates, here is our relevant docs page: https://docs.gitlab.com/ee/ci/yaml/#workflowrules-templates , sharing as a community advocate at GitLab.
Re:Tiny websites are great by j4yav on Wednesday May 20, 2020 @01:06PM (#23249228)
Not those kinds of templates :)
Re:Tiny websites are great by StavrosK on Wednesday May 20, 2020 @09:54AM (#23246780)
Well that's fantastic, great job. Will it be uploading a specific directory, like in mine? That would be nice since most people keep other stuff in the repo.
Re:Tiny websites are great by j4yav on Wednesday May 20, 2020 @10:04AM (#23246884)
Yes, it will upload the public folder only. You can see the details of how it works at https://gitlab.com/pages/neocities (I realize now this would have been a better link to share than the other one).
Re:Tiny websites are great by StavrosK on Wednesday May 20, 2020 @10:39AM (#23247350)
Oh, haha, yes, that's much better. Great work, thank you!
Re:Tiny websites are great by cyrialize on Tuesday May 19, 2020 @02:43PM (#23238490)
Holy cow, I never thought about doing that. I think there's a similar thing in Github, I'll definitely check it out.