Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions .github/workflows/jekyll-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "github-pages", group: :jekyll_plugins
gem "webrick", "~> 1.7"
14 changes: 1 addition & 13 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,5 @@ <h2 class="project-tagline">Példákon keresztül mindenféléről</h2>
<p>Szerző: {{ page.authors }}</p>
</footer>
</section>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-63608188-1");
pageTracker._trackPageview();
} catch(err) {}
</script>

</body>
</body>
</html>
24 changes: 12 additions & 12 deletions alkfejl.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ authors: Csorba Kristóf
<table>
<tr><th>Kód</th><th>Cím</th><th>Címkék</th><th>Szerzők</th></tr>
{% 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 -%}
<tr>
<td><small>{{page.codename}}</small></td><td><a class="post-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></td><td><small>{{page.tags}}</small></td><td><small>{{page.authors}}</small></td>
</tr>
{% endunless %}
{% endif %}
{% endfor %}
{%- endunless -%}
{%- endif -%}
{%- endfor %}
</table>


Expand All @@ -33,15 +33,15 @@ authors: Csorba Kristóf
{% for tag in allTagsArray %}
<h2 id="{{tag}}">{{tag}}</h2><br/>
<ul>
{% for page in site.pages %}
{% if page.tags contains tag and page.tags contains "alkfejl" %}
{% unless page.tags contains skippedTags %}
{% for page in site.pages -%}
{%- if page.tags contains tag and page.tags contains "alkfejl" -%}
{%- unless page.tags contains skippedTags -%}
<li>
<a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a> <small>{{page.tags}} ({{page.authors}})</small>
</li>
{% endunless %}
{% endif %}
{% endfor %}
{%- endunless -%}
{%- endif -%}
{%- endfor %}
</ul>
{% endfor %}

Expand Down
8 changes: 4 additions & 4 deletions alkfejlmerged.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ authors: Csorba Kristóf

<div class="home">
<h1 class="page-heading">Alkalmazásfejlesztés snippetek összefűzve</h1>
{% for page in site.pages %}
{% if page.tags contains "alkfejl" %}
{% for page in site.pages -%}
{%- if page.tags contains "alkfejl" -%}
<div id="{{page.url}}" style="width: auto; height: auto">
<script type="text/javascript"> document.getElementById("{{page.url}}").innerHTML='<object type="text/html" data="{{ page.url | prepend: site.baseurl }}/index.html" ></object>'; </script>
</div>
{% endif %}
{% endfor %}
{%- endif -%}
{%- endfor %}
</div>
25 changes: 0 additions & 25 deletions docker_spec.md

This file was deleted.

32 changes: 6 additions & 26 deletions mieset.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,15 @@ authors: Csorba Kristóf
<table>
<tr><th>Kód</th><th>Cím</th><th>Címkék</th><th>Szerzők</th></tr>
{% 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 -%}
<tr>
<td><small>{{page.codename}}</small></td><td><a class="post-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></td><td><small>{{page.tags}}</small></td><td><small>{{page.authors}}</small></td>
</tr>
{% endunless %}
{% endif %}
{% endfor %}
{%- endunless -%}
{%- endif -%}
{%- endfor %}
</table>




{% for tag in allTagsArray %}
<h2 id="{{tag}}">{{tag}}</h2><br/>
<ul>
{% for page in site.pages %}
{% if page.tags contains tag and page.tags contains "mieset" %}
{% unless page.tags contains skippedTags %}
<li>
<a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a> <small>{{page.tags}} ({{page.authors}})</small>
</li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>

</div>
8 changes: 4 additions & 4 deletions snippets/AlkFejlHfTanulsagok/alkfejlhf.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ authors: Csorba Kristóf
(Az alábbi leírásokat mind hallgatói csapatok készítették.)

<ul>
{% for page in site.pages %}
{% if page.tags contains 'afhf' %}
{% for page in site.pages -%}
{%- if page.tags contains 'afhf' -%}
<li>
<a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a> <small>{{page.tags}} ({{page.authors}})</small>
</li>
{% endif %}
{% endfor %}
{%- endif -%}
{%- endfor %}
</ul>

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
Expand Down