From b1913d7635aaea7a6a812bd0c9c1fb3824ab110d Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Tue, 19 Mar 2024 14:42:39 +0530 Subject: [PATCH 1/4] move bare ref and update links --- README.md | 2 +- {bare-reference => reference/bare}/api.md | 0 {bare-reference => reference/bare}/bare-modules.md | 0 .../bare}/nodejs-compatibility-with-bare.md | 0 {bare-reference => reference/bare}/overview.md | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename {bare-reference => reference/bare}/api.md (100%) rename {bare-reference => reference/bare}/bare-modules.md (100%) rename {bare-reference => reference/bare}/nodejs-compatibility-with-bare.md (100%) rename {bare-reference => reference/bare}/overview.md (100%) diff --git a/README.md b/README.md index 39881e9..516900b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ References for utilizing the Pear runtime. * [Application-Programming-Interface (API)](./reference/api.md) * [Application Configuration](./reference/configuration.md) -> The Pear runtime uses [Bare](https://github.com/holepunchto/bare) JavaScript runtime, which is a small and modular JavaScript runtime for desktop and mobile. To learn more, see [Bare Reference](./bare-reference/overview.md). +> The Pear runtime uses [Bare](https://github.com/holepunchto/bare) JavaScript runtime, which is a small and modular JavaScript runtime for desktop and mobile. To learn more, see [Bare Reference](./reference/bare/overview.md). ### Guides diff --git a/bare-reference/api.md b/reference/bare/api.md similarity index 100% rename from bare-reference/api.md rename to reference/bare/api.md diff --git a/bare-reference/bare-modules.md b/reference/bare/bare-modules.md similarity index 100% rename from bare-reference/bare-modules.md rename to reference/bare/bare-modules.md diff --git a/bare-reference/nodejs-compatibility-with-bare.md b/reference/bare/nodejs-compatibility-with-bare.md similarity index 100% rename from bare-reference/nodejs-compatibility-with-bare.md rename to reference/bare/nodejs-compatibility-with-bare.md diff --git a/bare-reference/overview.md b/reference/bare/overview.md similarity index 100% rename from bare-reference/overview.md rename to reference/bare/overview.md From c9d81998b8ba443c9fba6e5080d230c44dbf2c71 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Wed, 20 Mar 2024 12:57:04 +0530 Subject: [PATCH 2/4] move pear ref into subfolder --- SUMMARY.md | 14 +++++++------- reference/{ => pear}/api.md | 0 reference/{ => pear}/cli.md | 0 reference/{ => pear}/configuration.md | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename reference/{ => pear}/api.md (100%) rename reference/{ => pear}/cli.md (100%) rename reference/{ => pear}/configuration.md (100%) diff --git a/SUMMARY.md b/SUMMARY.md index 0d4901d..ca55578 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -4,15 +4,15 @@ ### Pear runtime -* [Command-Line-Interface (CLI)](./reference/cli.md) -* [Application-Programming-Interface (API)](./reference/api.md) -* [Application Configuration](./reference/configuration.md) +* [Command-Line-Interface (CLI)](./reference/pear/cli.md) +* [Application-Programming-Interface (API)](./reference/pear/api.md) +* [Application Configuration](./reference/pear/configuration.md) ### Bare reference -* [Overview](./bare-reference/overview.md) -* [Application-Programming-Interface (API)](./bare-reference/api.md) -* [Node.js Compatibility with Bare](./bare-reference/nodejs-compatibility-with-bare.md) -* [Bare Modules](./bare-reference/bare-modules.md) +* [Overview](./reference/bare/overview.md) +* [Application-Programming-Interface (API)](./reference/bare/api.md) +* [Node.js Compatibility with Bare](./reference/bare/nodejs-compatibility-with-bare.md) +* [Bare Modules](./reference/bare/bare-modules.md) ### Guides diff --git a/reference/api.md b/reference/pear/api.md similarity index 100% rename from reference/api.md rename to reference/pear/api.md diff --git a/reference/cli.md b/reference/pear/cli.md similarity index 100% rename from reference/cli.md rename to reference/pear/cli.md diff --git a/reference/configuration.md b/reference/pear/configuration.md similarity index 100% rename from reference/configuration.md rename to reference/pear/configuration.md From 8bbba613d2d1973f256c3028c070b761cb69e9c3 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Thu, 21 Mar 2024 16:53:46 +0530 Subject: [PATCH 3/4] update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 516900b..d467f53 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ Welcome to the Internet of Peers References for utilizing the Pear runtime. -* [Command-Line-Interface (CLI)](./reference/cli.md) -* [Application-Programming-Interface (API)](./reference/api.md) -* [Application Configuration](./reference/configuration.md) +* [Command-Line-Interface (CLI)](./reference/pear/cli.md) +* [Application-Programming-Interface (API)](./reference/pear/api.md) +* [Application Configuration](./reference/pear/configuration.md) > The Pear runtime uses [Bare](https://github.com/holepunchto/bare) JavaScript runtime, which is a small and modular JavaScript runtime for desktop and mobile. To learn more, see [Bare Reference](./reference/bare/overview.md). From 449f72c6e006c2b160cbff7c85253108c92a6d0b Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Thu, 21 Mar 2024 20:55:50 +0530 Subject: [PATCH 4/4] tiny fix --- guide/making-a-pear-desktop-app.md | 2 +- guide/starting-a-pear-desktop-project.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/making-a-pear-desktop-app.md b/guide/making-a-pear-desktop-app.md index 2692bd4..55f5a0f 100644 --- a/guide/making-a-pear-desktop-app.md +++ b/guide/making-a-pear-desktop-app.md @@ -262,7 +262,7 @@ function onMessageAdded (from, message) { } ``` -> Note that the `pear` dependency is used, even though it was not installed. This is the [Pear API](../reference/api.md), available to any Pear project. +> Note that the `pear` dependency is used, even though it was not installed. This is the [Pear API](../reference/pear/api.md), available to any Pear project. ## Step 4. Chat diff --git a/guide/starting-a-pear-desktop-project.md b/guide/starting-a-pear-desktop-project.md index 36b49db..e254862 100644 --- a/guide/starting-a-pear-desktop-project.md +++ b/guide/starting-a-pear-desktop-project.md @@ -45,7 +45,7 @@ The app should now show: ![Automatic reload](../assets/chat-app-2.png) -> Live reload with hot-module reloading is possible by using the `pear.watch` configuration and the [`pear.updates`](../reference/api.md#pearupdateslistener-async-functionfunction) API. The [pear-hotmods](https://github.com/holepunchto/pear-hotmods) convenience module can also be used. +> Live reload with hot-module reloading is possible by using the `pear.watch` configuration and the [`pear.updates`](../reference/pear/api.md#pearupdateslistener-async-functionfunction) API. The [pear-hotmods](https://github.com/holepunchto/pear-hotmods) convenience module can also be used. ## Step 4. Configuration @@ -69,7 +69,7 @@ Open `package.json` and update it to: Close the app and re-run `pear dev` to see the changes: the background is now light blue, and the initial window size is different. -See the [Configuration Documentation](../reference/configuration.md) for all options. +See the [Configuration Documentation](../reference/pear/configuration.md) for all options. ## Next