diff --git a/config.toml b/config.toml index 8131711..d766fd6 100644 --- a/config.toml +++ b/config.toml @@ -11,7 +11,7 @@ collapsibleMenu = true disableLandingPageButton = true disableShortcutsTitle=true disableNextPrev = true -custom_css = [ "css/custom.css", "css/compatibility.css" ] +custom_css = [ "css/custom.css", "css/detail-pages.css" ] [markup] [markup.goldmark] @@ -19,9 +19,17 @@ custom_css = [ "css/custom.css", "css/compatibility.css" ] unsafe = true +[[menu.shortcuts]] +name = " Acknowledgements" +url = "/acknowledgements" +weight = 1 [[menu.shortcuts]] -name = " GitHub repo" -identifier = "ds" -url = "https://github.com/MarcRiera/ddgo-controller-docs" +name = " References" +url = "/references" weight = 1 + +[[menu.shortcuts]] +name = " GitHub repository" +url = "https://github.com/MarcRiera/ddgo-controller-docs" +weight = 3 diff --git a/content/acknowledgements/_index.md b/content/acknowledgements/_index.md index 142add8..6cf6041 100644 --- a/content/acknowledgements/_index.md +++ b/content/acknowledgements/_index.md @@ -1,6 +1,7 @@ --- 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. diff --git a/content/controllers/wii/_index.md b/content/controllers/wii/_index.md index e5d1246..17ce0fd 100644 --- a/content/controllers/wii/_index.md +++ b/content/controllers/wii/_index.md @@ -6,5 +6,3 @@ weight: 4 The information in this section applies to the following controllers: - **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. diff --git a/content/controllers/wii/tcpp20017/_index.md b/content/controllers/wii/tcpp20017/_index.md new file mode 100644 index 0000000..dd12203 --- /dev/null +++ b/content/controllers/wii/tcpp20017/_index.md @@ -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. diff --git a/content/references/_index.md b/content/references/_index.md index f1ffa18..f27b973 100644 --- a/content/references/_index.md +++ b/content/references/_index.md @@ -1,6 +1,7 @@ --- title: "References" -weight: 10 +_build: + list: never --- - General information: diff --git a/data/controllers.yml b/data/controllers.yml index 7056912..ca0ce7e 100644 --- a/data/controllers.yml +++ b/data/controllers.yml @@ -86,6 +86,7 @@ tcpp20017: name: "Shinkansen controller (Nintendo Wii)" date: 2007-03-01 code: "TCPP-20017" + image: "tcpp20017.jpg" ref: "/controllers/wii/tcpp20017" zkns001: diff --git a/data/software.yml b/data/software.yml index 54567f8..879d5d6 100644 --- a/data/software.yml +++ b/data/software.yml @@ -53,7 +53,8 @@ wii_shinkansen: namejp: "電車でGO!新幹線EX 山陽新幹線編" date: 2007-03-01 code: "RVL-P-RG4J" - cover: "wii_shinkansen.jpg" + image: "wii_shinkansen.jpg" + ref: "/software/wii/shinkansen" controllers: - model: tcpp20017 diff --git a/layouts/shortcodes/controller-page.html b/layouts/shortcodes/controller-page.html new file mode 100644 index 0000000..7b795e3 --- /dev/null +++ b/layouts/shortcodes/controller-page.html @@ -0,0 +1,46 @@ +## Overview + + + + + + + + + + + + + + + + + + + +
{{ if (index .Site.Data.controllers (.Get 0)).image}}{{ end }}Name{{ (index .Site.Data.controllers (.Get 0)).name }}
Release date{{ (index .Site.Data.controllers (.Get 0)).date | time.Format ":date_long" }}
Serial code{{ (index .Site.Data.controllers (.Get 0)).code }}
Notes{{ (index .Site.Data.controllers (.Get 0)).notes }}
+ +## Supported software + + + + + + + + {{ range sort .Site.Data.software "name" }} + {{ $software_name := .name }} + {{ $software_ref := .ref }} + {{ range .controllers }} + {{ if eq .model ($.Get 0) }} + + + + + + {{ end }} + {{ end }} + {{ end }} +
SoftwareSupportNotes
{{ $software_name }}{{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }}{{ .notes }}
+ +## Technical details diff --git a/layouts/shortcodes/software-page.html b/layouts/shortcodes/software-page.html index 3f1b0bf..367280f 100644 --- a/layouts/shortcodes/software-page.html +++ b/layouts/shortcodes/software-page.html @@ -1,8 +1,8 @@ -## Software details +## Overview - + @@ -44,7 +44,7 @@ {{ range (index .Site.Data.software (.Get 0)).controllers }} - + diff --git a/static/css/custom.css b/static/css/custom.css index 311cb80..7b9bb65 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -4,6 +4,5 @@ .flex-block-wrapper table { overflow-x: auto; - white-space: wrap; width: 100%; } diff --git a/static/css/compatibility.css b/static/css/detail-pages.css similarity index 60% rename from static/css/compatibility.css rename to static/css/detail-pages.css index ca748d6..b5fba36 100644 --- a/static/css/compatibility.css +++ b/static/css/detail-pages.css @@ -1,3 +1,9 @@ +table #image img { + margin: 0; + max-width: 190px; + max-height: 190px; +} + table #native { background-color: rgba(189,233,186,.35); } diff --git a/static/images/controllers/tcpp20017.jpg b/static/images/controllers/tcpp20017.jpg new file mode 100644 index 0000000..64b1f3b Binary files /dev/null and b/static/images/controllers/tcpp20017.jpg differ diff --git a/static/images/covers/wii_shinkansen.jpg b/static/images/covers/wii_shinkansen.jpg deleted file mode 100644 index 6a62f26..0000000 Binary files a/static/images/covers/wii_shinkansen.jpg and /dev/null differ diff --git a/static/images/software/wii_shinkansen.jpg b/static/images/software/wii_shinkansen.jpg new file mode 100644 index 0000000..98390c7 Binary files /dev/null and b/static/images/software/wii_shinkansen.jpg differ
{{ if (index .Site.Data.software (.Get 0)).cover}}{{ end }}{{ if (index .Site.Data.software (.Get 0)).image}}{{ end }} Name {{ (index .Site.Data.software (.Get 0)).name }}
{{ (index $.Site.Data.controllers .model).name }}{{ (index $.Site.Data.controllers .model).name }} {{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }} {{ .notes }}