Skip to content

Commit

Permalink
Merge pull request #52 from randovania/feature/extract-from-rdv
Browse files Browse the repository at this point in the history
updates for 7.4.1
  • Loading branch information
henriquegemignani authored Apr 1, 2024
2 parents 427a721 + 4c300c5 commit 089a565
Show file tree
Hide file tree
Showing 26 changed files with 281 additions and 215 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ venv/*
build/*

# Generated data
# _includes/_readme/*
_videos/
_includes/_readme/
_data/rdv.yml
_games/
assets/games

# Local Site Directories
_site/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This is the repository for the website at https://randovania.github.io/.
This is the repository for the website at https://randovania.org/.

It's created from html files at `static_website`, with the exported logic videos from the current Randovania release.
It's built using Jekyll. To build and test locally, first run `ci.sh` then follow the [Github Pages instructions for local testing](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll).
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ nav_exclude: # The following paths ar
- pages/tags.html
- pages/404.html
- pages/index.md
- pages/experimental-games.md


### Social Media Info ###
Expand All @@ -39,6 +40,9 @@ collections:
redirects:
output: true
permalink: /:path
videos:
output: true
permalink: /games/:path/videos


### Analytics ###
Expand All @@ -60,6 +64,11 @@ defaults:
type: "redirects"
values:
layout: "redirect"
- scope:
path: ""
type: "videos"
values:
layout: "video_db"
- scope:
path: ""
type: "posts"
Expand All @@ -76,3 +85,5 @@ exclude:
- ci.sh
- Gemfile
- Gemfile.lock
- venv/
- build/
1 change: 0 additions & 1 deletion _data/rdv.yml

This file was deleted.

12 changes: 0 additions & 12 deletions _games/am2r.md

This file was deleted.

9 changes: 0 additions & 9 deletions _games/cave_story.md

This file was deleted.

13 changes: 0 additions & 13 deletions _games/dread.md

This file was deleted.

13 changes: 0 additions & 13 deletions _games/prime1.md

This file was deleted.

14 changes: 0 additions & 14 deletions _games/prime2.md

This file was deleted.

102 changes: 0 additions & 102 deletions _includes/_readme/credits.md

This file was deleted.

15 changes: 0 additions & 15 deletions _includes/_readme/welcome.md

This file was deleted.

8 changes: 7 additions & 1 deletion _includes/blog/single-tag.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% assign tag = include.tag %}

{% assign any-posts = false %}

<div class="py-3">
{% if include.show-header == true %}
{% assign tag-name = tag | capitalize %}
{% for game in site.games %}
{% if game.short-name == tag %}
{% if game.game-id == tag %}
{% assign tag-name = game.long-name %}
{% endif %}
{% endfor %}
Expand All @@ -13,6 +15,7 @@ <h4 id="{{ tag | slugify }}">{{ tag-name }}</h4>
<ul>
{% for post in site.posts %}
{%- if post.tags contains tag -%}
{%- assign any-posts = true -%}
{%- if post.external_url -%}
{%- assign url = post.external_url -%}
{%- else -%}
Expand All @@ -26,5 +29,8 @@ <h4 id="{{ tag | slugify }}">{{ tag-name }}</h4>
<br/>
{%- endif -%}
{% endfor %}
{% if any-posts == false %}
<li>No guides for this game</li>
{% endif %}
</ul>
</div>
13 changes: 10 additions & 3 deletions _includes/games.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
<div class="container text-center">
<div class="row align-items-center justify-content-center">
<div class="row align-items-center justify-content-center row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-5">
{% for game in site.games %}
<div class="col-lg col-12">

{% unless game.development-state == "stable" or include.show-experimental %}
{% continue %}
{% endunless %}
<div class="col">
<a href="{{ game.url }}" title="{{ game.long-name }}">
<img src="/assets/games/{{ game.short-name }}.png" />
<img
src="/assets/games/{{ game.game-id }}.png"
width="264"
height="352" />
</a>
</div>
{% endfor %}
Expand Down
46 changes: 46 additions & 0 deletions _includes/videos/region.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% assign region = include.region %}

<!-- table of contents -->
<div class="card">
<h3 class="card-header" id="toc">Table of Contents</h3>
<div class="card-body card-text">
{% for area in region.value %}
<strong>{{ area.key }}</strong>
<ul style="list-style: none;">
{% for node in area.value %}
{% for connection in node.value %}
{%- capture connection-name -%}
{{ node.key }} &rarr; {{ connection.key }}
{%- endcapture -%}
<li>
<a href="#{{ connection-name | slugify }}">
{{ connection-name }}
</a>
</li>
{% endfor %}
{% endfor %}
</ul>
{% endfor %}
</div>
</div>

{% for area in region.value %}
<div class="card my-2">
<h3 class="card-header">{{ area.key }}</h3>
<div class="card-body card-text">
{% for node in area.value %}
{% for connection in node.value %}
{%- capture connection-name -%}
{{ node.key }} &rarr; {{ connection.key }}
{%- endcapture -%}
<h5 class="card-title" id="{{ connection-name | slugify }}">{{ connection-name }}</h4>
{% for video in connection.value %}
<p class="fst-italic">{{ video.difficulty }}</p>
{% include videos/video-embed.html yt-id=video.video_id start-time=video.start_time %}
<p class="fst-italic"><a href="#top">Back to top</a></p>
{% endfor %}
{% endfor %}
{% endfor %}
</div>
</div>
{% endfor %}
Loading

0 comments on commit 089a565

Please sign in to comment.