commit 42522b099f9eea99bd07159362c0a1bb5a4f8595 Author: Brendan Golden Date: Mon Aug 7 18:49:25 2023 +0100 Initial Commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3da48a6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,48 @@ +# Git config here +* text eol=lf + +############################################# +# Git lfs stuff + +# 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 + + +# Images +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text + + +# Video +*.mkv filter=lfs diff=lfs merge=lfs -text +*.mp4 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a79ea1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# IDE folder +/.idea + +# Microsoft office Lockfiles +~$* +*.tmp + +# Test files +test.* +*.test.* +/test + +# Output of compiling +/out +/build +/target + +# Dealing with BlueJ +*.bluej +*.out +*.ctxt + +# Dealing with Mac users +.DS_Store diff --git a/.md.toml b/.md.toml new file mode 100644 index 0000000..5e35fd9 --- /dev/null +++ b/.md.toml @@ -0,0 +1,50 @@ +# cargo smart-release bfom-lib -u --skip-publish -n -b patch +# cargo smart-release bfom -u --skip-publish -n -b patch + + +# How many spaces of indentation do you want? +# Defaults to 2 +# Optional +indentation = 2 + +# Optional +src = "./src" + +# Optional +dest= "./build" + +# html blocks you dont want to include in teh finished page +# Optional +html_void = [] + +[template] +# Templates are hjtml files that teh generated markdown is insereted into. +# There are several options on how this is carried out. + +# enable templating +# Optional +enable = true +# Set a base template +# Optional +general = "./src/template.html" + +# Priority of the templates to use, first one to match a markdown file is used. +# An Empty array below is also valid + +# general: use the general file specified above, if it exists. + +# ajacent: check if there is a template file with the same name as the markdown file ajacent to the markdown file. +# ./src/exasmple.md +# ./src/example.html + +# folder: a html file with the same name of the folder that the md resides in. +# ./src/blog/blog.html +# ./src/blog/post1.md + +# default: use an inbuilt html5 template + + +# Optional +order = ["ajacent", "general", "folder", "default"] + +blog_src = ["blog", "blog_uni"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..12af618 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Presentations for Compsoc +Presentations for Compsoc can be found in this repo. + +## Compiling +An example file is in [the src folder][1]. +Please follow this format. + +To compile them run ``nix run``. +Output will be in teh ``build`` folder. +These will be webpages that you can open in browser. +Up/down arrows progress it forwards/back. + +Instructions to install nix can be found over in the [nixos repo][2] +You need both nix and flakes enabled. + + +[1]: ./src/Example/Example.md +[2]: https://gitlab.skynet.ie/compsoc1/skynet/nixos#prep \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..a95d5ce --- /dev/null +++ b/flake.lock @@ -0,0 +1,141 @@ +{ + "nodes": { + "bfom": { + "inputs": { + "naersk": "naersk", + "nixpkgs": "nixpkgs_2", + "utils": "utils" + }, + "locked": { + "lastModified": 1683064728, + "narHash": "sha256-Xj0HWfvNBpMl0RNRLRwLMk4uvGIZKzR6Ntiq3qk0ne0=", + "owner": "silver_rust", + "repo": "bfom", + "rev": "be713b865e5ee822b72926f1b4a1e058be9ee721", + "type": "gitlab" + }, + "original": { + "owner": "silver_rust", + "repo": "bfom", + "type": "gitlab" + } + }, + "naersk": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1652722411, + "narHash": "sha256-FxzNgYiH9c91hUVAntcjrqY//KOTUPP2a4e8Wyuysxg=", + "owner": "nix-community", + "repo": "naersk", + "rev": "94beb7a3edfeb3bcda65fa3f2ebc48ec6b40bf72", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "naersk", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1652840887, + "narHash": "sha256-gEK4NNa4GwIgTZE63kt/4WTFAWRTJVSa30+h4ZjFh9U=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "52dc75a4fee3fdbcb792cb6fba009876b912bfe0", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1652840887, + "narHash": "sha256-gEK4NNa4GwIgTZE63kt/4WTFAWRTJVSa30+h4ZjFh9U=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "52dc75a4fee3fdbcb792cb6fba009876b912bfe0", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1691371061, + "narHash": "sha256-BxPbPVlBIoneaXIBiHd0LVzA+L4nmvFCNBU6TmQAiMM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5068bc8fe943bde3c446326da8d0ca9c93d5a682", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "bfom": "bfom", + "nixpkgs": "nixpkgs_3", + "utils": "utils_2" + } + }, + "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": { + "locked": { + "lastModified": 1652776076, + "narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "utils_2": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", + "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..d135416 --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + + description = "Skynet Presentations"; + + inputs = { + utils.url = "github:numtide/flake-utils"; + + # nix flake lock --update-input bfom + bfom.url = "gitlab:silver_rust/bfom"; + }; + + outputs = { self, nixpkgs, bfom, ... } @inputs: + let + pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs; + in { + # nix run + apps.x86_64-linux.default = { + type = "app"; + program = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom"; + }; + }; + +} diff --git a/src/Example/CompSoc_Logo_PNG.png b/src/Example/CompSoc_Logo_PNG.png new file mode 100644 index 0000000..053a503 --- /dev/null +++ b/src/Example/CompSoc_Logo_PNG.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff9b08e03e7555618bc08fa4ed04076ec835bc1525b1a8efc7ec7ac1c9548308 +size 279790 diff --git a/src/Example/Example.md b/src/Example/Example.md new file mode 100644 index 0000000..e36fc10 --- /dev/null +++ b/src/Example/Example.md @@ -0,0 +1,37 @@ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +title = "Title" +date = 2023-08-07 +slides = true +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + +### Title + +Subtitle + +---------------------------------------------------------------------------- + + + +Slide 1 + +---------------------------------------------------------------------------- + +Slide 2 + +---------------------------------------------------------------------------- + +Image 1 + +![image][1] + +---------------------------------------------------------------------------- + +Image 2 + + + +---------------------------------------------------------------------------- + + +[1]: ./CompSoc_Logo_PNG.png \ No newline at end of file