This repository contains the complete documentation system for all JobMetric packages. Built with Docusaurus, a modern static website generator created by Facebook, this documentation site provides comprehensive guides, API references, and tutorials for each JobMetric package.
JobMetric is a collection of independent Laravel packages designed to provide modular functionality for Laravel applications. Each package is self-contained and can be used independently or in combination with other JobMetric packages.
The documentation covers all JobMetric packages including but not limited to:
- Core Packages: Package Core, Setting, Event System, Env Modifier
- Content Management: Metadata, Translation, Taxonomy, Language, URL, Custom Field
- E-commerce: Product, Order, Shopping Cart, Payment Method, Shipping Method, Tax, Coupon, Affiliate
- Business Features: Accounting, Marketing, Membership, Reminder
- Media & Content: Media, Post, Story, Tag, Comment, Reaction, Star
- UI & Layout: Layout, Form, Panelio
- Utilities: Barcode, Unit Converter, SMS, State Machine, Flow, Extension
- Specialized: Tron, Chat, Ticket, Toon, Multi Calendar
- And many more...
Each package has its own dedicated documentation section with installation guides, configuration options, usage examples, and API references.
Before you begin, ensure you have the following installed:
- Node.js: Version 20.0 or higher
- npm or yarn: Package manager for installing dependencies
- Clone this repository or navigate to the
documentdirectory:
cd document- Install dependencies using npm:
npm installOr using yarn:
yarn installTo start the local development server:
npm startOr using yarn:
yarn startThis command:
- Starts a local development server (usually at
http://localhost:3000) - Opens a browser window automatically
- Reflects most changes live without requiring a server restart
- Provides hot-reloading for a smooth development experience
To build the documentation site for production:
npm run buildOr using yarn:
yarn buildThis command generates static content in the build directory, which can be served using any static content hosting service such as:
- GitHub Pages
- Netlify
- Vercel
- AWS S3
- Any web server
To preview the production build locally:
npm run serveOr using yarn:
yarn serveThis serves the built static files from the build directory, allowing you to test the production build before deployment.
If you're using GitHub Pages for hosting, you can deploy using:
Using SSH:
USE_SSH=true npm run deployNot using SSH:
GIT_USER=<Your GitHub username> npm run deployThis command builds the website and pushes it to the gh-pages branch automatically.
For other hosting services:
- Build the site:
npm run buildoryarn build - Deploy the contents of the
builddirectory to your hosting service
document/
├── docs/ # Documentation files (Markdown/MDX)
│ ├── intro.md # Introduction page
│ └── ... # Package-specific documentation folders
├── blog/ # Blog posts (optional)
├── src/ # Source files (React components, CSS)
├── static/ # Static assets (images, files)
├── docusaurus.config.ts # Docusaurus configuration
├── sidebars.ts # Sidebar configuration
└── package.json # Project dependencies
To add documentation for a new JobMetric package:
- Create a new folder in the
docsdirectory with the package name - Add markdown files for different sections (installation, configuration, usage, API reference)
- Update
sidebars.tsto include the new package in the navigation - Follow the existing documentation structure and style
Contributions to improve the documentation are welcome! When contributing:
- Follow the existing documentation style and format
- Ensure all code examples are tested and working
- Update the table of contents in
sidebars.tsif adding new sections - Keep documentation clear, concise, and easy to follow
npm run clearoryarn clear: Clear the Docusaurus cachenpm run swizzleoryarn swizzle: Copy theme components for customizationnpm run write-translationsoryarn write-translations: Extract translatable stringsnpm run write-heading-idsoryarn write-heading-ids: Add heading IDs to markdown filesnpm run typecheckoryarn typecheck: Run TypeScript type checking
This documentation is part of the JobMetric project. Please refer to the main repository for license information.
Note: This is a public repository. The documentation is designed to help developers understand and use JobMetric packages effectively. If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request.