This is the GitHub Book Template - a modern, professional documentation template for creating and publishing books, guides, and technical documentation using Sphinx and GitHub Pages.
The GitHub Book Template provides a complete setup for building beautiful, searchable documentation websites. It combines the power of Sphinx documentation generator with GitHub Pages hosting, making it easy to create and maintain professional documentation.
- Sphinx-based Documentation: Built on Sphinx, the industry-standard documentation generator
- GitHub Pages Integration: Automatically publish your documentation to GitHub Pages
- Responsive Design: Read the Docs theme for beautiful, mobile-friendly documentation
- Search Functionality: Full-text search across all documentation pages
- Version Control: Keep your documentation in sync with your code
- Easy Editing: Edit on GitHub links for community contributions
- LaTeX Support: Mathematical equations and complex formatting support
- Multiple Output Formats: Generate HTML, PDF, and other formats
-
Clone the Repository
git clone https://github.com/rajacsp/github-book-template.git cd github-book-template -
Install Dependencies
pip install -r requirements.txt
-
Build Documentation
cd doc make html -
View Documentation Open
docs/index.htmlin your browser
.
├── doc/ # Source documentation files
│ ├── conf.py # Sphinx configuration
│ ├── index.rst # Documentation home page
│ ├── preface.rst # Preface/introduction
│ ├── ch02_*.rst # Chapter files
│ ├── ch03_*.rst # Chapter files
│ ├── images/ # Images and assets
│ └── scripts/ # Build scripts
├── docs/ # Generated HTML documentation
├── README.md # This file
└── requirements.txt # Python dependencies
Edit doc/conf.py to customize:
- Project name and copyright
- GitHub repository information
- Theme settings
- Extensions and plugins
cd doc
make htmlcd doc
make latexpdfcd doc
make clean- Push your changes to the
mainbranch - The generated
docs/folder is automatically served as your GitHub Pages site - Access your documentation at:
https://rajacsp.github.io/github-book-template/
To contribute to this template:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Preface: Introduction and overview
- Chapters: Organized content sections with examples and explanations
- Images: Visual assets and diagrams
- Code Examples: Embedded code samples and demonstrations
- Python 3.6+
- Sphinx 2.0+
- sphinx-rtd-theme
- Other dependencies listed in
requirements.txt
See LICENSE file for details.
For issues, questions, or suggestions, please open an issue on GitHub.
Happy documenting! 📚
