From c9243056e9913b4765a74b1f44feaa6bbc306e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20Fran=C3=A7ois?= Date: Fri, 26 Apr 2024 21:51:54 +0200 Subject: [PATCH] Initial commit --- .github/workflows/build-and-deploy.yml | 66 ++++++++++++++++++++++++++ .gitignore | 14 ++++++ .gitlab-ci.yml | 31 ++++++++++++ .ruby-version | 1 + Gemfile | 41 ++++++++++++++++ LICENSE | 21 ++++++++ _config.yml | 6 +++ _posts/.gitkeep | 1 + activites.md | 17 +++++++ assets/css/custom.css | 3 ++ contact.md | 9 ++++ images/README.md | 2 + index.md | 8 ++++ 13 files changed, 220 insertions(+) create mode 100644 .github/workflows/build-and-deploy.yml create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 .ruby-version create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 _config.yml create mode 100644 _posts/.gitkeep create mode 100644 activites.md create mode 100644 assets/css/custom.css create mode 100644 contact.md create mode 100644 images/README.md create mode 100644 index.md diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 0000000..09c2986 --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -0,0 +1,66 @@ +# This config is inspired by https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml + +name: Deploy Scribouilli site to GitHub Pages with a custom theme + +on: + push: + repository_dispatch: + types: atelier-scribouilli + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + # cf. https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable + # Run job only on default branch (as $default_branch variable only works on + # workflow templates) + if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 # Per recommandation https://github.com/ruby/setup-ruby?tab=readme-ov-file#versioning + with: + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 1 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Install dependencies + run: bundle install + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build + env: + JEKYLL_ENV: production + - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + # cf. https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable + # Run job only on default branch (as $default_branch variable only works on + # workflow templates) + if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9daf6a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata +# Ignore folders generated by Bundler +.bundle/ +vendor/ + +# Nous voulons que le site puisse se mettre à jour, notamment si le thème est mis à jour +# Le thème est fourni dans le Gemfile sous la forme d'un repo git et de sa branche "main" +# Un Gemfile.lock bloque le commit de ce thème au commit du moment de la génération du +# fichier Gemfile.lock +# Donc, nous choisissons de ne pas versionner le Gemfile.lock +Gemfile.lock \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3a7e46b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +default: + image: ruby:3.2.2 + cache: + - key: + files: + - Gemfile.lock + paths: + - vendor/bundle + before_script: + - gem install bundler + - bundle config set --local path "vendor/bundle" + - bundle install + +stages: + - deploy + + +pages: + stage: deploy + variables: + JEKYLL_ENV: production + LC_ALL: C.UTF-8 + script: + - bundle exec jekyll build -d public + - gzip -k -9 $(find public -iname '*.html' -o -iname '*.css' -o -iname '*.js' -o -iname '*.json') || true + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..be94e6f --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.2 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..f875cf4 --- /dev/null +++ b/Gemfile @@ -0,0 +1,41 @@ +source "https://rubygems.org" + +gem "jekyll", "~> 4.3.2" + +# Jekyll theme for Scribouilli +gem "mimoza", git: "https://github.com/Scribouilli/mimoza.git", branch: "main" + +group :jekyll_plugins do + # Handle redirections + gem "jekyll-redirect-from", "~> 0.16" + + # Atom feed on Jekyll posts + gem "jekyll-feed", "~> 0.17" + + # Pagination + gem "jekyll-paginate-v2", "~> 3.0" + + # SEO tags + gem "jekyll-seo-tag", "~> 2.8" + + # Generate a sitemap + gem "jekyll-sitemap", "~> 1.4" + + # Enable Jekyll to read custom YAML front matter + gem "jekyll-optional-front-matter", "~> 0.3" + + # Add default layouts to pages and posts + gem "jekyll-default-layout", "~> 0.1.5" + + # Generate default titles from headings + gem "jekyll-titles-from-headings", "~> 0.5.3" +end + +group :development do + gem "dotenv", "~> 2.7" + gem "webrick", "~> 1.7" +end + +group :test do + gem 'rspec' +end diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..76ca178 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Scribouilli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..b7b1adf --- /dev/null +++ b/_config.yml @@ -0,0 +1,6 @@ +collections: + projects: + output: true +plugins: + - jekyll-feed +theme: mimoza diff --git a/_posts/.gitkeep b/_posts/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/_posts/.gitkeep @@ -0,0 +1 @@ + diff --git a/activites.md b/activites.md new file mode 100644 index 0000000..c5af0b5 --- /dev/null +++ b/activites.md @@ -0,0 +1,17 @@ +--- +title: Activités +order: 1 +--- + +L’association cherche à œuvrer en collaboration avec des organismes publics, des organisations privées et des individus. + +## Nos activités + +A titre indicatif, les activités commerciales possibles sont (liste non-exhaustive) : + +- Accompagnement à la **création de structures** juridiques +- Conception, développement et accompagnement de **produits innovants** +- **Formation** d’enfants et d’adultes, par exemple dans les domaines de la communication non-violente, méthodologie lean et approche agile, les relations aux animaux, l’alimentation, la gestion de budget familial ou d’entreprise… +- Projets à **impact environnemental positif** +- Projets à **impact social positif** +- Vente d’objets ou de denrées alimentaires, avec **impact humain ou environnemental positif** diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..cfa99ef --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,3 @@ +:root { + --couleur-primaire : #2a6442; +} diff --git a/contact.md b/contact.md new file mode 100644 index 0000000..f5a4c3f --- /dev/null +++ b/contact.md @@ -0,0 +1,9 @@ +--- +title: Contact +order: 1 +--- + +L'Échappée Belle est actuellement composée de 6 membres. + +Pour nous contacter : [coucou@lechappeebelle.team](mailto:coucou@lechappeebelle.team) +` diff --git a/images/README.md b/images/README.md new file mode 100644 index 0000000..342b9a6 --- /dev/null +++ b/images/README.md @@ -0,0 +1,2 @@ +Dans ce dossier, vous pouvez **glisser vos images** ou les ajouter via le bouton "Add file" -> "Upload file" en haut à droite.\\ +Ensuite, vous pouvez faire un clic droit **sur l'image** pour récupérer son lien et ensuite l'afficher en Markdown. diff --git a/index.md b/index.md new file mode 100644 index 0000000..7e69bb7 --- /dev/null +++ b/index.md @@ -0,0 +1,8 @@ +--- +title: Accueil +order: 0 +--- + +# L'Échappée Belle + +L'Échappée Belle est **une association** qui a pour objet de soutenir et promouvoir des activités et des personnes qui travaillent autour de **valeurs de consentement, de bien commun et de prendre soin des personnes et de l’environnement**.