Skip to content

Commit 835d730

Browse files
committed
📝 data no longer available
1 parent 329d762 commit 835d730

File tree

5 files changed

+64
-53
lines changed

5 files changed

+64
-53
lines changed

.github/workflows/tools-data.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929
- name: Tools release cache key
3030
id: test-data-key
3131
run: |
32-
# LATEST_RELEASE=$(curl -sLH 'Accept: application/json' https://api.github.com/repos/5etools-mirror-2/5etools-mirror-2.github.io/releases/latest)
33-
# LATEST_VERSION=$(echo $LATEST_RELEASE | grep tag_name | sed -e 's/.*"tag_name": "\([^"]*\)".*/\1/')
34-
# echo $LATEST_VERSION
3532
LATEST_VERSION="v1.209.3"
3633
3734
echo "🔹 Use $LATEST_VERSION"

CONTRIBUTING.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,12 @@ If there isn't an issue yet, open one! Be as specific as you can, and include th
2525
- **Use maven:** `./mvnw install`
2626
- **Use the Quarkus CLI**: `quarkus build`
2727

28-
To test with actual/live data, clone 5eTools and/or PF2eTools into a `sources` directory.
28+
To test with actual/live data, add 5eTools and/or PF2eTools into a `sources` directory.
2929

3030
Using the GitHub CLI:
3131

3232
```shell
3333
mkdir -p sources
34-
# 5eTools
35-
gh repo clone 5etools-mirror-2/5etools-mirror-2.github.io sources/5etools-mirror-2.github.io -- --depth=1
36-
gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
37-
gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
38-
# Optional: 5eTools images; requires an extra config step
39-
gh repo clone 5etools-mirror-2/5etools-img sources/5etools-img -- --depth=1
4034

4135
# PF2eTools
4236
gh repo clone Pf2eToolsOrg/Pf2eTools sources/Pf2eTools -- --depth=1
@@ -118,7 +112,7 @@ Next navigate to *Java* -> *Code Style* -> *Organize Imports*. Click *Import* an
118112
""
119113
],
120114
```
121-
115+
122116
#### IntelliJ
123117

124118
1. Open the *Settings* window
@@ -129,7 +123,7 @@ Next navigate to *Java* -> *Code Style* -> *Organize Imports*. Click *Import* an
129123
6. Ensure that the *Layout static imports separately* checkbox is checked
130124
7. Underneath that, change the entries so that they look like this:
131125

132-
```
126+
```shell
133127
import static all other imports
134128
<blank line>
135129
import java.*

README-WINDOWS.md

Lines changed: 58 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
[TTRPG-Convert-CLI PF2e]: https://obsidianttrpgtutorials.com/Obsidian+TTRPG+Tutorials/Plugin+Tutorials/TTRPG-Convert-CLI/TTRPG-Convert-CLI+PF2e
88

99
## Requirements
10+
1011
- [Git][] is recommended to easily download and update the JSON sources
1112
- Existing experience with using a command line isn't required, but may be useful. These instructions should be
1213
sufficient, but you can look at the following resources for additional background on how to use the Windows
1314
command line:
14-
- [A Beginner's Guide to the Windows Command Line](https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/)
15-
- [How to Open Command Prompt in a Folder](https://www.lifewire.com/open-command-prompt-in-a-folder-5185505)
15+
- [A Beginner's Guide to the Windows Command Line](https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/)
16+
- [How to Open Command Prompt in a Folder](https://www.lifewire.com/open-command-prompt-in-a-folder-5185505)
1617

1718
## Instructions
1819

@@ -27,7 +28,7 @@
2728
- `ttrpg-convert-cli-2.3.18-windows-x86_64.zip`
2829
- `ttrpg-convert-cli-2.3.18-examples.zip`
2930

30-
2. Unzip the downloaded files into a place you'll remember. For example, `Downloads`.
31+
2. Unzip the downloaded files into a place you'll remember. For example, `Downloads`.
3132
3. Navigate to the `bin` directory inside the unzipped files. It might be nested within another folder. You should see a `ttrpg-convert` EXE file in the folder - see the screenshot below.
3233
4. In Explorer, hold **Shift** and **Right Click** within the folder (not on any particular file). Select
3334
*Open in Terminal* (this may also be *Open PowerShell window here*, or *Open command window here* if you
@@ -40,46 +41,52 @@
4041
![A screenshot of a Windows Powershell window opened to the ttrpg-convert-cli directory](docs/screenshots/windows-powershell-open.png)
4142

4243
6. Acquire the JSON data sources following the instructions in [Convert 5eTools JSON data][] or [Convert Pf2eTools JSON data][] by entering commands in this window and pressing **Enter**.
43-
- For example, for 5eTools, run the following command (assuming that you have [Git][] installed):
44-
```
45-
git clone --depth 1 https://github.com/5etools-mirror-2/5etools-mirror-2.github.io.git
46-
```
47-
- Or, for Pf2eTools:
48-
```
44+
45+
- For example, for Pf2eTools:
46+
47+
```shell
4948
git clone --depth 1 https://github.com/Pf2eToolsOrg/Pf2eTools.git
5049
```
51-
- If you don't have Git, you can instead manually download the latest [5eTools release](https://github.com/Pf2eToolsOrg/Pf2eTools/releases/latest) or [Pf2eTools release](https://github.com/Pf2eToolsOrg/Pf2eTools/releases/latest) and extract the zip file to the `bin/` directory, so that it sits alongside the `ttrpg-convert.exe` file.
50+
51+
- If you don't have Git, you can instead manually download the latest [Pf2eTools release](https://github.com/Pf2eToolsOrg/Pf2eTools/releases/latest) and extract the zip file to the `bin/` directory, so that it sits alongside the `ttrpg-convert.exe` file.
52+
5253
- At this point, it should look like this:
5354
5455
![A screenshot of a Windows Explorer window with a ttrpg-convert.exe file next to a 5etools-mirror-2.github.io folder, and a Powershell window showing the output of the git command to download the sources](docs/screenshots/windows-explorer-powershell-with-sources.png)
55-
56+
5657
7. Run the tool to check that it works. Enter `./ttrpg-convert --version` following into the terminal and press Enter
5758
to run the command. You should see something like the following:
58-
```
59-
PS C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.14-windows-x86_64\bin> .\ttrpg-convert --version
60-
ttrpg-convert version 2.3.14
61-
Git commit: 6ecb310
62-
Build time: 2024-05-18T12:36:51Z
63-
```
59+
60+
```shell
61+
PS C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.14-windows-x86_64\bin> .\ttrpg-convert --version
62+
ttrpg-convert version 2.3.14
63+
Git commit: 6ecb310
64+
Build time: 2024-05-18T12:36:51Z
65+
```
66+
6467
If this works, then you're good to run the command to generate your notes. Otherwise, look below
6568
for troubleshooting instructions
69+
6670
8. Run the tool to generate your notes. What this looks like depends on what you want the tool to do
6771
and is described more in detail elsewhere in the README. For example, to generate notes from the
6872
D&D5e SRD into a folder called `dm`, run:
69-
```
70-
./ttrpg-convert --index -o dm 5etools-mirror-2.github.io-master/data
71-
```
72-
- You should see output like the following, listing out how many notes of each type were generated, and a new `dm` folder should be in that directory.
7373

74-
![A screenshot of a Windows Explorer window with a ttrpg-convert.exe file next to a 5etools-mirror-2.github.io folder and a dm folder, and a Powershell window showing the output of the ttrpg-convert command](docs/screenshots/windows-explorer-powershell-after-run.png)
74+
```shell
75+
./ttrpg-convert --index -o dm 5etools-mirror-2.github.io-master/data
76+
```
77+
78+
- You should see output like the following, listing out how many notes of each type were generated, and a new `dm` folder should be in that directory.
79+
80+
![A screenshot of a Windows Explorer window with a ttrpg-convert.exe file next to a 5etools-mirror-2.github.io folder and a dm folder, and a Powershell window showing the output of the ttrpg-convert command](docs/screenshots/windows-explorer-powershell-after-run.png)
81+
7582
9. To use additional sources, templates, or books, or for more configuration options,
7683
[create a config file][3] and [see the main README][4].
77-
78-
- For example, assuming you have a custom configuration located in a file called `dm-sources.json`, you can
79-
use this command to generate notes using that configuration:
80-
```
81-
./ttrpg-convert --index -o dm -c dm-sources.json 5etools-mirror-2.github.io-master/data
82-
```
84+
85+
- For example, assuming you have a custom configuration located in a file called `dm-sources.json`, you can use this command to generate notes using that configuration:
86+
87+
```shell
88+
./ttrpg-convert --index -o dm -c dm-sources.json 5etools-mirror-2.github.io-master/data
89+
```
8390

8491
[Convert 5eTools JSON data]: https://github.com/ebullient/ttrpg-convert-cli/tree/main?tab=readme-ov-file#convert-5etools-json-data
8592
[Convert Pf2eTools JSON data]: https://github.com/ebullient/ttrpg-convert-cli/tree/main?tab=readme-ov-file#convert-pf2etools-json-data
@@ -91,33 +98,42 @@
9198
## Uh oh, something went wrong
9299

93100
### What are the weird characters in the output?
101+
94102
On Windows, the command output will look like this, with weird characters at the start of lines.
95-
```
103+
104+
```shell
96105
[ ✅ OK] Finished reading config.
97106
⏱️ Reading C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.18-windows-x86_64\ttrpg-convert-cli-2.3.18-windows-x86_64\bin\5etools-mirror-2.github.io\data
98107
[ ✅ OK] Finished reading data.
99108
```
109+
100110
These are emoji that Windows is having trouble displaying. This doesn't affect the functionality at all, but
101111
if you want to see these properly, choose a font with emoji support in the command line, and run the following:
102-
```
112+
113+
```shell
103114
chcp 65001
104115
```
105116
106117
You should then start seeing the emoji correctly:
107-
```
118+
119+
```shell
108120
[ ✅ OK] Finished reading config.
109121
⏱️ Reading C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.18-windows-x86_64\ttrpg-convert-cli-2.3.18-windows-x86_64\bin\5etools-mirror-2.github.io\data
110122
[ ✅ OK] Finished reading data.
111123
```
112124
113125
### 'ttrpg-convert' is not recognized
126+
114127
If you see the following:
115-
```
128+
129+
```shell
116130
'ttrpg-convert' is not recognized as an internal or external command,
117131
operable program or batch file.
118132
```
133+
119134
or
120-
```
135+
136+
```shell
121137
ttrpg-convert : The term 'ttrpg-convert' is not recognized as the name of a cmdlet, function, script file, or operable
122138
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
123139
At line:1 char:1
@@ -131,7 +147,8 @@ This means that the command line can't find the program. This is usually because
131147
the wrong directory, or there's a typo somewhere in the name of the command.
132148

133149
Type in `dir` and press **Enter**. You should see output similar to this:
134-
```
150+
151+
```shell
135152
Directory:
136153
C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.18-windows-x86_64\ttrpg-convert-cli-2.3.18-windows-x86_64\bin
137154
@@ -148,21 +165,25 @@ file to the wrong directory. Make sure that you're opening the command line in t
148165

149166
If there *is* a `ttrpg-convert.exe` in the list, then the next most likely culprit is a typo. Make sure that the
150167
command starts with `./ttrpg-convert`. Try copy/pasting this command:
151-
```
168+
169+
```shell
152170
./ttrpg-convert --help
153171
```
172+
154173
If everything is set up correctly, you should see output starting with the following:
155-
```
174+
175+
```shell
156176
Convert TTRPG JSON data to markdown
157177
Usage: ttrpg-convert [-dhlvV] [--index] [-c=<configPath>] [-g=<datasource>]
158178
-o=<outputPath> [] [<input>...] [COMMAND]
159179
```
160180

161181
### No output at all
182+
162183
If you don't get any output at all when running the `ttrpg-convert` command, try running
163184
`./ttrpg-convert --help`. If you still get no output, like this:
164185
165-
```
186+
```shell
166187
C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.14-windows-x86_64\bin>.\ttrpg-convert --help
167188
168189
C:\Users\Kelly\Downloads\ttrpg-convert-cli-2.3.14-windows-x86_64\bin>

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ I use [Obsidian](https://obsidian.md) to keep track of my campaign notes. This p
2626
> - 🚜 [**Review the changelog**](CHANGELOG.md) for new capabilities (✨) and breaking changes (🔥💥).
2727
> - 🔮 Check out [**Conventions**](#conventions) and [**Recommendations**](#recommendations-for-using-the-cli)
2828
29+
> [!WARNING]
30+
> The 5eTools data repositories have been taken down. This tool will still work to create Obsidnian notes for data in this JSON format (homebrew, for example).
31+
2932
## Using the Command Line
3033

3134
This tool works in the command line, which is a text-based way to give instructions to your computer.

docs/configuration.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,6 @@ The following configuration options allow you to change how the CLI treats these
413413

414414
- Create a shallow clone of the images repository, and set `images.internalRoot` in your configuration file to tell the CLI where it can locally find "internal" images.
415415

416-
```shell
417-
git clone --depth 1 https://github.com/5etools-mirror-2/5etools-img.git
418-
```
419-
420416
```json
421417
"images": {
422418
"copyInternal": true,

0 commit comments

Comments
 (0)