Developer

Developer Documentation & Architecture

Repository structure, coding standards, tool registration, and guidelines for contributing new tools.

Repository Directory Map

Repository ArchitectureFilesystem
pdfshub/
├── index.html            # Main web portal entry point
├── developer.css         # Shared developer drawer and modal styles
├── developer.js          # Shared developer utilities and theme state
├── sw.js                 # PWA Service Worker caching engine
├── manifest.webmanifest  # PWA application manifest
├── docs/                 # Documentation website & technical manuals
│   ├── index.html        # Documentation Home Portal
│   ├── styles.css        # Documentation stylesheet
│   ├── docs.js           # Client-side search, TOC, & lightbox
│   ├── tools/            # 33 individual tool HTML & Markdown guides
│   └── images/           # 132 step walkthrough screenshots
├── guides/               # Visual tutorials & interactive guides
├── tools/                # 33 live PDF tool production HTML files
├── scripts/              # Automated build, test, and validation scripts
└── dist/                 # Production deployment directory

How to Add a New Tool

To register a new PDF utility in PDFHub:

  1. Create the production HTML tool in tools/{tool-name}.html using shared.css and shared.js.
  2. Register the tool card on the homepage in index.html within the appropriate category grid.
  3. Add tool metadata and walkthrough steps to guides/data.js.
  4. Define technical engine specifications in scripts/technical-specs.mjs.
  5. Run npm run build:docs to automatically generate the tool documentation and screenshots.
  6. Run npm run build:seo to update the canonical sitemap.