Skip to content

126punith/react-native-pdf-jsi-docs

Repository files navigation

react-native-pdf-jsi Documentation

This repository contains the official documentation website for react-native-pdf-jsi, built with Docusaurus.

🚀 Live Site

Visit the live documentation at: react-native-pdf-jsi.netlify.app

📦 What's Included

  • 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

🛠 Development

Prerequisites

  • Node.js 18+ (we recommend using nvm)
  • npm or yarn

Installation

# 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

Local Development

# Start development server
npm start

This 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

Build

# Create production build
npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Test Build Locally

# Serve production build locally
npm run serve

📝 Contributing

We welcome contributions to improve the documentation!

Adding New Documentation

  1. Create a new .md file in the appropriate directory:

    • docs/getting-started/ - For setup and installation guides
    • docs/features/ - For feature documentation
    • docs/api/ - For API reference
    • docs/examples/ - For code examples
  2. Add frontmatter to your document:

---
sidebar_position: 1
---

# Your Page Title

Your content here...
  1. Update sidebars.ts if needed to include your new page in navigation

Improving Existing Documentation

  1. Find the relevant .md file
  2. Make your changes
  3. Test locally with npm start
  4. Submit a pull request

🎨 Styling

  • Custom styles are in src/css/custom.css
  • Theme colors and configuration are in docusaurus.config.ts
  • Component styling uses CSS modules

🚢 Deployment

The site is automatically deployed to Netlify when changes are pushed to the main branch.

Manual Deployment

  1. Build the site:
npm run build
  1. Deploy the build directory to your hosting provider

Netlify Configuration

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

📚 Documentation Structure

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

🐛 Reporting Issues

Found a problem with the documentation?

  1. Check if it's already reported
  2. Create a new issue with:
    • Clear description
    • Steps to reproduce (if applicable)
    • Screenshots (if relevant)
    • Suggested fix (if you have one)

📧 Contact

📄 License

This documentation is licensed under the MIT License.

The library itself (react-native-pdf-jsi) is also MIT licensed.

🙏 Acknowledgments


Star the project on GitHub!github.com/126punith/react-native-enhanced-pdf

About

Documentation website for react-native-pdf-jsi package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published