Transform member's data into a git submodule instead of a symlink to another project in the parent directory #8

Merged
deborah.jean merged 6 commits from submodulisation into master 2025-11-06 14:49:25 +01:00
9 changed files with 21 additions and 9 deletions

4
.gitmodules vendored Normal file
View File

@@ -0,0 +1,4 @@
[submodule "members-data"]
path = members-data
url = ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_private.git
branch = master

View File

@@ -9,12 +9,15 @@ Requirements :
### Install ### Install
1. Clone or fork this repo: `git clone ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_public.git` 1. Clone or fork this repo INCLUDING its submodule: `git clone --recurse-submodules ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_public.git`
2. Clone or fork the private repo containing members data in the same folder that SiteWebAstrolabe_public : `git clone ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_private.git`
3. `cd` into the project directory (SiteWebAstrolabe_public) and run `npm install` 3. `cd` into the project directory (SiteWebAstrolabe_public) and run `npm install`
4. Once all the dependencies are installed run `npm start` 4. Once all the dependencies are installed run `npm start`
5. Open your browser at `http://localhost:8080` and away you go! 5. Open your browser at `http://localhost:8080` and away you go!
If you don't have the members data (page /equipe), you may have done a simple (non-recursive) clone. In this case, populate with member data by running `git submodule update --init --recursive`. Also, check that you do have the rights for the https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_private repository.
If you need to get the latest commits of the SiteWebAstrolabe_private repo, you can do a `git submodule update --remote`.
### Deploy ### Deploy
1. Copy paste deploy.js file in two new files `deploy-preprod.js`and `deploy-prod.js` 1. Copy paste deploy.js file in two new files `deploy-preprod.js`and `deploy-prod.js`

1
members-data Submodule

Submodule members-data added at 68ef49b2a9

View File

@@ -52,13 +52,13 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe.git" "url": "git+https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public.git"
}, },
"keywords": [], "keywords": [],
"author": "Yves Gatesoupe", "author": "Yves Gatesoupe",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe/issues" "url": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public/issues"
}, },
"homepage": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe" "homepage": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public"
} }

View File

@@ -1 +1 @@
../../../SiteWebAstrolabe_private/profiles ../../members-data/profiles/

View File

@@ -1 +1 @@
../../SiteWebAstrolabe_private/members ../members-data/members/

View File

@@ -48,7 +48,7 @@ https://www.6clones.fr/
__***Propriété Intellectuelle***__ __***Propriété Intellectuelle***__
Le site et le code source de ce site sont librement réuilisable sous [licence MIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe/src/branch/master/LICENSE.txt) sauf les dossiers suivants et leur contenu : Le site et le code source de ce site sont librement réuilisable sous [licence MIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public/src/branch/master/LICENSE.txt) sauf les dossiers suivants et leur contenu :
* src/members * src/members
* src/images/astrolabe * src/images/astrolabe

View File

@@ -23,7 +23,7 @@ Nous souhaitons donc mettre à disposition notre site pour une réutilisation et
N'hésitez donc pas à réutiliser notre code, et si c'est le cas nous apprécierions que vous nous le disiez via notre [formulaire de contact](#contact-form) N'hésitez donc pas à réutiliser notre code, et si c'est le cas nous apprécierions que vous nous le disiez via notre [formulaire de contact](#contact-form)
Pour obtenir le code de notre site, vous pouvez le récupérer via notre [repo GIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe). Pour obtenir le code de notre site, vous pouvez le récupérer via notre [repo GIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public).
<br></br> <br></br>

View File

@@ -82,6 +82,10 @@ a:not([class]):visited {
margin-left: 1rem; margin-left: 1rem;
} }
.box-flex {
display: flex;
}
.align-center { .align-center {
align-items: center; align-items: center;
} }