Skip to content

connectbot/connectbot.github.io

Repository files navigation

Build status

ConnectBot home page

Web page for ConnectBot, the first open source SSH client on Android.

For Contributors

Prerequisites

Getting Started

  1. Clone the repository:

    git clone https://github.com/connectbot/connectbot.github.io.git
    cd connectbot.github.io
  2. Install dependencies:

    pnpm install
  3. Start the development server:

    pnpm dev

    The site will be available at http://localhost:3000

Development Workflow

The site is built with Next.js and Nextra, a documentation framework. Content is written in MDX (Markdown + JSX) in the src/content/ directory.

Project structure:

  • src/content/ - MDX content files
  • src/content/_meta.ts - Page configuration (titles, navigation)
  • src/app/ - Next.js App Router structure
  • src/components/ - React components
  • public/ - Static assets

Git hooks: This project uses Lefthook for Git hooks:

  • Pre-commit: Runs ESLint auto-fix and TypeScript type checking
  • Commit-msg: Validates conventional commit format

Building and Testing

Build the site:

pnpm build

This generates a static export in the ./out directory.

Lint your code:

pnpm lint          # Check for errors
pnpm lint:fix      # Auto-fix errors

Type check:

pnpm run check:types

Check for unused dependencies:

pnpm run check:deps

Analyze bundle size:

pnpm run analyze

Deployment

The site is automatically deployed to GitHub Pages when changes are pushed to the develop branch. The CI workflow:

  1. Runs linting and type checking
  2. Builds the static site
  3. Deploys to GitHub Pages

You can preview the production build locally by serving the ./out directory:

npx serve ./out

About

Web page for ConnectBot project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8