Initial Commit

This commit is contained in:
silver 2023-08-07 18:49:25 +01:00
commit 42522b099f
8 changed files with 344 additions and 0 deletions

48
.gitattributes vendored Normal file
View file

@ -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

24
.gitignore vendored Normal file
View file

@ -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

50
.md.toml Normal file
View file

@ -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"]

18
README.md Normal file
View file

@ -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

141
flake.lock Normal file
View file

@ -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
}

23
flake.nix Normal file
View file

@ -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";
};
};
}

BIN
src/Example/CompSoc_Logo_PNG.png (Stored with Git LFS) Normal file

Binary file not shown.

37
src/Example/Example.md Normal file
View file

@ -0,0 +1,37 @@
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title = "Title"
date = 2023-08-07
slides = true
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
### Title
Subtitle
----------------------------------------------------------------------------
<!-- HTML comment -->
Slide 1
----------------------------------------------------------------------------
Slide 2
----------------------------------------------------------------------------
Image 1
![image][1]
----------------------------------------------------------------------------
Image 2
<img src="./CompSoc_Logo_PNG.png" height="100"></img>
----------------------------------------------------------------------------
[1]: ./CompSoc_Logo_PNG.png