diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:37:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:37:03 +0800 |
| commit | e190d90594b17fb16849a13198af3f5152414e4c (patch) | |
| tree | c39d24de8f5c7e7ff218faa6d00e87ab8579fe9b | |
| parent | 4af01dcede350f1b682ba7d76681dd87968f1885 (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-- | .gitignore | 6 | ||||
| -rwxr-xr-x | .gitmodules | 4 | ||||
| -rwxr-xr-x | setup.sh | 6 |
3 files changed, 9 insertions, 7 deletions
@@ -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 |
