summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-10 09:37:03 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-10 09:37:03 +0800
commite190d90594b17fb16849a13198af3f5152414e4c (patch)
treec39d24de8f5c7e7ff218faa6d00e87ab8579fe9b
parent4af01dcede350f1b682ba7d76681dd87968f1885 (diff)
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.
-rw-r--r--.gitignore6
-rwxr-xr-x.gitmodules4
-rwxr-xr-xsetup.sh6
3 files changed, 9 insertions, 7 deletions
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