commit 2e390cb979f2969a847ad6ebc512bc23badeead0 Author: Brendan Golden Date: Fri Mar 7 13:10:40 2025 +0000 Initial commit of the template diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml new file mode 100644 index 0000000..a29597e --- /dev/null +++ b/.forgejo/workflows/push.yaml @@ -0,0 +1,38 @@ +name: On_Push + +on: + push: + branches: + - 'main' + paths: + - flake.* + - src/**/* + - .forgejo/**/* + +jobs: + build: + # build it using teh base nixos system, helps with caching + runs-on: nix + steps: + # get the repo first + - uses: https://code.forgejo.org/actions/checkout@v4 + - name: "Get LFS objects" + uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet/get_lfs@v4 + with: + repository: ${{ gitea.repository }} + ref_name: ${{ gitea.ref_name }} + - name: "Build it locally" + run: nix build --verbose + + # deploy it upstream + deploy: + # runs on teh default docker container + runs-on: docker + needs: [ build ] + steps: + - name: "Deploy to Skynet" + uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet@v2 + with: + input: 'skynet_website_ABCD' + token: ${{ secrets.API_TOKEN_FORGEJO }} + \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7cdadf9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,54 @@ +# Documents +*.pdf filter=lfs diff=lfs merge=lfs -text +*.doc filter=lfs diff=lfs merge=lfs -text +*.docx filter=lfs diff=lfs merge=lfs -text + + +# Excel +*.xls filter=lfs diff=lfs merge=lfs -text +*.xlsx filter=lfs diff=lfs merge=lfs -text +*.xlsm filter=lfs diff=lfs merge=lfs -text + + +# Powerpoints +*.ppt filter=lfs diff=lfs merge=lfs -text +*.pptx filter=lfs diff=lfs merge=lfs -text +*.ppsx filter=lfs diff=lfs merge=lfs -text + + +# Images +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text + +# Fonts +*.ttf filter=lfs diff=lfs merge=lfs -text +*.eot filter=lfs diff=lfs merge=lfs -text +*.woff filter=lfs diff=lfs merge=lfs -text +*.woff2 filter=lfs diff=lfs merge=lfs -text + +# Video +*.mkv filter=lfs diff=lfs merge=lfs -text +*.mp4 filter=lfs diff=lfs merge=lfs -text +*.wmv filter=lfs diff=lfs merge=lfs -text + + +# Misc +*.zip filter=lfs diff=lfs merge=lfs -text + + +# ET4011 +*.cbe filter=lfs diff=lfs merge=lfs -text +*.pbs filter=lfs diff=lfs merge=lfs -text + + +# Open/Libre office +# from https://www.libreoffice.org/discover/what-is-opendocument/ +*.odt filter=lfs diff=lfs merge=lfs -text +*.ods filter=lfs diff=lfs merge=lfs -text +*.odp filter=lfs diff=lfs merge=lfs -text +*.odg filter=lfs diff=lfs merge=lfs -text + + +# QT +*.ui filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eccad86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# IDE folder +/.idea + +# Microsoft office Lockfiles +~$* +*.tmp + +# Test files +test.* +*.test.* +/test + +# Output of compiling +/out +/build +/target +/cmake-build-debug +# for QT, both as single directory and as subfolders +/build-*-* +/*/build-*-* + +# Dealing with BlueJ +*.bluej +*.out +*.ctxt + +# Dealing with Mac users +.DS_Store + +# Nix +result +/result diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3283b25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2024 Skynet + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..aaacd06 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Template for hosting old sites +## Instructions + +1. Fork this repo . +2. Put the website into the ``src`` folder. + * Commit at this point +3. Do a (global) find and replace for ``ABCD`` and ``EFGH``. + * ``ABCD``: Earliest year the version of the site existed + * ``ABCD``: Latest year the version of the site existed + * Use Wayback Machine to figure out the start/end. + * Previous domains were: + * ``csn.ul.ie`` + * ``skynet.ie`` +4. Set the readme to be the below. + * See for how it should look. + * Feel free to expand it out as ye like + +# ABCD - EFGH +This is roughly what skynet.ie looked like from July ABCD to Oct EFGH. +It is now packaged up and should be available under . \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..2416e36 --- /dev/null +++ b/flake.lock @@ -0,0 +1,59 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1741037377, + "narHash": "sha256-SvtvVKHaUX4Owb+PasySwZsoc5VUeTf1px34BByiOxw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "02032da4af073d0f6110540c8677f16d4be0117f", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..28b7af2 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "Skynet main site - ABCD to EFGH"; + + inputs = { + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages."${system}"; + in rec { + + # `nix build` + defaultPackage = pkgs.stdenv.mkDerivation { + name = "skynet-website_ABCD"; + src = self; + installPhase = "mkdir -p $out; cp -R src/* $out"; + }; + } + ); +} \ No newline at end of file diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29