UNPKG

@fjell/registry

Version:

Dependency injection and service location system for the Fjell ecosystem

75 lines (51 loc) 1.97 kB
# Fjell Registry Documentation Site This is a React-based documentation site for the Fjell Registry package. It provides an interactive and modern way to view the project documentation with syntax highlighting and responsive design. ## Features - **Responsive Design** - Works on desktop, tablet, and mobile - **Modern UI** - Clean, modern interface with Fjell branding - **Syntax Highlighting** - Code blocks with proper syntax highlighting - **Markdown Support** - Full GitHub Flavored Markdown support - **Fast Loading** - Built with Vite for optimal performance ## Development ### Prerequisites - Node.js 22+ - npm ### Local Development ```bash # Install dependencies npm install # Start development server npm run dev # Build for production npm run build # Preview production build npm run preview ``` ### Testing ```bash # Run tests npm run test # Run tests in watch mode npm run test:watch ``` ## Deployment The site is automatically deployed to GitHub Pages when changes are pushed to the main branch or any release branch. The deployment is handled by the `.github/workflows/deploy-docs.yml` workflow. ## Architecture - **React 19** - Modern React with hooks - **TypeScript** - Full type safety - **Vite** - Fast build tool and dev server - **React Markdown** - Renders README.md dynamically - **React Syntax Highlighter** - Beautiful code syntax highlighting - **Vitest** - Fast unit testing framework ## Configuration The site is configured to: - Fetch the main README.md from the project root - Use the `/fjell-registry/` base path for GitHub Pages - Support dark theme code highlighting - Include responsive breakpoints for mobile devices ## Contributing The documentation site automatically reflects changes to the main README.md file. To update the site itself: 1. Make changes to the React components in `src/` 2. Test locally with `npm run dev` 3. Commit your changes 4. The site will automatically deploy via GitHub Actions