diff --git a/gitbook/SUMMARY.md b/gitbook/SUMMARY.md index 603bcfcd..e3ec9bac 100644 --- a/gitbook/SUMMARY.md +++ b/gitbook/SUMMARY.md @@ -2,12 +2,21 @@ - [👋 Welcome to PocketHost](README.md) +## Daily Usage + +- [Getting Help](usage/help.md) +- [Creating an Instance](usage/create.md) +- [Instance Details](usage/instance-details/index.md) +- [FTP Access](usage/ftp.md) +- [Backup & Restore](usage/backup-and-restore.md) +- [Upgrading](usage/upgrading.md) + ## Development - [Overview](development/overview.md) - [Roadmap](development/roadmap.md) - [Running Just the Frontend](development/frontend.md) -- [Running Everything](development/full-stack/readme.md) +- [Running Everything](development/full-stack/index.md) - [Production Deployment](development/production.md) ## Release History diff --git a/gitbook/development/full-stack/readme.md b/gitbook/development/full-stack/index.md similarity index 100% rename from gitbook/development/full-stack/readme.md rename to gitbook/development/full-stack/index.md diff --git a/gitbook/releases/next.md b/gitbook/releases/next.md index 82df5c12..ebcb4504 100644 --- a/gitbook/releases/next.md +++ b/gitbook/releases/next.md @@ -12,3 +12,4 @@ - Fix: FTP now accesses `pb_migrations` - Fix: Secrets CSS light/dark mode fixes - Chore: remove `platform` field from instances and backups +- Docs: converted to GitBook diff --git a/gitbook/usage/backup-and-restore.md b/gitbook/usage/backup-and-restore.md new file mode 100644 index 00000000..6ba02fdd --- /dev/null +++ b/gitbook/usage/backup-and-restore.md @@ -0,0 +1,7 @@ +# Backup & Restore + +You can use [FTP](ftp.md) to perform backup and restore operations. + +## Before you Begin + +Make sure your PocketHost instance status is [idle](instance-details/index.md). diff --git a/gitbook/usage/create.md b/gitbook/usage/create.md new file mode 100644 index 00000000..6b25d1fb --- /dev/null +++ b/gitbook/usage/create.md @@ -0,0 +1,7 @@ +# Creating an Instance + +Every PocketHost instance runs on a unique subdomain. To create a new instance, head to [https://pockethost.io/app/new](https://pockethost.io/app/new). + +You'll need to choose a unique name. + +That's literally all you need to do! Voila, a new PocketBase instance will now be available. diff --git a/gitbook/usage/ftp.md b/gitbook/usage/ftp.md new file mode 100644 index 00000000..09478ae7 --- /dev/null +++ b/gitbook/usage/ftp.md @@ -0,0 +1,30 @@ +# FTP Access + +PocketHost allows you to access all your PocketBase files via Secure FTP (FTPS). + +## Accessing via FTP + +FTP to [ftp://pockethost.io](ftp://pockethost.io) and log in using your pockethost.io username and password. + +The initial directory listing contains a directory for each instance associated with your account. + +Inside each instance directory, you will find: + +| Directory Name | Description | +| -------------- | ----------------------------------------------------------------------------- | +| pb_data | The PocketBase data directory | +| pb_static | The location from which static files are served | +| pb_migrations | The PocketBase [migrations](https://pocketbase.io/docs/migrations/) directory | +| worker | The Deno-based cloud worker | + +## Recommended Clients + +### GUI + +- [FileZilla](https://filezilla-project.org/) is a great GUI frontend available for all platforms. + +### CLI + +- [ftp](https://ftp.gnu.org/) +- [wget](https://www.gnu.org/software/wget/) [[homebrew](https://formulae.brew.sh/formula/wget)] +- [lftp](https://lftp.yar.ru/) [[homebrew](https://formulae.brew.sh/formula/lftp)] diff --git a/gitbook/usage/help.md b/gitbook/usage/help.md new file mode 100644 index 00000000..c8f8732a --- /dev/null +++ b/gitbook/usage/help.md @@ -0,0 +1,9 @@ +# Getting Help + +## Discussion Forum + +The fastest and easiest way to get help is to head over to the [PocketHost Discussions](https://github.com/benallfree/pockethost/discussions) forum. Please do not create github issues without initiating a discussion first. + +## Email + +If you need to have a private conversation, contact ben@pockethost.io. diff --git a/gitbook/usage/instance-details/index.md b/gitbook/usage/instance-details/index.md new file mode 100644 index 00000000..1b349128 --- /dev/null +++ b/gitbook/usage/instance-details/index.md @@ -0,0 +1,21 @@ +# Instance Details + +## Status + +The instance status indicates whether the instance is currently running. Values might include `idle`, `starting`, and `running`. + + + +## Usage + +## Version + +## Admin URL + +## FTP access + +## Code samples + +## Secrets + +## Logs diff --git a/gitbook/usage/instance-details/status.png b/gitbook/usage/instance-details/status.png new file mode 100644 index 00000000..6a444d05 Binary files /dev/null and b/gitbook/usage/instance-details/status.png differ diff --git a/gitbook/usage/upgrading.md b/gitbook/usage/upgrading.md new file mode 100644 index 00000000..fe08690a --- /dev/null +++ b/gitbook/usage/upgrading.md @@ -0,0 +1,7 @@ +# Upgrading your Instance Version + +PocketHost supports all versions of PocketBase. + +Your instance uses [semver](https://semver.org/) to describe which version of PocketBase to run (eg, `~0.16.0`). + +If you need to change the semver, please contact us. diff --git a/packages/pockethost.io/src/components/CodeSample.svelte b/packages/pockethost.io/src/components/CodeSample.svelte index a5728f6c..176bcb23 100644 --- a/packages/pockethost.io/src/components/CodeSample.svelte +++ b/packages/pockethost.io/src/components/CodeSample.svelte @@ -2,17 +2,19 @@ import CopyButton from '$components/CopyButton.svelte' import { dbg } from '$util/logger' import { Highlight } from 'svelte-highlight' - import { typescript } from 'svelte-highlight/languages' + import { typescript, type LanguageType } from 'svelte-highlight/languages' import 'svelte-highlight/styles/github.css' export let code: string + export let language: LanguageType<'typescript' | 'bash'> = typescript + const handleCopy = () => { dbg('copied') }