This repository contains the official documentation website for react-native-pdf-jsi, built with Docusaurus.
Visit the live documentation at: react-native-pdf-jsi.netlify.app
- Getting Started Guides - Installation, Quick Start, Migration
- Feature Documentation - Core features, JSI acceleration, and advanced capabilities
- API Reference - Complete API documentation for all components and managers
- Code Examples - Working examples for common use cases
- Professional Design - Responsive, dark mode, mobile-friendly
- Node.js 18+ (we recommend using nvm)
- npm or yarn
# Clone the repository
git clone https://github.com/126punith/react-native-pdf-jsi-docs.git
cd react-native-pdf-jsi-docs
# Install dependencies
npm install# Start development server
npm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
The site will be available at http://localhost:3000
# Create production build
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service.
# Serve production build locally
npm run serveWe welcome contributions to improve the documentation!
-
Create a new
.mdfile in the appropriate directory:docs/getting-started/- For setup and installation guidesdocs/features/- For feature documentationdocs/api/- For API referencedocs/examples/- For code examples
-
Add frontmatter to your document:
---
sidebar_position: 1
---
# Your Page Title
Your content here...- Update
sidebars.tsif needed to include your new page in navigation
- Find the relevant
.mdfile - Make your changes
- Test locally with
npm start - Submit a pull request
- Custom styles are in
src/css/custom.css - Theme colors and configuration are in
docusaurus.config.ts - Component styling uses CSS modules
The site is automatically deployed to Netlify when changes are pushed to the main branch.
- Build the site:
npm run build- Deploy the
builddirectory to your hosting provider
Deployment is configured via netlify.toml:
- Build command:
npm run build - Publish directory:
build - Node version: 18
- Automatic redirects for SPA routing
- Security headers configured
- Asset caching optimized
docs/
├── intro.md # Homepage content
├── getting-started/
│ ├── installation.md # Platform setup guides
│ ├── quick-start.md # Quick start tutorial
│ └── migration.md # Migration from react-native-pdf
├── features/
│ ├── core-features.md # Basic PDF viewing
│ ├── jsi-acceleration.md # Performance features
│ ├── lazy-loading.md # Caching and optimization
│ ├── bookmarks.md # Bookmark management
│ ├── export.md # Export to images
│ ├── pdf-operations.md # Split/extract operations
│ ├── analytics.md # Reading analytics
│ └── advanced.md # Advanced features
├── api/
│ ├── pdf-component.md # Main Pdf component API
│ ├── hooks.md # React hooks
│ ├── bookmark-api.md # BookmarkManager API
│ ├── export-api.md # ExportManager API
│ └── jsi-api.md # JSI methods
└── examples/
├── basic-viewer.md # Simple PDF viewer
├── bookmarks-demo.md # Bookmark system
├── export-demo.md # Export functionality
└── full-featured.md # Complete app
Found a problem with the documentation?
- Check if it's already reported
- Create a new issue with:
- Clear description
- Steps to reproduce (if applicable)
- Screenshots (if relevant)
- Suggested fix (if you have one)
- Author: Punith M
- Email: punithm300@gmail.com
- GitHub: @126punith
- Library Repo: react-native-enhanced-pdf
- NPM: react-native-pdf-jsi
This documentation is licensed under the MIT License.
The library itself (react-native-pdf-jsi) is also MIT licensed.
- Built with Docusaurus
- Hosted on Netlify
- Based on react-native-pdf-jsi
Star the project on GitHub! ⭐ github.com/126punith/react-native-enhanced-pdf