diff --git a/.github/workflows/jekyll-build.yaml b/.github/workflows/jekyll-build.yaml new file mode 100644 index 0000000..33a2fb5 --- /dev/null +++ b/.github/workflows/jekyll-build.yaml @@ -0,0 +1,54 @@ +# https://dev.to/pooyagolchian/deploy-jekyll-to-github-pages-in-2026-github-actions-custom-domain-cloudflare-50fb +name: Deploy Jekyll to GitHub Pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: docs + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.4' + bundler-cache: true # Caches gems for faster builds + + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Install Gems + run: bundle install + + - name: Build with Jekyll + run: bundle exec jekyll build --destination ./_site + env: + JEKYLL_ENV: production + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/jekyll-gh-pages.yaml b/.github/workflows/jekyll-gh-pages.yaml new file mode 100644 index 0000000..8566521 --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yaml @@ -0,0 +1,30 @@ +name: Build Jekyll + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: docs + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.4' + bundler-cache: true # Caches gems for faster builds + + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Install Gems + run: bundle install + + - name: Build with Jekyll + working-directory: docs + run: bundle exec jekyll build --destination ./_site + env: + JEKYLL_ENV: production diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 81190b9..480d857 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -12,46 +12,12 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.17.4) - ffi (1.17.4-aarch64-linux-gnu) - ffi (1.17.4-aarch64-linux-musl) - ffi (1.17.4-arm-linux-gnu) - ffi (1.17.4-arm-linux-musl) - ffi (1.17.4-arm64-darwin) - ffi (1.17.4-x86-linux-gnu) - ffi (1.17.4-x86-linux-musl) - ffi (1.17.4-x86_64-darwin) ffi (1.17.4-x86_64-linux-gnu) - ffi (1.17.4-x86_64-linux-musl) forwardable-extended (2.6.0) gemoji (3.0.1) - google-protobuf (4.35.0) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-aarch64-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-aarch64-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-arm64-darwin) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-x86-linux-gnu) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-x86-linux-musl) - bigdecimal - rake (~> 13.3) - google-protobuf (4.35.0-x86_64-darwin) - bigdecimal - rake (~> 13.3) google-protobuf (4.35.0-x86_64-linux-gnu) bigdecimal rake (~> 13.3) - google-protobuf (4.35.0-x86_64-linux-musl) - bigdecimal - rake (~> 13.3) http_parser.rb (0.8.1) i18n (1.14.8) concurrent-ruby (~> 1.0) @@ -104,26 +70,8 @@ GEM rb-inotify (~> 0.9, >= 0.9.10) logger (1.7.0) mercenary (0.4.0) - mini_portile2 (2.8.9) - nokogiri (1.19.3) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) - nokogiri (1.19.3-aarch64-linux-gnu) - racc (~> 1.4) - nokogiri (1.19.3-aarch64-linux-musl) - racc (~> 1.4) - nokogiri (1.19.3-arm-linux-gnu) - racc (~> 1.4) - nokogiri (1.19.3-arm-linux-musl) - racc (~> 1.4) - nokogiri (1.19.3-arm64-darwin) - racc (~> 1.4) - nokogiri (1.19.3-x86_64-darwin) - racc (~> 1.4) nokogiri (1.19.3-x86_64-linux-gnu) racc (~> 1.4) - nokogiri (1.19.3-x86_64-linux-musl) - racc (~> 1.4) pathutil (0.16.2) forwardable-extended (~> 2.6) public_suffix (7.0.5) @@ -136,62 +84,15 @@ GEM rexml (3.4.4) rouge (4.7.0) safe_yaml (1.0.5) - sass-embedded (1.100.0) - google-protobuf (~> 4.31) - rake (>= 13) - sass-embedded (1.100.0-aarch64-linux-android) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-aarch64-linux-gnu) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-aarch64-linux-musl) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-arm-linux-androideabi) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-arm-linux-gnueabihf) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-arm-linux-musleabihf) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-arm64-darwin) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-riscv64-linux-android) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-riscv64-linux-gnu) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-riscv64-linux-musl) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-x86_64-darwin) - google-protobuf (~> 4.31) - sass-embedded (1.100.0-x86_64-linux-android) - google-protobuf (~> 4.31) sass-embedded (1.100.0-x86_64-linux-gnu) google-protobuf (~> 4.31) - sass-embedded (1.100.0-x86_64-linux-musl) - google-protobuf (~> 4.31) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) unicode-display_width (2.6.0) webrick (1.9.2) PLATFORMS - aarch64-linux-android - aarch64-linux-gnu - aarch64-linux-musl - arm-linux-androideabi - arm-linux-gnu - arm-linux-gnueabihf - arm-linux-musl - arm-linux-musleabihf - arm64-darwin - riscv64-linux-android - riscv64-linux-gnu - riscv64-linux-musl - ruby - x86-linux-gnu - x86-linux-musl - x86_64-darwin - x86_64-linux-android x86_64-linux-gnu - x86_64-linux-musl DEPENDENCIES http_parser.rb (~> 0.6.0) @@ -202,5 +103,50 @@ DEPENDENCIES tzinfo-data wdm (~> 0.1) +CHECKSUMS + addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af + base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b + bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd + colorator (1.1.0) sha256=e2f85daf57af47d740db2a32191d1bdfb0f6503a0dfbc8327d0c9154d5ddfc38 + concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab + csv (3.3.5) sha256=6e5134ac3383ef728b7f02725d9872934f523cb40b961479f69cf3afa6c8e73f + em-websocket (0.5.3) sha256=f56a92bde4e6cb879256d58ee31f124181f68f8887bd14d53d5d9a292758c6a8 + eventmachine (1.2.7) sha256=994016e42aa041477ba9cff45cbe50de2047f25dd418eba003e84f0d16560972 + ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d + forwardable-extended (2.6.0) sha256=1bec948c469bbddfadeb3bd90eb8c85f6e627a412a3e852acfd7eaedbac3ec97 + gemoji (3.0.1) sha256=80553f2f4932a7a95fb1b3c7c63f7dd937e7c8c610164bbdea28fd06eba5f36d + google-protobuf (4.35.0-x86_64-linux-gnu) sha256=999226f3b00cd9fddb1b26851d16060212fa1d90c406aaad47e574682b716059 + http_parser.rb (0.8.1) sha256=9ae8df145b39aa5398b2f90090d651c67bd8e2ebfe4507c966579f641e11097a + i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5 + jekyll (4.4.1) sha256=4c1144d857a5b2b80d45b8cf5138289579a9f8136aadfa6dd684b31fe2bc18c1 + jekyll-include-cache (0.2.1) sha256=c7d4b9e551732a27442cb2ce853ba36a2f69c66603694b8c1184c99ab1a1a205 + jekyll-sass-converter (3.1.0) sha256=83925d84f1d134410c11d0c6643b0093e82e3a3cf127e90757a85294a3862443 + jekyll-seo-tag (2.9.0) sha256=0260015a8e1df9bf195cdfb0c675b7b2883fd8cbf12556e1c1cbe36a831c6852 + jekyll-spaceship (0.10.2) sha256=f0fb49b1a50f745b278378557460d898337bf6b28a9417f1e55825bc11b94b90 + jekyll-watch (2.2.1) sha256=bc44ed43f5e0a552836245a54dbff3ea7421ecc2856707e8a1ee203a8387a7e1 + json (2.19.8) sha256=6354310fd76ef69b87d5bd1f38b40d730613baf90b6803d2d0a48f618d32dfaa + just-the-docs (0.12.0) sha256=15f2839ac9082898d60f33b978aa6f8e46fc50ba8fac20ae7a7f0e1fb295523e + kramdown (2.5.2) sha256=1ba542204c66b6f9111ff00dcc26075b95b220b07f2905d8261740c82f7f02fa + kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729 + liquid (4.0.4) sha256=4fcfebb1a045e47918388dbb7a0925e7c3893e58d2bd6c3b3c73ec17a2d8fdb3 + listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2 + logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 + mercenary (0.4.0) sha256=b25a1e4a59adca88665e08e24acf0af30da5b5d859f7d8f38fba52c28f405138 + nokogiri (1.19.3-x86_64-linux-gnu) sha256=2f5078620fe12e83669b5b17311b32532a8153d02eee7ad06948b926d6080976 + pathutil (0.16.2) sha256=e43b74365631cab4f6d5e4228f812927efc9cb2c71e62976edcb252ee948d589 + public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623 + racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f + rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a + rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 + rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe + rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e + rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142 + rouge (4.7.0) sha256=dba5896715c0325c362e895460a6d350803dbf6427454f49a47500f3193ea739 + safe_yaml (1.0.5) sha256=a6ac2d64b7eb027bdeeca1851fe7e7af0d668e133e8a88066a0c6f7087d9f848 + sass-embedded (1.100.0-x86_64-linux-gnu) sha256=58dd0a8a4f0dd78881b90d8b0e4d0eed042d54865b19b71384d91091ade93e18 + terminal-table (3.0.2) sha256=f951b6af5f3e00203fb290a669e0a85c5dd5b051b3b023392ccfd67ba5abae91 + unicode-display_width (2.6.0) sha256=12279874bba6d5e4d2728cef814b19197dbb10d7a7837a869bab65da943b7f5a + webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131 + BUNDLED WITH - 2.7.2 + 4.0.10