A comprehensive collection of encyclopedic technical documentation
Megadox is a curated collection of encyclopedic documentation covering some of the most influential software projects in computing history. Each volume has been meticulously researched, analyzed, and compiled into elegant EPUB and PDF formats.
-
GNU Emacs Internals (740KB EPUB)
- Comprehensive guide to Emacs architecture and implementation
- Covers C core, Elisp runtime, display engine, and major subsystems
- 31 chapters spanning the entire codebase
-
libsignal Encyclopedia (416KB EPUB)
- Complete guide to Signal's cryptographic protocol library
- Cryptographic primitives, protocol specifications, and implementation details
- Architectural evolution from 2013-2025
-
PDP-7 Unix: A Complete Reference (350KB EPUB)
- Definitive guide to the original Unix system
- Assembly code, filesystem, process management, and development tools
- Historical context and the birth of the Unix philosophy
-
PostgreSQL Internals (489KB EPUB)
- In-depth exploration of PostgreSQL's architecture
- Storage layer, query processing, transaction management, and replication
- Extension system and community culture
-
NetHack Encyclopedia (153KB EPUB)
- Complete guide to the legendary roguelike game
- Bestiary, item compendium, game mechanics, and dungeon generation
- Codebase architecture and cultural history
Visit the Megadox GitHub Pages site to browse and download all documentation.
This repository includes a unified build system for generating elegant EPUB and PDF documents from Markdown sources.
# macOS
brew install pandoc
brew install --cask mactex-no-gui # For PDF generation
# Ubuntu/Debian
sudo apt-get install pandoc texlive-xetex texlive-fonts-recommended# Build all documentation projects
make all
# Build specific project
make emacs
make libsignal/encyclopedia
make postgresql
make nethack
make unix-history-repo/docs
# Build specific format
cd <project-directory>
make epub # EPUB only
make pdf # PDF only
make html # Standalone HTML
# Check dependencies
make check
# View statistics
make stats
# Clean build artifacts
make cleanmegadox/
├── build.mk # Common build infrastructure
├── Makefile # Root makefile for building all projects
├── docs/ # GitHub Pages website
│ ├── index.html
│ └── books/ # Compiled EPUB/PDF files
├── emacs/ # GNU Emacs documentation
├── libsignal/ # libsignal documentation
├── postgresql/ # PostgreSQL documentation
├── nethack/ # NetHack documentation
└── unix-history-repo/ # Unix history documentation
All documents are compiled with:
- Elegant typography using Palatino and Menlo fonts
- Syntax highlighting for code blocks (Tango style)
- Professional formatting with XeLaTeX
- Comprehensive TOC with 3-level depth
- Cross-references throughout
- Literate Programming: Code and explanations interwoven
- Historical Context: Evolution and development patterns
- Comprehensive Coverage: Complete system documentation
- Cross-Referenced: Extensive internal linking
- Portable Formats: EPUB for e-readers, PDF for printing
This is a documentation compilation project. To contribute:
- Fork the repository
- Add or improve documentation
- Ensure builds succeed:
make check && make all - Submit a pull request
Documentation in this repository follows the licenses of their respective projects:
- GNU Emacs: GNU Free Documentation License v1.3+
- libsignal: AGPLv3 documentation
- PostgreSQL: PostgreSQL License
- NetHack: NetHack General Public License
- Unix: Historical documentation
See individual project directories for specific license information.
This collection was created using:
- Pandoc for document conversion
- XeLaTeX for PDF generation
- GitHub Pages for hosting
- Research and documentation from the respective project communities
- Website: https://ftrain.github.io/megadox/
- Repository: https://github.com/ftrain/megadox
Built with Pandoc and meticulous care