From f63b72a0a7f61ddfc57172825f40db23a8aae9f2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 2 Jan 2025 17:09:40 +0000 Subject: [PATCH] feat: abandon the use of the git information in the repo itself --- .githooks/post-checkout | 3 --- .githooks/post-commit | 3 --- .githooks/post-merge | 3 --- .githooks/pre-commit | 4 ---- .githooks/pre-push | 3 --- _git.tar.gz | 3 --- flake.nix | 4 +--- mkdocs.yml | 8 ++++---- 8 files changed, 5 insertions(+), 26 deletions(-) delete mode 100755 .githooks/post-checkout delete mode 100755 .githooks/post-commit delete mode 100755 .githooks/post-merge delete mode 100755 .githooks/pre-commit delete mode 100755 .githooks/pre-push delete mode 100644 _git.tar.gz diff --git a/.githooks/post-checkout b/.githooks/post-checkout deleted file mode 100755 index ca7fcb4..0000000 --- a/.githooks/post-checkout +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } -git lfs post-checkout "$@" diff --git a/.githooks/post-commit b/.githooks/post-commit deleted file mode 100755 index 52b339c..0000000 --- a/.githooks/post-commit +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-commit' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } -git lfs post-commit "$@" diff --git a/.githooks/post-merge b/.githooks/post-merge deleted file mode 100755 index a912e66..0000000 --- a/.githooks/post-merge +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } -git lfs post-merge "$@" diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100755 index 99c93f8..0000000 --- a/.githooks/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -tar czf _git.tar.gz --exclude .git/lfs .git -git add _git.tar.gz diff --git a/.githooks/pre-push b/.githooks/pre-push deleted file mode 100755 index 0f0089b..0000000 --- a/.githooks/pre-push +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } -git lfs pre-push "$@" diff --git a/_git.tar.gz b/_git.tar.gz deleted file mode 100644 index 21dcb3b..0000000 --- a/_git.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3f36679e432c85bbd2f13f1ba064a5e7ceb8dbb2e20f9a469d9bb534b79f628 -size 401139 diff --git a/flake.nix b/flake.nix index 31415bf..b6401ae 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,6 @@ packages = with pkgs.python3Packages; [ mkdocs mkdocs-material - mkdocs-git-authors-plugin - mkdocs-git-revision-date-localized-plugin ]; in { formatter = alejandra.defaultPackage.${system}; @@ -28,7 +26,7 @@ name = "skynet-wiki"; src = self; buildInputs = packages; - buildPhase = "tar -zxf _git.tar.gz && mkdocs build"; + buildPhase = "mkdocs build"; installPhase = "mkdir -p $out; cp -R site/* $out;"; }; diff --git a/mkdocs.yml b/mkdocs.yml index 0fd35f5..35c0d7a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -25,10 +25,10 @@ theme: view: material/eye plugins: - search - - git-authors: - show_email_address: false - - git-revision-date-localized: - enable_creation_date: true +# - git-authors: +# show_email_address: false +# - git-revision-date-localized: +# enable_creation_date: true markdown_extensions: - tables - pymdownx.caret