From e190d90594b17fb16849a13198af3f5152414e4c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Nov 2025 09:37:03 +0800 Subject: Replace Git submodule with setup script for documents The .gitmodules file has been removed and replaced with a setup.sh script that handles cloning the documents repository. This provides more flexibility than Git submodules while achieving similar results. The .gitignore has been updated to reflect this change. --- .gitignore | 6 +++--- .gitmodules | 4 ---- setup.sh | 6 ++++++ 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100755 .gitmodules create mode 100755 setup.sh diff --git a/.gitignore b/.gitignore index 6a1cfd7..f3f6ded 100644 --- a/.gitignore +++ b/.gitignore @@ -23,9 +23,9 @@ **/target/ -################## -### SUBMODULES ### -################## +################# +### DOCUMENTS ### +################# # JustEnoughVCS Docs /docs/Documents diff --git a/.gitmodules b/.gitmodules deleted file mode 100755 index af0369d..0000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "built-in-documents"] - path = docs/Documents - url = https://github.com/JustEnoughVCS/Documents - branch = main diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..ac4ecb8 --- /dev/null +++ b/setup.sh @@ -0,0 +1,6 @@ +# Setup documents repo +if [ -d "docs/Documents/.git" ]; then + cd docs/Documents && git pull origin main && cd - +else + git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents +fi -- cgit