diff --git a/.github/workflows/jekyll-build.yml b/.github/workflows/jekyll-build.yml index 2a16f5e..b8d1764 100644 --- a/.github/workflows/jekyll-build.yml +++ b/.github/workflows/jekyll-build.yml @@ -21,11 +21,33 @@ jobs: - name: Install dependencies run: bundle install - - name: Build Jekyll site - run: bundle exec jekyll build --verbose + - name: Build Jekyll site for local viewing + run: bundle exec jekyll build --verbose --baseurl "" env: JEKYLL_ENV: production + - name: Create local viewing instructions + run: | + cat > _site/README_LOCAL_VIEWING.txt << 'EOF' + To view this site locally: + + Option 1 - Python HTTP Server (recommended): + cd to this directory and run: + python -m http.server 8000 + Then open: http://localhost:8000/ + + Option 2 - Node.js HTTP Server: + npm install -g http-server + http-server -p 8000 + Then open: http://localhost:8000/ + + Option 3 - VS Code Live Server extension: + Open this folder in VS Code and use the Live Server extension + + Note: Due to absolute paths, you cannot simply open index.html in a browser. + You must use a local HTTP server. + EOF + - name: Verify build output run: | if [ -d "_site" ]; then @@ -35,3 +57,11 @@ jobs: echo "✗ Jekyll build failed - _site directory not found" exit 1 fi + + - name: Upload site artifact (local viewing without baseurl) + uses: actions/upload-artifact@v4 + if: always() + with: + name: jekyll-site-local + path: _site/ + retention-days: 7 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..3a00aa5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "https://rubygems.org" + +gem "github-pages", group: :jekyll_plugins +gem "webrick", "~> 1.7" diff --git a/_layouts/default.html b/_layouts/default.html index dfca0fa..d74ba10 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -30,17 +30,5 @@

Példákon keresztül mindenféléről

Szerző: {{ page.authors }}

- - - - - + diff --git a/alkfejl.md b/alkfejl.md index b267ad6..4ccf5b5 100644 --- a/alkfejl.md +++ b/alkfejl.md @@ -16,15 +16,15 @@ authors: Csorba Kristóf {% assign sortedPages = site.pages | sort:"codename" %} - {% for page in sortedPages %} - {% if page.tags contains tagToFilterFor %} - {% unless page.tags contains skippedPageTag %} + {% for page in sortedPages -%} + {%- if page.tags contains tagToFilterFor -%} + {%- unless page.tags contains skippedPageTag -%} - {% endunless %} - {% endif %} - {% endfor %} + {%- endunless -%} + {%- endif -%} + {%- endfor %}
KódCímCímkékSzerzők
{{page.codename}}{{ page.title }}{{page.tags}}{{page.authors}}
@@ -33,15 +33,15 @@ authors: Csorba Kristóf {% for tag in allTagsArray %}

{{tag}}


{% endfor %} diff --git a/alkfejlmerged.md b/alkfejlmerged.md index aa05b56..29aeb39 100644 --- a/alkfejlmerged.md +++ b/alkfejlmerged.md @@ -9,11 +9,11 @@ authors: Csorba Kristóf

Alkalmazásfejlesztés snippetek összefűzve

- {% for page in site.pages %} - {% if page.tags contains "alkfejl" %} + {% for page in site.pages -%} + {%- if page.tags contains "alkfejl" -%}
- {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor %}
diff --git a/docker_spec.md b/docker_spec.md deleted file mode 100644 index 174216f..0000000 --- a/docker_spec.md +++ /dev/null @@ -1,25 +0,0 @@ -I want to test the github pages static website generated from this repository using a locally running docker container. - -There is an official docker container available for this in Docker Hub: -jekyll/jekyll:pages -It is tailored for GitHub Pages, preconfigured with the github-pages gem. - -A minimal docker-compose.yml: -``` -services: - jekyll: - image: jekyll/jekyll:pages - command: jekyll serve --watch --incremental --host 0.0.0.0 - ports: - - "4000:4000" - volumes: - - .:/srv/jekyll -``` - -Further preferences: - -- If the docker image is not present, try to download it. If it fails, build it using a dockerfile. (Please create that dockerfile for me as well.) -- The site should be served from inside the container and available on the host via the default port 4000. -- The container should run interactively so I can stop it from the console when not using it anymore. -- Use the default system browser to open the site. -- Put the generated .cmd file into the root of the repository. Call it "local_test_with_docker.cmd". diff --git a/mieset.md b/mieset.md index 7650cee..dd2a8ce 100644 --- a/mieset.md +++ b/mieset.md @@ -16,35 +16,15 @@ authors: Csorba Kristóf {% assign sortedPages = site.pages | sort:"codename" %} - {% for page in sortedPages %} - {% if page.tags contains tagToFilterFor %} - {% unless page.tags contains skippedPageTag %} + {% for page in sortedPages -%} + {%- if page.tags contains tagToFilterFor -%} + {%- unless page.tags contains skippedPageTag -%} - {% endunless %} - {% endif %} - {% endfor %} + {%- endunless -%} + {%- endif -%} + {%- endfor %}
KódCímCímkékSzerzők
{{page.codename}}{{ page.title }}{{page.tags}}{{page.authors}}
- - - -{% for tag in allTagsArray %} -

{{tag}}


- -{% endfor %} - -

subscribe via RSS

- diff --git a/snippets/AlkFejlHfTanulsagok/alkfejlhf.md b/snippets/AlkFejlHfTanulsagok/alkfejlhf.md index 691275c..db5ea6a 100644 --- a/snippets/AlkFejlHfTanulsagok/alkfejlhf.md +++ b/snippets/AlkFejlHfTanulsagok/alkfejlhf.md @@ -11,13 +11,13 @@ authors: Csorba Kristóf (Az alábbi leírásokat mind hallgatói csapatok készítették.)

subscribe via RSS