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:
- Create the production HTML tool in
tools/{tool-name}.htmlusingshared.cssandshared.js. - Register the tool card on the homepage in
index.htmlwithin the appropriate category grid. - Add tool metadata and walkthrough steps to
guides/data.js. - Define technical engine specifications in
scripts/technical-specs.mjs. - Run
npm run build:docsto automatically generate the tool documentation and screenshots. - Run
npm run build:seoto update the canonical sitemap.