// The guides: a page each, from site/guides, with the docs' front page written here (#223). import fs from 'node:fs'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; const here = path.dirname(fileURLToPath(import.meta.url)); const read = name => fs.readFileSync(path.join(here, 'guides', name), 'utf8'); const front = `

Docs

How to run iPX on your own server, and how to talk to it and to the directory from a program of your own.

Install ipx and ipx-web
Build the two containers, start them, sign in and add people.
The command line
The ipx commands, and the control socket a program on the same machine can use.
The directory
Browsing it, connecting your iPX to it, and running one of your own.
ipx API reference
Every endpoint of an iPX server, what it takes and what it gives.
ipx-directory API reference
The directory's API, for reading what it lists and sharing with it.
`; export const guides = [ { href: '/docs/', file: 'docs/index.html', name: 'Overview', title: 'iPX docs', description: 'How to run iPX on your own server, and how to use its API and the directory’s.', body: front }, { href: '/docs/install', file: 'docs/install.html', name: 'Install', title: 'Install ipx and ipx-web - iPX docs', description: 'Run iPX and its page on your own server with Docker.', body: read('install.html') }, { href: '/docs/cli', file: 'docs/cli.html', name: 'Command line', title: 'The command line - iPX docs', description: 'The ipx commands, and its control socket.', body: read('cli.html') }, { href: '/docs/directory', file: 'docs/directory.html', name: 'Directory', title: 'The directory - iPX docs', description: 'Browse the directory, connect your iPX to it, or run your own.', body: read('directory.html') }, ];