From 7a21701ddbb899adbda502156119f16db5bfdb7e Mon Sep 17 00:00:00 2001 From: Matteo Granzotto Date: Thu, 5 Feb 2026 18:49:47 +0100 Subject: [PATCH 1/2] feat(#76): build site wip --- .devcontainer/Dockerfile | 13 ++ .devcontainer/devcontainer.json | 23 ++++ .devcontainer/docker-compose.yml | 9 ++ .github/workflows/jekyll.yml | 47 +++++++ .gitignore | 2 + Gemfile | 11 +- Gemfile.lock | 213 ++++++++++--------------------- _config.yml | 1 + index.md | 2 +- partners.md | 21 ++- 10 files changed, 183 insertions(+), 159 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/docker-compose.yml create mode 100644 .github/workflows/jekyll.yml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..8482c57 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM ruby:3.2-alpine + +RUN apk add --no-cache \ + build-base \ + libstdc++ \ + git \ + gcompat + +RUN gem install bundler jekyll + +WORKDIR /workspace + +CMD ["sh"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0aaef88 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,23 @@ +{ + "name": "MUG Site Dev Container", + "dockerComposeFile": "docker-compose.yml", + "service": "app", + "workspaceFolder": "/workspace", + "postCreateCommand": "bundle install", + "forwardPorts": [ + 4000 + ], + "customizations": { + "vscode": { + "extensions": [ + "ms-azuretools.vscode-docker", + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "ms-vscode-remote.remote-containers", + "anthropic.claude-code" + ] + } + }, + "updateRemoteUserUID": true +} \ No newline at end of file diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 0000000..156c7db --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,9 @@ +services: + app: + build: + context: . + dockerfile: Dockerfile + volumes: + - ..:/workspace:cached + command: sleep infinity + working_dir: /workspace diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..f9ff147 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,47 @@ +name: Deploy Jekyll site to Pages + +on: + push: + branches: ["feature/76"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + deploy: + 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 index e62941b..0fa5dfd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ _site .sass-cache .jekyll-metadata node_modules +.DS_Store +.claude \ No newline at end of file diff --git a/Gemfile b/Gemfile index 4f1f30c..1f9e30f 100644 --- a/Gemfile +++ b/Gemfile @@ -9,17 +9,18 @@ source "https://rubygems.org" # This will help ensure the proper Jekyll version is running. # Happy Jekylling! -# This is the default theme for new Jekyll sites. You may change this to anything you like. -gem "minima", "~> 2.0" +# Fix for Ruby 3.2 compatibility - use Jekyll 4.x instead of github-pages +gem "jekyll", "~> 4.3" +gem "minima", "~> 2.5" -# If you want to use GitHub Pages, remove the "gem "jekyll"" above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -gem "github-pages", group: :jekyll_plugins +# GitHub Pages compatible plugins +gem "github-pages-health-check", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" gem 'jekyll-redirect-from', "~> 0.16" + gem 'jekyll-seo-tag' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 8a03a39..9a4943f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,209 +1,130 @@ GEM remote: https://rubygems.org/ specs: - activesupport (4.2.10) - i18n (~> 0.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) addressable (2.8.1) public_suffix (>= 2.0.2, < 6.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.11.1) + base64 (0.3.0) + bigdecimal (4.0.1) colorator (1.1.0) - commonmarker (0.17.13) - ruby-enum (~> 0.5) - concurrent-ruby (1.1.4) + concurrent-ruby (1.3.6) + csv (3.3.5) dnsruby (1.61.9) simpleidn (~> 0.1) - em-websocket (0.5.1) + em-websocket (0.5.3) eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) + http_parser.rb (~> 0) ethon (0.12.0) ffi (>= 1.3.0) eventmachine (1.2.7) - execjs (2.7.0) - faraday (0.15.4) - multipart-post (>= 1.2, < 3) + faraday (2.14.0) + faraday-net_http (>= 2.0, < 3.5) + json + logger + faraday-net_http (3.4.2) + net-http (~> 0.5) ffi (1.15.5) forwardable-extended (2.6.0) - gemoji (3.0.0) - github-pages (217) - github-pages-health-check (= 1.17.2) - jekyll (= 3.9.0) - jekyll-avatar (= 0.7.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.1.6) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.15.1) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.13.0) - jekyll-mentions (= 1.6.0) - jekyll-optional-front-matter (= 0.3.2) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.3.0) - jekyll-redirect-from (= 0.16.0) - jekyll-relative-links (= 0.6.1) - jekyll-remote-theme (= 0.4.3) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.7.1) - jekyll-sitemap (= 1.4.0) - jekyll-titles-from-headings (= 0.5.3) - jemoji (= 0.12.0) - kramdown (= 2.3.1) - kramdown-parser-gfm (= 1.1.0) - liquid (= 4.0.3) - mercenary (~> 0.3) - minima (= 2.5.1) - nokogiri (>= 1.10.4, < 2.0) - rouge (= 3.26.0) - terminal-table (~> 1.4) github-pages-health-check (1.17.2) addressable (~> 2.3) dnsruby (~> 1.60) octokit (~> 4.0) public_suffix (>= 2.0.2, < 5.0) typhoeus (~> 1.3) - html-pipeline (2.10.0) - activesupport (>= 2) - nokogiri (>= 1.4) - http_parser.rb (0.6.0) - i18n (0.9.5) + google-protobuf (4.33.4) + bigdecimal + rake (>= 13) + http_parser.rb (0.8.1) + i18n (1.14.8) concurrent-ruby (~> 1.0) - jekyll (3.9.0) + jekyll (4.4.1) addressable (~> 2.4) + base64 (~> 0.2) colorator (~> 1.0) + csv (~> 3.0) em-websocket (~> 0.5) - i18n (~> 0.7) - jekyll-sass-converter (~> 1.0) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) jekyll-watch (~> 2.0) - kramdown (>= 1.17, < 3) + json (~> 2.6) + kramdown (~> 2.3, >= 2.3.1) + kramdown-parser-gfm (~> 1.0) liquid (~> 4.0) - mercenary (~> 0.3.3) + mercenary (~> 0.3, >= 0.3.6) pathutil (~> 0.9) - rouge (>= 1.7, < 4) + rouge (>= 3.0, < 5.0) safe_yaml (~> 1.0) - jekyll-avatar (0.7.0) - jekyll (>= 3.0, < 5.0) - jekyll-coffeescript (1.1.1) - coffee-script (~> 2.2) - coffee-script-source (~> 1.11.1) - jekyll-commonmark (1.2.0) - commonmarker (~> 0.14) - jekyll (>= 3.0, < 4.0) - jekyll-commonmark-ghpages (0.1.6) - commonmarker (~> 0.17.6) - jekyll-commonmark (~> 1.2) - rouge (>= 2.0, < 4.0) - jekyll-default-layout (0.1.4) - jekyll (~> 3.0) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) jekyll-feed (0.15.1) jekyll (>= 3.7, < 5.0) - jekyll-gist (1.5.0) - octokit (~> 4.2) - jekyll-github-metadata (2.13.0) - jekyll (>= 3.4, < 5.0) - octokit (~> 4.0, != 4.4.0) - jekyll-mentions (1.6.0) - html-pipeline (~> 2.3) - jekyll (>= 3.7, < 5.0) - jekyll-optional-front-matter (0.3.2) - jekyll (>= 3.0, < 5.0) - jekyll-paginate (1.1.0) - jekyll-readme-index (0.3.0) - jekyll (>= 3.0, < 5.0) jekyll-redirect-from (0.16.0) jekyll (>= 3.3, < 5.0) - jekyll-relative-links (0.6.1) - jekyll (>= 3.3, < 5.0) - jekyll-remote-theme (0.4.3) - addressable (~> 2.0) - jekyll (>= 3.5, < 5.0) - jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) - rubyzip (>= 1.3.0, < 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) + jekyll-sass-converter (3.1.0) + sass-embedded (~> 1.75) jekyll-seo-tag (2.7.1) jekyll (>= 3.8, < 5.0) - jekyll-sitemap (1.4.0) - jekyll (>= 3.7, < 5.0) - jekyll-titles-from-headings (0.5.3) - jekyll (>= 3.3, < 5.0) - jekyll-watch (2.1.2) + jekyll-watch (2.2.1) listen (~> 3.0) - jemoji (0.12.0) - gemoji (~> 3.0) - html-pipeline (~> 2.2) - jekyll (>= 3.0, < 5.0) - kramdown (2.3.1) - rexml + json (2.18.1) + kramdown (2.5.2) + rexml (>= 3.4.4) kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - liquid (4.0.3) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - mercenary (0.3.6) - mini_portile2 (2.8.6) + liquid (4.0.4) + listen (3.10.0) + logger + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + logger (1.7.0) + mercenary (0.4.0) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) - minitest (5.11.3) - multipart-post (2.0.0) - nokogiri (1.16.5) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) - octokit (4.22.0) - faraday (>= 0.9) - sawyer (~> 0.8.0, >= 0.5.3) + net-http (0.9.1) + uri (>= 0.11.1) + octokit (4.25.1) + faraday (>= 1, < 3) + sawyer (~> 0.9) pathutil (0.16.2) forwardable-extended (~> 2.6) public_suffix (2.0.5) - racc (1.7.3) - rb-fsevent (0.10.3) - rb-inotify (0.10.0) + rake (13.3.1) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.3.9) - rouge (3.26.0) - ruby-enum (0.7.2) - i18n - ruby_dep (1.5.0) - rubyzip (2.3.0) - safe_yaml (1.0.4) - sass (3.7.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.8.2) + rexml (3.4.4) + rouge (4.7.0) + safe_yaml (1.0.5) + sass-embedded (1.97.3) + google-protobuf (~> 4.31) + rake (>= 13) + sawyer (0.9.3) addressable (>= 2.3.5) - faraday (> 0.8, < 2.0) + faraday (>= 0.17.3, < 3) simpleidn (0.2.1) unf (~> 0.1.4) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) typhoeus (1.3.1) ethon (>= 0.9.0) - tzinfo (1.2.11) - thread_safe (~> 0.1) unf (0.1.4) unf_ext unf_ext (0.0.8.2) - unicode-display_width (1.4.1) + unicode-display_width (2.6.0) + uri (1.1.1) + webrick (1.9.2) PLATFORMS ruby DEPENDENCIES - github-pages + github-pages-health-check + jekyll (~> 4.3) jekyll-feed (~> 0.6) jekyll-redirect-from (~> 0.16) - minima (~> 2.0) + jekyll-seo-tag + minima (~> 2.5) tzinfo-data BUNDLED WITH diff --git a/_config.yml b/_config.yml index ba5ee81..18fa22e 100644 --- a/_config.yml +++ b/_config.yml @@ -29,6 +29,7 @@ markdown: kramdown plugins: - jekyll-feed - jekyll-redirect-from + - jekyll-seo-tag # Generate post dated in the future future: true diff --git a/index.md b/index.md index 8ede7a1..1b67aa8 100644 --- a/index.md +++ b/index.md @@ -8,4 +8,4 @@ Marca User Group, o MUG in breve, è uno user group trevigiano nato per aggregar Discutiamo di tecnologia e di ogni argomento che ruota attorno al settore IT, organizzando eventi gratuiti sul territorio trevigiano. -Ci trovi su [Telegram](https://t.me/marcausergroup/), ma anche su [Facebook](https://www.facebook.com/MarcaUserGroup) e [LinkedIn](https://www.linkedin.com/company/mug-marca-user-group). \ No newline at end of file +Ci trovi su [Telegram](https://t.me/marcausergroup/) e [LinkedIn](https://www.linkedin.com/company/mug-marca-user-group). \ No newline at end of file diff --git a/partners.md b/partners.md index f398071..058ec5c 100644 --- a/partners.md +++ b/partners.md @@ -4,23 +4,30 @@ title: Partners permalink: /partners/ --- + + +
+ + -# Communities +## Communities