PubDoc is a command-line tool that converts EPUB books into Docusaurus documentation sites. It extracts content from EPUB files, converts HTML to Markdown, and organizes the content in a Docusaurus project structure, making it easy to publish books as documentation websites.
- Go 1.21 or higher
# Clone the repository
git clone https://github.com/kinensake/pubdoc.git
cd pubdoc
# Build the binary
go build -o pubdoc
# Move to a directory in your PATH (optional)
sudo mv pubdoc /usr/local/bin/
go install github.com/kinensake/pubdoc@latest
pubdoc new my-book-site
cd my-book-site
pubdoc add /path/to/your/book.epub
npm start
npm run build
This project is enhanced with AI assistance for:
- Comprehensive code documentation with GoDoc style comments
- README generation and documentation
- Docusaurus template enhancement