From b7b6dc57b654cdca49bf73829fb8391a9b4dc6a8 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Thu, 14 Nov 2024 12:59:36 +0100 Subject: [PATCH] Initialized jekyll for gitea --- .domains | 2 + .gitea/workflows/pages-deploy.yaml | 61 +++++++++ .github/workflows/jekyll-gh-pages.yml | 51 ------- .gitignore | 3 + 404.html | 25 ++++ CNAME | 1 - Gemfile | 36 +++++ Gemfile.lock | 190 ++++++++++++++++++++++++++ README.md => index.md | 4 + 9 files changed, 321 insertions(+), 52 deletions(-) create mode 100644 .domains create mode 100644 .gitea/workflows/pages-deploy.yaml delete mode 100644 .github/workflows/jekyll-gh-pages.yml create mode 100644 .gitignore create mode 100644 404.html delete mode 100644 CNAME create mode 100644 Gemfile create mode 100644 Gemfile.lock rename README.md => index.md (97%) diff --git a/.domains b/.domains new file mode 100644 index 0000000..599bbe0 --- /dev/null +++ b/.domains @@ -0,0 +1,2 @@ +dns-test.morlana.net +dns.morlana.net diff --git a/.gitea/workflows/pages-deploy.yaml b/.gitea/workflows/pages-deploy.yaml new file mode 100644 index 0000000..d0aa95a --- /dev/null +++ b/.gitea/workflows/pages-deploy.yaml @@ -0,0 +1,61 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: + - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: write + 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: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: checkout pages + uses: actions/checkout@v4 + with: + ref: 'pages' + path: 'pages' + - name: Setup Ruby + run: | + apt-get update && \ + apt-get install ruby-full build-essential zlib1g-dev -y && \ + gem install bundler jekyll webrick + - name: Build with Jekyll + run: | + bundle install && \ + bundle exec jekyll build --destination pages + env: + JEKYLL_ENV: production + - name: push pages + run: | + cd pages && \ + cp ../.domains ./.domains && \ + git config user.name "${{ gitea.actor }}" && \ + git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \ + git add . && \ + git commit -m "jekyll build from Action ${GITHUB_SHA}" && \ + git push diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml deleted file mode 100644 index e31d81c..0000000 --- a/.github/workflows/jekyll-gh-pages.yml +++ /dev/null @@ -1,51 +0,0 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages dependencies preinstalled - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# 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: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - - # Deployment job - 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 new file mode 100644 index 0000000..dbbb242 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pages/ +_site/ +.jekyll* \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..b203451 --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +permalink: /404.html +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found. Go back

+
diff --git a/CNAME b/CNAME deleted file mode 100644 index 67d97c2..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -dns.morlana.net \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..92b0107 --- /dev/null +++ b/Gemfile @@ -0,0 +1,36 @@ +source "https://rubygems.org" +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "~> 4.3.4" +# This is the default theme for new Jekyll sites. You may change this to anything you like. +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 +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.12" + gem "jekyll-remote-theme" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", ">= 1", "< 3" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin] + +# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem +# do not have a Java counterpart. +gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] + +gem "webrick", "~> 1.9" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..393f5bc --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,190 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + bigdecimal (3.1.8) + colorator (1.1.0) + concurrent-ruby (1.3.4) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + eventmachine (1.2.7) + ffi (1.17.0) + ffi (1.17.0-aarch64-linux-gnu) + ffi (1.17.0-aarch64-linux-musl) + ffi (1.17.0-arm-linux-gnu) + ffi (1.17.0-arm-linux-musl) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-x86-linux-gnu) + ffi (1.17.0-x86-linux-musl) + ffi (1.17.0-x86_64-darwin) + ffi (1.17.0-x86_64-linux-gnu) + ffi (1.17.0-x86_64-linux-musl) + forwardable-extended (2.6.0) + google-protobuf (4.28.3) + bigdecimal + rake (>= 13) + google-protobuf (4.28.3-aarch64-linux) + bigdecimal + rake (>= 13) + google-protobuf (4.28.3-arm64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.28.3-x86-linux) + bigdecimal + rake (>= 13) + google-protobuf (4.28.3-x86_64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.28.3-x86_64-linux) + bigdecimal + rake (>= 13) + http_parser.rb (0.8.0) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + jekyll (4.3.4) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) + jekyll-watch (~> 2.0) + kramdown (~> 2.3, >= 2.3.1) + kramdown-parser-gfm (~> 1.0) + liquid (~> 4.0) + mercenary (>= 0.3.6, < 0.5) + pathutil (~> 0.9) + rouge (>= 3.0, < 5.0) + safe_yaml (~> 1.0) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) + jekyll-feed (0.17.0) + jekyll (>= 3.7, < 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 (3.0.0) + sass-embedded (~> 1.54) + jekyll-seo-tag (2.8.0) + jekyll (>= 3.8, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.9.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.4.0) + minima (2.5.2) + jekyll (>= 3.5, < 5.0) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (6.0.1) + rake (13.2.1) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) + ffi (~> 1.0) + rexml (3.3.9) + rouge (4.5.1) + rubyzip (2.3.2) + safe_yaml (1.0.5) + sass-embedded (1.80.7) + google-protobuf (~> 4.28) + rake (>= 13) + sass-embedded (1.80.7-aarch64-linux-android) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-aarch64-linux-gnu) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-aarch64-linux-musl) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-aarch64-mingw-ucrt) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-arm-linux-androideabi) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-arm-linux-gnueabihf) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-arm-linux-musleabihf) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-arm64-darwin) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-riscv64-linux-android) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-riscv64-linux-gnu) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-riscv64-linux-musl) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86-cygwin) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86-linux-android) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86-linux-gnu) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86-linux-musl) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86-mingw-ucrt) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86_64-cygwin) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86_64-darwin) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86_64-linux-android) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86_64-linux-gnu) + google-protobuf (~> 4.28) + sass-embedded (1.80.7-x86_64-linux-musl) + google-protobuf (~> 4.28) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.6.0) + webrick (1.9.0) + +PLATFORMS + aarch64-linux + aarch64-linux-android + aarch64-linux-gnu + aarch64-linux-musl + aarch64-mingw-ucrt + 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-cygwin + x86-linux + x86-linux-android + x86-linux-gnu + x86-linux-musl + x86-mingw-ucrt + x86_64-cygwin + x86_64-darwin + x86_64-linux + x86_64-linux-android + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + http_parser.rb (~> 0.6.0) + jekyll (~> 4.3.4) + jekyll-feed (~> 0.12) + jekyll-remote-theme + minima (~> 2.5) + tzinfo (>= 1, < 3) + tzinfo-data + wdm (~> 0.1) + webrick (~> 1.9) + +BUNDLED WITH + 2.5.23 diff --git a/README.md b/index.md similarity index 97% rename from README.md rename to index.md index 6d156e5..c935116 100644 --- a/README.md +++ b/index.md @@ -1,3 +1,7 @@ +--- +layout: default +--- + # Morlana DNS Documentation and configuration options for Morlanas DNS servers.