Skip to content

Commit

Permalink
docs: fix docs typos
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Dec 31, 2024
1 parent 3543ea6 commit 0a35118
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
13 changes: 10 additions & 3 deletions docs/src/content/docs/apis/launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const nostalgist = await Nostalgist.launch({

**type:** `string | HTMLCanvasElement` **default:** an empty string `''`

Use this option to specify the canvas element you want to launch the emulator with. If it's an `string`, we will look up the element by `document.querySelector`
Use this option to specify the canvas element you want to launch the emulator with. If it's an `string`, we will look up the element by `document.querySelector`.

If it's an empty string, a canvas element will be created automatically and this canvas element will be append to `document.body`.

Expand Down Expand Up @@ -260,8 +260,15 @@ const nostalgist = await Nostalgist.launch({
For example,
```js
const nostalgist = await Nostalgist.launch(options) // will not launch the emulator
await nostalgist.launchEmulator() // the emulator will be started
// will not launch the emulator
const nostalgist = await Nostalgist.launch({
core: 'fceumm',
rom: 'flappybird.nes',
runEmulatorManually: true
})
// the emulator will be launched
await nostalgist.launchEmulator()
```
+ #### `emscriptenModule`
Expand Down
1 change: 0 additions & 1 deletion docs/src/content/docs/guides/related.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ title: Related
+ These are the fundamental dependencies of Nostalgist.js.
+ [RetroArch](https://www.retroarch.com/) and its friends(the emulators/cores)
+ [Emscripten](https://emscripten.org/)
+ [BrowserFS](https://github.com/jvilk/BrowserFS)

+ We are using ROMs here for the purpose of demonstration.
+ [retrobrews](https://retrobrews.github.io/) and the authors of the homebrew games.
Expand Down
4 changes: 1 addition & 3 deletions docs/src/content/docs/guides/under-the-hood.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ await Nostalgist.nes('https://your-server.com/roms/super-mario-bros.nes')
Make sure your server have configured the CORS headers properly.

### Step two
Prepare a virtual file system.

We use [BrowserFS](https://github.com/jvilk/BrowserFS)'s `MemoryFS` to create a virtual file system. The files loaded by step one will be written here as well.
Prepare a virtual file system. The files loaded by step one will be written here as well.

### Step three
Launch RetroArch with the virtual file system and the canvas element we specified in the code.
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ Please refer to [nostalgist.js.org/apis](https://nostalgist.js.org/apis).
+ These are the fundamental dependencies of Nostalgist.js.
+ [RetroArch](https://www.retroarch.com/) and its friends(the emulators/cores)
+ [Emscripten](https://emscripten.org/)
+ [BrowserFS](https://github.com/jvilk/BrowserFS)

+ We are using ROMs here for the purpose of demonstration.
+ [retrobrews](https://retrobrews.github.io/) and the authors of the homebrew games.
Expand Down

0 comments on commit 0a35118

Please sign in to comment.