Data and layout improvements

This commit is contained in:
Marc Riera Irigoyen 2022-04-13 18:47:48 +02:00
parent 68b3d702b1
commit 29dc5c1e56
14 changed files with 82 additions and 13 deletions

View file

@ -11,7 +11,7 @@ collapsibleMenu = true
disableLandingPageButton = true disableLandingPageButton = true
disableShortcutsTitle=true disableShortcutsTitle=true
disableNextPrev = true disableNextPrev = true
custom_css = [ "css/custom.css", "css/compatibility.css" ] custom_css = [ "css/custom.css", "css/detail-pages.css" ]
[markup] [markup]
[markup.goldmark] [markup.goldmark]
@ -19,9 +19,17 @@ custom_css = [ "css/custom.css", "css/compatibility.css" ]
unsafe = true unsafe = true
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Acknowledgements"
url = "/acknowledgements"
weight = 1
[[menu.shortcuts]] [[menu.shortcuts]]
name = "<i class='fab fa-fw fa-github'></i> GitHub repo" name = "<i class='fas fa-fw fa-bookmark'></i> References"
identifier = "ds" url = "/references"
url = "https://github.com/MarcRiera/ddgo-controller-docs"
weight = 1 weight = 1
[[menu.shortcuts]]
name = "<i class='fab fa-fw fa-github'></i> GitHub repository"
url = "https://github.com/MarcRiera/ddgo-controller-docs"
weight = 3

View file

@ -1,6 +1,7 @@
--- ---
title: "Acknowledgements" title: "Acknowledgements"
weight: 9 _build:
list: never
--- ---
- [GMMan](https://github.com/GMMan), who has provided the internal details of the DGOC-44U and has conducted extensive research on the Densha de GO! Plug and Play. - [GMMan](https://github.com/GMMan), who has provided the internal details of the DGOC-44U and has conducted extensive research on the Densha de GO! Plug and Play.

View file

@ -6,5 +6,3 @@ weight: 4
The information in this section applies to the following controllers: The information in this section applies to the following controllers:
- **TCPP-20017:** Shinkansen controller - **TCPP-20017:** Shinkansen controller
This controller is similar externally to the PlayStation 2 version of the Shinkansen controller. However, the screen has been replaced by a sticker and there is no pedal, so the only functioning parts are the handles, the buttons and the door lamp. In addition, instead of USB, it connects to a Wiimote using its extension port, like other accessories made for the console. No details are available regarding internal functioning.

View file

@ -0,0 +1,8 @@
---
title: "Shinkansen controller"
weight: 1
---
{{% controller-page "tcpp20017" %}}
This controller is similar externally to the PlayStation 2 version of the Shinkansen controller. However, the screen has been replaced by a sticker and there is no pedal, so the only functioning parts are the handles, the buttons and the door lamp. In addition, instead of USB, it connects to a Wiimote using its extension port, like other accessories made for the console. No details are available regarding internal functioning.

View file

@ -1,6 +1,7 @@
--- ---
title: "References" title: "References"
weight: 10 _build:
list: never
--- ---
- General information: <http://autotraintas.hariko.com> - General information: <http://autotraintas.hariko.com>

View file

@ -86,6 +86,7 @@ tcpp20017:
name: "Shinkansen controller (Nintendo Wii)" name: "Shinkansen controller (Nintendo Wii)"
date: 2007-03-01 date: 2007-03-01
code: "TCPP-20017" code: "TCPP-20017"
image: "tcpp20017.jpg"
ref: "/controllers/wii/tcpp20017" ref: "/controllers/wii/tcpp20017"
zkns001: zkns001:

View file

@ -53,7 +53,8 @@ wii_shinkansen:
namejp: "電車でGO新幹線EX 山陽新幹線編" namejp: "電車でGO新幹線EX 山陽新幹線編"
date: 2007-03-01 date: 2007-03-01
code: "RVL-P-RG4J" code: "RVL-P-RG4J"
cover: "wii_shinkansen.jpg" image: "wii_shinkansen.jpg"
ref: "/software/wii/shinkansen"
controllers: controllers:
- model: tcpp20017 - model: tcpp20017

View file

@ -0,0 +1,46 @@
## Overview
<table>
<tr>
<td rowspan="4" id="image">{{ if (index .Site.Data.controllers (.Get 0)).image}}<img src="/images/controllers/{{ (index .Site.Data.controllers (.Get 0)).image }}"/>{{ end }}</td>
<td><strong>Name</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).name }}</td>
</tr>
<tr>
<td><strong>Release date</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).date | time.Format ":date_long" }}</td>
</tr>
<tr>
<td><strong>Serial code</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).code }}</td>
</tr>
<tr>
<td><strong>Notes</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).notes }}</td>
</tr>
</table>
## Supported software
<table>
<tr>
<th>Software</th>
<th>Support</th>
<th>Notes</th>
</tr>
{{ range sort .Site.Data.software "name" }}
{{ $software_name := .name }}
{{ $software_ref := .ref }}
{{ range .controllers }}
{{ if eq .model ($.Get 0) }}
<tr>
<td><a href="{{ $software_ref }}">{{ $software_name }}</a></td>
<td id="{{ if or .unofficial .partial }}partial{{ else }}native{{ end }}">{{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }}</td>
<td>{{ .notes }}</td>
</tr>
{{ end }}
{{ end }}
{{ end }}
</table>
## Technical details

View file

@ -1,8 +1,8 @@
## Software details ## Overview
<table> <table>
<tr> <tr>
<td rowspan="5">{{ if (index .Site.Data.software (.Get 0)).cover}}<img src="/images/covers/{{ (index .Site.Data.software (.Get 0)).cover }}"/>{{ end }}</td> <td rowspan="5" id="image">{{ if (index .Site.Data.software (.Get 0)).image}}<img src="/images/software/{{ (index .Site.Data.software (.Get 0)).image }}"/>{{ end }}</td>
<td><strong>Name</strong></td> <td><strong>Name</strong></td>
<td>{{ (index .Site.Data.software (.Get 0)).name }}</td> <td>{{ (index .Site.Data.software (.Get 0)).name }}</td>
</tr> </tr>
@ -44,7 +44,7 @@
</tr> </tr>
{{ range (index .Site.Data.software (.Get 0)).controllers }} {{ range (index .Site.Data.software (.Get 0)).controllers }}
<tr> <tr>
<td>{{ (index $.Site.Data.controllers .model).name }}</td> <td><a href="{{ (index $.Site.Data.controllers .model).ref }}">{{ (index $.Site.Data.controllers .model).name }}</a></td>
<td id="{{ if or .unofficial .partial }}partial{{ else }}native{{ end }}">{{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }}</td> <td id="{{ if or .unofficial .partial }}partial{{ else }}native{{ end }}">{{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }}</td>
<td>{{ .notes }}</td> <td>{{ .notes }}</td>
</tr> </tr>

View file

@ -4,6 +4,5 @@
.flex-block-wrapper table { .flex-block-wrapper table {
overflow-x: auto; overflow-x: auto;
white-space: wrap;
width: 100%; width: 100%;
} }

View file

@ -1,3 +1,9 @@
table #image img {
margin: 0;
max-width: 190px;
max-height: 190px;
}
table #native { table #native {
background-color: rgba(189,233,186,.35); background-color: rgba(189,233,186,.35);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB