Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
51ec5e6
Changed Materials and You to support rendering books with HTML
paypur Jul 3, 2025
06f6608
Updated assets and styling
paypur Jul 4, 2025
d74bf08
Added linking between content
paypur Jul 4, 2025
e39fe95
Added styling to remaining elements
paypur Jul 7, 2025
736b1ba
Updated resources
paypur Jul 7, 2025
0d40a70
Updated resources
paypur Jul 8, 2025
afbaf04
Added puny melting HTMLs
paypur Jul 10, 2025
bd4e604
Renamed blank pages
paypur Jul 10, 2025
99a6272
Added Mighty Melting and Encyclopedia resources
paypur Jul 12, 2025
61f4e6c
Updated Resources
paypur Jul 14, 2025
9b257cc
Updated resources
paypur Jul 15, 2025
0ec9ed6
Added Tinkers Gadgetry
paypur Jul 16, 2025
875251d
Added links for Tinkers Gadgetry
paypur Jul 16, 2025
a1decb6
Fixed normal books not showing
paypur Jul 16, 2025
3f8016e
Reverted normal books to original style
paypur Jul 16, 2025
9fe5dbb
Updated resources
paypur Jul 17, 2025
9e493c9
Updated resources
paypur Jul 17, 2025
454dc54
Compressed all images
paypur Jul 17, 2025
dc96f4d
Updated resources
paypur Jul 17, 2025
2e3230d
Increased gap between materials stats
paypur Jul 17, 2025
68848cb
Updated resources
paypur Jul 17, 2025
b8852ef
Renamed images
paypur Jul 18, 2025
4146374
Added back image books alongside HTML books
paypur Jul 18, 2025
3e54db7
Fixed linking between books
paypur Jul 18, 2025
95f4851
Updated resources
paypur Jul 18, 2025
9cc1416
Fixed books sections
paypur Jul 18, 2025
e772a7d
Updated resources
paypur Jul 19, 2025
e7e701f
Compressed font
paypur Jul 19, 2025
2afada8
Updated resources
paypur Jul 20, 2025
a0564f2
Updated resources for 3.10.2
paypur Jul 21, 2025
0da1a2c
Merge remote-tracking branch 'origin/master' into paypur
paypur Jul 21, 2025
370d00c
Updated resources
paypur Jul 21, 2025
c4a2261
Dummy
paypur Jul 21, 2025
aa41786
Fixed link to image books
paypur Jul 21, 2025
f87f1f7
Worked on image rescaling
paypur Jul 22, 2025
4018bf6
Moved html pages to individual paths
paypur Jul 22, 2025
faa6647
Added buttons between book pages
paypur Jul 22, 2025
ee05d1b
Unused
paypur Jul 22, 2025
d135c55
Added other covers and buttons
paypur Jul 22, 2025
9f8543d
Oops
paypur Jul 22, 2025
9a5e6eb
Updated resources
paypur Jul 23, 2025
1659286
Moved HTML book pages into individual paths
paypur Jul 24, 2025
bf7a82d
Added linking between HTML books
paypur Jul 24, 2025
bed3fc1
Added back button
paypur Jul 24, 2025
4d9dbde
Fixed missing FluidEffectContent
paypur Jul 24, 2025
bfbe95e
Moved cover to center
paypur Jul 24, 2025
f9ad57a
Fixed unnecessary redirects
paypur Jul 24, 2025
10843cb
Recompressed images correctly hopefully
paypur Jul 25, 2025
39bac8b
Fixed incorrect scale for normal images
paypur Jul 25, 2025
72fa00d
Small changes
paypur Jul 25, 2025
8cfc5f2
Added prefetching to HTML books
paypur Jul 25, 2025
16f7788
Fixed puny smelting back button
paypur Jul 25, 2025
ee06631
Added prefetching between HTML books
paypur Jul 25, 2025
226a2ab
Updated resources
paypur Jul 26, 2025
a8b947f
Fixed breadcrumbs
paypur Aug 1, 2025
dcf16a5
Added tooltips to icon links
paypur Aug 1, 2025
b42952b
Changed anchor style for html book pages
paypur Aug 13, 2025
6530eeb
Deleted unused minecraft font
paypur Aug 13, 2025
24acfd7
Added cross to 0
paypur Aug 13, 2025
555ea61
Fixed link color outside of html book pages
paypur Aug 13, 2025
a2b5410
Fixed upside down characters
paypur Aug 14, 2025
759f287
Added trait description as tooltips
paypur Sep 11, 2025
7ebe5c4
Updated content
paypur Sep 12, 2025
bbeefc3
Mostly updated to new content
paypur Nov 29, 2025
ceebc91
Merge remote-tracking branch 'upstream/HEAD'
paypur Nov 29, 2025
4f5003f
Finished update
paypur Nov 29, 2025
a70a5a3
Merge remote-tracking branch 'upstream/master'
paypur Dec 24, 2025
ac2b4b2
Merge remote-tracking branch 'origin/master'
paypur Dec 25, 2025
6813d5a
Updated to tinkers 3.11.0
paypur Dec 25, 2025
926a171
Fixed fluid effect lists
paypur Dec 25, 2025
8b1f4f3
Fixed prefetching for different book versions
paypur Dec 25, 2025
6eaa35d
Deleted 3.10.2 images
paypur Dec 25, 2025
9910d3f
Reverted normal pages
paypur Dec 25, 2025
42d3b63
Compressed all 3.11.0 images again
paypur Dec 25, 2025
942748c
Reverted spacing
paypur Dec 28, 2025
4fd0f6a
Fixed ContentListing overflowing
paypur Dec 28, 2025
24c1c59
Merge remote-tracking branch 'upstream/HEAD'
paypur Dec 28, 2025
df66423
Reverted uikit css file
paypur Dec 28, 2025
0d15c4d
Removed accidental symlink
paypur Dec 28, 2025
ee3e75a
Reverted images for older versions
paypur Dec 28, 2025
bc50040
Renamed css class
paypur Jan 22, 2026
34778c3
Removed all autogenerated files
paypur Jan 22, 2026
5f6d64b
Merge remote-tracking branch 'upstream/HEAD'
paypur Jan 22, 2026
3e44b99
Style changes
paypur Jan 23, 2026
72bc32b
Split up css and js files
paypur Jan 23, 2026
40a05cc
Moved arrows
paypur Jan 23, 2026
e32cb1a
Separated html and image books
paypur Jan 23, 2026
164f5af
Moved stuff
paypur Jan 23, 2026
9cc43aa
Merged grid-icon-list
paypur Jan 23, 2026
f8ff859
Removed unused file
paypur Jan 23, 2026
3ea97a9
Changed to scss
paypur Jan 23, 2026
9327a70
Moved arrows and scss files again
paypur Jan 23, 2026
5d9a039
Forgot to include minetip.js in html
paypur Jan 25, 2026
a066deb
Increased size of 3 wide icon list
paypur Jan 26, 2026
05f847b
Removed script
paypur Apr 11, 2026
144eb82
Added book arrows
paypur Apr 18, 2026
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ _site
.jekyll-cache
.jekyll-metadata
vendor

.idea
.bundle
29 changes: 28 additions & 1 deletion _data/books.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
materials_and_you_20:
path: tinkers/3.11.1/materials_and_you
arrows: tinkers/materials_and_you
max_page: 33
next:
title: Puny Smelting
titles:
- index: 1
text: Introduction
Expand All @@ -25,7 +28,12 @@ materials_and_you_20:

puny_smelting_20:
path: tinkers/3.11.2/puny_smelting
arrows: tinkers/puny_smelting
max_page: 102
previous:
title: Materials and You
next:
title: Mighty Smelting
titles:
- index: 2
text: Melter & Moving Fluids
Expand Down Expand Up @@ -59,7 +67,12 @@ puny_smelting_20:

mighty_smelting_20:
path: tinkers/3.11.2/mighty_smelting
arrows: tinkers/mighty_smelting
max_page: 83
previous:
title: Puny Smelting
next:
title: Fantastic Foundry
titles:
- index: 2
text: Smeltery
Expand All @@ -84,8 +97,13 @@ mighty_smelting_20:

fantastic_foundry_20:
path: tinkers/3.11.1/fantastic_foundry
arrows: tinkers/fantastic_foundry
max_page: 29
titles:
previous:
title: Mighty Smelting
next:
title: Tinkers' Gadgetry
titles:
- index: 2
text: Alloyer

Expand All @@ -106,7 +124,13 @@ fantastic_foundry_20:

tinkers_gadgetry_20:
path: tinkers/3.11.2/tinkers_gadgetry
arrows: tinkers/tinkers_gadgetry
max_page: 56
previous:
title: Fantastic Foundry
next:
title: Encyclopedia of Tinkering
link: encyclopedia
titles:
- index: 2
text: Gadgets
Expand Down Expand Up @@ -137,7 +161,10 @@ tinkers_gadgetry_20:

encyclopedia_20:
path: tinkers/3.11.2/encyclopedia
arrows: tinkers/encyclopedia
max_page: 262
previous:
title: Tinkers' Gadgetry
titles:
- index: 2
text: Tools
Expand Down
2 changes: 1 addition & 1 deletion _includes/book/header.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Click a book below to read the contents. Note that addon content along with interactive elements such as animations and tooltips will not be available. The best source for book content is always the in game books.
Click a book below to read the contents. Note that addon content will not be available. Interactive elements such as navigation and tooltips are partially available in the HTML versions. The best source for book content is always the in game books.
7 changes: 6 additions & 1 deletion _includes/book/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
{%- else -%}
{%- assign name = include.title | slugify -%}
{%- endif -%}
<a class="uk-inline book-link" href="/docs/books/{{include.version}}/{{name}}">
{%- if include.html -%}
{%- assign link = name | append: "-html/cover" -%}
{%- else -%}
{%- assign link = name -%}
{%- endif -%}
<a class="uk-inline book-link" href="/docs/books/{{include.version}}/{{link}}/">
<img src="/assets/images/book/icons/{{include.icon | default: name}}.png" alt=""/>
<br>
{{include.title | default: name}}
Expand Down
12 changes: 6 additions & 6 deletions _includes/book/pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
{%- for pageIndex in (0..include.book.max_page) -%}
{%- if titleIndex < titleCount and include.book.titles[titleIndex].index == pageIndex -%}
</div>
<h3 id="{{ include.book.titles[titleIndex].text | slugify }}">{{ include.book.titles[titleIndex].text }}</h3>
<h3 id="{{ include.book.titles[titleIndex].link | default: include.book.titles[titleIndex].text | slugify }}">{{ include.book.titles[titleIndex].text }}</h3>
<div class="uk-child-width-1-1 uk-child-width-1-3@s uk-grid-collapse" uk-grid>
{%- assign titleIndex = titleIndex | plus: 1 -%}
{%- endif -%}
{%- capture pagePath -%}
/assets/images/book/{{include.book.path}}/page_{{pageIndex}}.png
{%- endcapture -%}
<div>
<a class="uk-lineline book-page" href="{{pagePath}}" data-attrs="class: book-page">
<img src="{{pagePath}}" alt=""/>
</a>
</div>
<div>
<a class="uk-lineline book-page" href="{{pagePath}}" data-attrs="class: book-page">
<img src="{{pagePath}}" alt=""/>
</a>
</div>
{%- endfor -%}
</div>
</div>
2 changes: 1 addition & 1 deletion _includes/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
{% endif %}
{%- endif -%}
{% endfor %}
/ {{ page.breadcrumb | default: page.title }}
/ {{ page.breadcrumb | default: site.data.books[page.book].title | default: page.title }}
</div>
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<link rel="stylesheet" href="{{ "/assets/css/uikit.min.css" | relative_url }}" />
<link rel="stylesheet" href="{{ "/assets/css/slimeknights.css" | relative_url }}{{cache_buster}}"/>
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}"></script>
<script src="{{ "/assets/js/minetip.js" | relative_url }}"></script>
<script src="{{ "/assets/js/slimeknights.js" | relative_url }}{{cache_buster}}"></script>
<script src="{{ "/assets/js/uikit.min.js" | relative_url }}"></script>
<script src="{{ "/assets/js/uikit-icons.min.js" | relative_url }}"></script>
Expand Down
27 changes: 17 additions & 10 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
{% if include.html %}
{% assign prefix = "../" %}
{% assign suffix = " (HTML)" %}
{% assign link_suffix = "-html/cover" %}
{%- endif -%}
<nav class="navigation">
<ul class="uk-pagination">
{%- if include.previous -%}
<li>
{%- if include.previous.link -%}
<a href="../{{include.previous.link}}">
<a href="../{{ prefix | append: include.previous.link | append: link_suffix }}/">
{%- else -%}
<a href="../{{include.previous.title | slugify }}">
<a href="../{{ prefix }}{{ include.previous.title | slugify | append: link_suffix }}/">
{%- endif -%}
<span class="uk-margin-small-right" uk-pagination-previous></span>
{{ include.previous.title | default: include.previous.link }}
</a></li>
<span class="uk-margin-small-right" uk-pagination-previous></span>
{{ include.previous.title | default: include.previous.link | append: suffix }}
</a>
</li>
{%- endif -%}
{%- if include.next -%}
<li class="uk-margin-auto-left">
{%- if include.next.link -%}
<a href="../{{include.next.link}}">
<a href="../{{ prefix | append: include.next.link | append: link_suffix }}/">
{%- else -%}
<li><a href="../{{include.next.title | slugify }}">
<a href="../{{ prefix }}{{ include.next.title | slugify | append: link_suffix }}/">
{%- endif -%}
{{ include.next.title | default: include.next.link }}
<span class="uk-margin-small-left" uk-pagination-next></span>
</a></li>
{{ include.next.title | default: include.next.link | append: suffix }}
<span class="uk-margin-small-left" uk-pagination-next></span>
</a>
</li>
{%- endif -%}
</ul>
</nav>
35 changes: 35 additions & 0 deletions _layouts/book-html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
layout: page
---
{%- assign book = site.data.books[page.book] -%}
{% if page.page_num == -1 %}
{% assign cover = "-1" %}
{% endif %}
{% if page.page_num == 0 %}
{% assign left_page = "cover" %}
{% else %}
{% assign sub = page.page_num | minus: 1 %}
{% assign left_page = "page-" | append: sub %}
{% endif %}
<div class="mc-font-black book-page-html">
{% if page.page_num == -1 %}
<img src="/assets/images/book/{{ book.path }}/cover.png" alt="" style="padding-left: 206px; padding-right: 206px;">
{% else %}
<img src="/assets/images/book/{{ book.path }}/clean_{{ page.page_num }}.png" alt="">
{% endif %}
{{ content }}
{% unless page.page_num < 1 %}
<a href="../page-0/" class="back-arrow"><img src="/assets/images/book/arrows/{{ book.arrows }}/back.png" alt=""></a>
{% endunless %}
{% unless page.page_num == -1 %}
<a href="../{{ left_page }}/" class="left-arrow"><img src="/assets/images/book/arrows/{{ book.arrows }}/left.png" alt=""></a>
{% endunless %}
{% unless page.page_num == book.max_page %}
<a href="../page-{{ page.page_num | plus: 1 }}/" class="right-arrow{{ cover }}"><img src="/assets/images/book/arrows/{{ book.arrows }}/right.png" alt=""></a>
{% endunless %}
</div>
<p>Click on the arrows, icons, and links to navigate the book.</p>

<link rel="stylesheet" href="{{ "/assets/css/book-html.css" | relative_url }}{{cache_buster}}"/>
<script src="/assets/js/book-html.js"></script>
<script src="/assets/js/minetip.js" defer></script>
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}

Comment thread
paypur marked this conversation as resolved.
{%- if site.paginate %}
{%- assign posts = paginator.posts -%}
{%- else -%}
Expand Down
16 changes: 10 additions & 6 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
layout: default
---
<article class="post">

<header class="post-header">
{% include breadcrumbs.html %}
<h1 class="post-title">{{ page.title | escape }}</h1>
{% if page.next or page.previous %}
{% include navigation.html previous=page.previous next=page.next %}
{% assign book = site.data.books[page.book] %}
<h1 class="post-title">{{ book.title | default: page.title | escape }}</h1>
{% assign prev = book.previous | default: page.previous %}
{% assign nxt = book.next | default: page.next %}
{% if prev or nxt %}
{% if page.layout == "book-html" or page.layout == "book-cover-html" %}
{% include navigation.html previous=prev next=nxt html=1 %}
{% else %}
{% include navigation.html previous=prev next=nxt %}
{% endif %}
{% endif %}
</header>

<div class="post-content">
{{ content }}
</div>

</article>
Loading