Skip to content

Commit

Permalink
minor doc updates (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemba authored Jan 3, 2025
1 parent 2bb6940 commit 0a21632
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 18 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ Two Docker setups exist: One general in the `docker/` folder. The other resides
When you've installed the prerequisites as described above for Linux or macOS, you can install Skyscraper by typing in the following commands:
```
$ cd
$ mkdir skysource
$ cd skysource
$ mkdir -p skysource && cd skysource
$ wget -q -O - https://raw.githubusercontent.com/Gemba/skyscraper/master/update_skyscraper.sh | bash
```
The last command will download and run the latest update script from Github. The script installs the latest release of Skyscraper. During the installation you might be asked for your sudo password. On RetroPie the default password is `raspberry`.
The last command will download and run the latest update script from Github. The script installs the latest release of Skyscraper, by default with the prefix `/usr/local/`. During the installation you might be asked for your sudo password. On RetroPie the default password is `raspberry`.

If you want also bash completion, then copy the [Skyscraper.bash](https://github.com/Gemba/skyscraper/blob/master/supplementary/bash-completion/Skyscraper.bash) to the folder of bash completion scripts according to your distribution.

Expand All @@ -127,7 +126,7 @@ git clone --depth 1 https://github.com/Gemba/skyscraper.git
cd skyscraper
[[ -f Makefile ]] && make --ignore-errors clean
rm --force .qmake.stash
QT_SELECT=5 qmake
QT_SELECT=5 qmake # Add PREFIX=/path/to if you want a different PREFIX than /usr/local
make -j$(nproc)
sudo make install
```
Expand Down
8 changes: 4 additions & 4 deletions docs/CLIHELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ Skyscraper --help
Skyscraper -h
```

### --hint

Displays one of Skyscrapers's 'Did you know?' tips and exits.

### -i <PATH>

Sets the rom input folder. By default Skyscraper will look for roms in the `/home/<user>/RetroPie/roms/<PLATFORM>` folder. If your roms are located in a non-default location, you can set the input path using this option. Consider setting this in [`config.ini`](CONFIGINI.md#inputfolder) instead.
Expand Down Expand Up @@ -609,6 +605,10 @@ Overrides the default gamelist filename of the frontend. If you are using a vari
Skyscraper -p megadrive -f pegasus --gamelistfilename metadata.txt # default for pegasus frontend is metadata.pegasus.txt
```

### --hint

Displays one of Skyscrapers's 'Did you know?' tips and exits.

### --includefrom &lt;FILENAME&gt;

Tells Skyscraper to only include the files listed in FILENAME. One filename per line (with _absolute_ path, eg. '/home/pi/RetroPie/roms/snes/subdir/somefile.zip').
Expand Down
2 changes: 1 addition & 1 deletion docs/PLATFORMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ additional information on this.
Thus, Skyscraper expects to find ROMs in `/home/pi/RetroPie/roms/satellaview`.
- Line 6 contains the extensions which are recognized by EmulationStation. These
extensions should be also be present in the `"formats":` block of `peas.json`.
However, Skyscraper uses case insensitive extension mapping. The
However, Skyscraper uses case insensitive file extension mapping. The
extensions `.7z` and `.zip` are added automagically by Skyscraper, thus the
`"formats":` list is usually shorter than the EmulationStation `<extension/>`
list.
Expand Down
27 changes: 22 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,31 @@

Welcome to the powerful one-stop scraping-tool to maintain your gamelists!

This fork is based on commit `654a31b` (2022-10-26) from [this
This repo is the official successor of [Lars Muldjord's
Skyscraper]((https://github.com/muldjord/skyscraper?tab=readme-ov-file#code-contributions-and-forks)).

### Key New Features at a Glance

- Several platforms added and supported out-of-the-box
- Platforms to scrape can be added via configuration files
- Support for EmulationStation Desktop Edition (ES-DE) as frontend
- Added scraping of game manuals as PDF
- Support for XDG Base Directory standard
- Commandline Bash completion on Linux systems
- Various configuration options added to fine-tune scraping and gamelist
creation
- Skyscraper manual also available in mkdocs/material layout

See also [all new features](CHANGELOG.md)

Backstory: This fork is based on commit `654a31b` (2022-10-26) from [this
fork](https://github.com/detain/skyscraper), which was a short-lived fork of
Lars' project. See also [features](CHANGELOG.md) applied here since Lars'
retired his project.
Skyscraper project after Lars retired his project.

Skyscraper focuses on RetroPie integration but it can also be used without
RetroPie. However, the RetroPie-Setup has a
[scriptmodule](https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/skyscraper.sh)
to install this Skyscraper fork.
to install this Skyscraper fork. In essence Skyscraper only relies on a C++ 17
toolchain and the Qt framework.

Ready? Let's [dive in](USECASE.md) or use the navigation pane on the left.
Ready? Let's [dive in](USECASE.md) or use the navigation pane on the left.
14 changes: 13 additions & 1 deletion supplementary/scraperdata/mame_map_update_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import csv
import pandas as pd
import requests

import sys

URL = (
"https://raw.githubusercontent.com/"
Expand All @@ -23,6 +23,18 @@
lines = req.text.split("\n")
hdr = lines[0].replace("<!--", "").replace("-->", "").strip()
print(f"[+] File info: {hdr}")

prev_hdr = ""
try:
with open(OUTFILE, "r") as prev:
prev_hdr = prev.readline().replace("# ","").strip()
except IOError:
pass

if (hdr == prev_hdr):
print(f"[*] No changes detected. No new {OUTFILE.name} written.")
sys.exit(0)

lines[0] = "<root>"
lines.append("</root>")
df = pd.read_xml("".join(lines), xpath="//root/*")
Expand Down
7 changes: 4 additions & 3 deletions supplementary/scraperdata/peas_and_idmap_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

from pathlib import Path
import json
import pandas as pd
import sys
import pandas as pd

replacements = {
"amigacd32": "cd32",
Expand All @@ -37,6 +37,7 @@ def print_platform_tree():
df = pd.read_csv(pid_map_fn)
df = df[~df.folder.str.contains("#")]
df = df.astype({col: int for col in df.columns[1:]})
df = df.sort_values("folder")
last_folder = df["folder"].values[-1]

print(f"[*] {pid_map_fn.name}:")
Expand Down Expand Up @@ -94,8 +95,8 @@ def print_coverage(df):
print(
f" The Games DB : {tgdb_count:3d}/{total} ({100.0 * tgdb_count/total:.1f}%)"
)
print(" Any not covered/matched platform can most likely be scraped by "
"utilizing the 'aliases' list of the peas.json file. Read the details: "
print(" Any not covered/matched platform can most likely be scraped by "
"utilizing the 'aliases' list in the peas.json file.\n Read the details: "
"https://gemba.github.io/skyscraper/PLATFORMS/#updating-peasjson-and-platforms_idmapcsv")


Expand Down

0 comments on commit 0a21632

Please sign in to comment.