mirror of
https://github.com/msikma/pokesprite.git
synced 2026-09-09 10:55:10 -05:00
Update docs - fix menu links
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<title>PokéSprite - Index</title>
|
||||
<!--
|
||||
PokéSprite - Documentation page
|
||||
pokesprite-images v2.0.0 master-299 [c82022bf]
|
||||
pokesprite-images v2.0.0 master-300 [bcf2b039]
|
||||
|
||||
(;゚~゚)ゝ”
|
||||
-->
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="text-section">
|
||||
<h1 class="title"><img class="p" src="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8/shiny/venusaur.png" alt="Shiny Venusaur" />PokéSprite</h1>
|
||||
<h2 class="subtitle">Database project of box and inventory sprites from the Pokémon core series games</h2>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/overview/index.html" class="curr">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/index.html" class="curr">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
<p><img class="banner" src="https://raw.githubusercontent.com/msikma/pokesprite/master/resources/images/banner_gen8_2x.png" width="726" /></p>
|
||||
<p>See the <a href="https://github.com/msikma/pokesprite">project page on Github</a> for more information.</a></p>
|
||||
<h3>Legacy images</h3>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>PokéSprite - Gen 7</title>
|
||||
<!--
|
||||
PokéSprite - Documentation page
|
||||
pokesprite-images v2.0.0 master-299 [c82022bf]
|
||||
pokesprite-images v2.0.0 master-300 [bcf2b039]
|
||||
|
||||
(;゚~゚)ゝ”
|
||||
-->
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="text-section">
|
||||
<h1 class="title"><img class="p" src="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8/shiny/venusaur.png" alt="Shiny Venusaur" />PokéSprite</h1>
|
||||
<h2 class="subtitle">Database project of box and inventory sprites from the Pokémon core series games</h2>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/overview/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="curr">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
|
||||
<p>This table lists all Pokémon box sprites for <strong>Gen 7</strong>, which can be found in the <a href="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen7x"><code>pokemon-gen7x</code></a> directory. The list is up-to-date as of Pokémon Sword/Shield, and some of the sprites are from an earlier generation. All shiny sprites were custom-made and are not found in-game.</p>
|
||||
<p>All box sprites are 68×56 as of Gen 8; the old Gen 7 sprites have been updated to the new size and contrast. (The original 40×30 sprites from Gen 7 are still available <a href="https://github.com/msikma/pokesprite/tree/master/icons">in the legacy sprites directory</a>.)</p>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<table class="pokesprite gen7">
|
||||
<thead>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 7 sprite overview table<br /><span>pokesprite-images v2.0.0 master-299 [c82022bf]</span></th></tr>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 7 sprite overview table<br /><span>pokesprite-images v2.0.0 master-300 [bcf2b039]</span></th></tr>
|
||||
<tr class="header"><th>#</th><th>Dex</th><th>Name</th><th colspan="2">名前/ローマ字</th><th colspan="2">Sprites</th><th colspan="3">Form</th><th>Slug</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>PokéSprite - Gen 8 (new sprites only)</title>
|
||||
<!--
|
||||
PokéSprite - Documentation page
|
||||
pokesprite-images v2.0.0 master-299 [c82022bf]
|
||||
pokesprite-images v2.0.0 master-300 [bcf2b039]
|
||||
|
||||
(;゚~゚)ゝ”
|
||||
-->
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="text-section">
|
||||
<h1 class="title"><img class="p" src="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8/shiny/venusaur.png" alt="Shiny Venusaur" />PokéSprite</h1>
|
||||
<h2 class="subtitle">Database project of box and inventory sprites from the Pokémon core series games</h2>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/overview/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="curr">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
|
||||
<p>This table lists all Pokémon box sprites for <strong>Gen 8 (new sprites only)</strong>, which can be found in the <a href="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8"><code>pokemon-gen8</code></a> directory. The list is up-to-date as of Pokémon Sword/Shield, and some of the sprites are from an earlier generation. All shiny sprites were custom-made and are not found in-game.</p>
|
||||
<p>All box sprites are 68×56 as of Gen 8; the old Gen 7 sprites have been updated to the new size and contrast. (The original 40×30 sprites from Gen 7 are still available <a href="https://github.com/msikma/pokesprite/tree/master/icons">in the legacy sprites directory</a>.)</p>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<table class="pokesprite gen8">
|
||||
<thead>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 8 sprite overview table (new sprites only)<br /><span>pokesprite-images v2.0.0 master-299 [c82022bf]</span></th></tr>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 8 sprite overview table (new sprites only)<br /><span>pokesprite-images v2.0.0 master-300 [bcf2b039]</span></th></tr>
|
||||
<tr class="header"><th>#</th><th>Dex</th><th>Name</th><th colspan="2">名前/ローマ字</th><th colspan="2">Sprites</th><th colspan="3">Form</th><th>Slug</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>PokéSprite - Gen 8</title>
|
||||
<!--
|
||||
PokéSprite - Documentation page
|
||||
pokesprite-images v2.0.0 master-299 [c82022bf]
|
||||
pokesprite-images v2.0.0 master-300 [bcf2b039]
|
||||
|
||||
(;゚~゚)ゝ”
|
||||
-->
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="text-section">
|
||||
<h1 class="title"><img class="p" src="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8/shiny/venusaur.png" alt="Shiny Venusaur" />PokéSprite</h1>
|
||||
<h2 class="subtitle">Database project of box and inventory sprites from the Pokémon core series games</h2>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/overview/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="curr">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
|
||||
<p>This table lists all Pokémon box sprites for <strong>Gen 8</strong>, which can be found in the <a href="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8"><code>pokemon-gen8</code></a> directory. The list is up-to-date as of Pokémon Sword/Shield, and some of the sprites are from an earlier generation. All shiny sprites were custom-made and are not found in-game.</p>
|
||||
<p>All box sprites are 68×56 as of Gen 8; the old Gen 7 sprites have been updated to the new size and contrast. (The original 40×30 sprites from Gen 7 are still available <a href="https://github.com/msikma/pokesprite/tree/master/icons">in the legacy sprites directory</a>.)</p>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<table class="pokesprite gen8">
|
||||
<thead>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 8 sprite overview table<br /><span>pokesprite-images v2.0.0 master-299 [c82022bf]</span></th></tr>
|
||||
<tr class="title"><th></th><th colspan="10">Gen 8 sprite overview table<br /><span>pokesprite-images v2.0.0 master-300 [bcf2b039]</span></th></tr>
|
||||
<tr class="header"><th>#</th><th>Dex</th><th>Name</th><th colspan="2">名前/ローマ字</th><th colspan="2">Sprites</th><th colspan="3">Form</th><th>Slug</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>PokéSprite - Gen None</title>
|
||||
<!--
|
||||
PokéSprite - Documentation page
|
||||
pokesprite-images v2.0.0 master-299 [c82022bf]
|
||||
pokesprite-images v2.0.0 master-300 [bcf2b039]
|
||||
|
||||
(;゚~゚)ゝ”
|
||||
-->
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="text-section">
|
||||
<h1 class="title"><img class="p" src="https://raw.githubusercontent.com/msikma/pokesprite/master/pokemon-gen8/shiny/venusaur.png" alt="Shiny Venusaur" />PokéSprite</h1>
|
||||
<h2 class="subtitle">Database project of box and inventory sprites from the Pokémon core series games</h2>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/overview/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="curr">Inventory</a></li></ul>
|
||||
<ul class="menu"><li><a href="https://msikma.github.io/pokesprite/index.html" class="">Index</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen7.html" class="">Gen 7</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8.html" class="">Gen 8</a></li><li><a href="https://msikma.github.io/pokesprite/overview/dex-gen8-new.html" class="">Gen 8 (New sprites)</a></li><li><a href="https://msikma.github.io/pokesprite/overview/inventory.html" class="">Inventory</a></li></ul>
|
||||
|
||||
<p>This table lists all inventory item sprites. These items are from the last several games and is up-to-date as of Pokémon Sword/Shield. The sprites are from Gen 3 through 8.</p>
|
||||
<p>All sprites are 32×32 in size. There are sets of sprites: one with a Sword/Shield style white outline around the sprites, and one without (as all previous games). Both sets contain the same number of sprites.</p>
|
||||
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<table class="pokesprite genNone">
|
||||
<thead>
|
||||
<tr class="title"><th></th><th colspan="10">Inventory sprite overview table<br /><span>pokesprite-images v2.0.0 master-299 [c82022bf]</span></th></tr>
|
||||
<tr class="title"><th></th><th colspan="10">Inventory sprite overview table<br /><span>pokesprite-images v2.0.0 master-300 [bcf2b039]</span></th></tr>
|
||||
<tr class="header"><th>#</th><th>Item ID</th><th>Name</th><th colspan="2">Sprites</th><th>Group</th><th>Filename</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -137,10 +137,10 @@ def wrap_docs_page(table_content, gen, gen_dir, curr_page, json_file, is_items_p
|
||||
def get_menu_links(curr_page):
|
||||
menu = [
|
||||
['index', 'Index'],
|
||||
['dex-gen7', 'Gen 7'],
|
||||
['dex-gen8', 'Gen 8'],
|
||||
['dex-gen8-new', 'Gen 8 (New sprites)'],
|
||||
['inventory', 'Inventory']
|
||||
['overview/dex-gen7', 'Gen 7'],
|
||||
['overview/dex-gen8', 'Gen 8'],
|
||||
['overview/dex-gen8-new', 'Gen 8 (New sprites)'],
|
||||
['overview/inventory', 'Inventory']
|
||||
]
|
||||
menu_links = ['<li><a href="%s" class="%s">%s</a></li>' % (docs_url(item[0]), 'curr' if item[0] == curr_page else '', item[1]) for item in menu]
|
||||
return ''.join(menu_links)
|
||||
@@ -183,7 +183,7 @@ def write_file(filename, content):
|
||||
print(content, file=file)
|
||||
|
||||
def docs_url(slug):
|
||||
return f'{DOCS_BASE_URL}/overview/{slug}.html'
|
||||
return f'{DOCS_BASE_URL}/{slug}.html'
|
||||
|
||||
def read_repo_state():
|
||||
'''Returns information about the current state of the repository'''
|
||||
|
||||
Reference in New Issue
Block a user