A focused documentation site for modern web development, built with MkDocs and Material for MkDocs.
- Python 3.x
- pip (Python package manager)
- Git
-
Clone the repository
git clone https://github.com/irfanhsajid/notebook.git cd notebook -
Install dependencies
pip install -r requirements.txt
-
Run the development server
mkdocs serve
-
Open your browser
Navigate to
http://127.0.0.1:8000to view the documentation site locally.
Irfans-Notebook/
├── docs/ # Documentation source files
│ ├── index.md # Homepage
│ ├── notes/ # Additional notes
│ └── [other-topics]/ # Topic-specific folders
├── mkdocs.yml # MkDocs configuration
├── requirements.txt # Python dependencies
└── README.md # This file
-
Create a new Markdown file in the appropriate directory under
docs/# Example: Adding a new JavaScript note touch docs/javascript/new-topic.md -
Write your content using Markdown syntax
-
Update the navigation in
mkdocs.ymlnav: - Programming Languages: - JavaScript: - Guide: javascript/guide.md - New Topic: javascript/new-topic.md # Add this line
-
Preview your changes
mkdocs serve
MkDocs with Material theme supports enhanced Markdown features:
-
Code blocks with syntax highlighting
```python def hello(): print("Hello, World!") ```
-
Admonitions (callouts)
!!! note "Important Note" This is an important note.
-
Tables, task lists, and more
Check the Material for MkDocs documentation for all available features.
The repository includes a GitHub Actions workflow that automatically deploys to GitHub Pages on every push to the main branch.
Setup Steps:
-
Enable GitHub Pages
- Go to your repository settings
- Navigate to Pages section
- Set source to
gh-pagesbranch - Save
-
Push to main branch
git add . git commit -m "Update documentation" git push origin main
-
Wait for deployment
- GitHub Actions will automatically build and deploy
- Check the Actions tab to monitor progress
- Site will be available at
https://irfanhsajid.github.io/notebook/
If you prefer to deploy manually:
# Build the static site
mkdocs build
# Deploy to GitHub Pages
mkdocs gh-deployThis command will:
- Build the site in the
site/directory - Push the built files to the
gh-pagesbranch - Make the site available on GitHub Pages
| Command | Description |
|---|---|
mkdocs serve |
Start the live-reloading development server |
mkdocs build |
Build the documentation site |
mkdocs gh-deploy |
Deploy to GitHub Pages |
mkdocs --help |
Show help information |
Edit mkdocs.yml to customize:
- Color scheme (light/dark mode)
- Navigation structure
- Features and plugins
- Site metadata
- Add the plugin to
requirements.txt - Update
mkdocs.ymlconfiguration - Run
pip install -r requirements.txt
This is a personal notebook, but suggestions and corrections are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -am 'Add some improvement') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
This project is open source and available under the MIT License.
- Documentation Site: https://irfanhsajid.github.io/notebook/
- MkDocs: https://www.mkdocs.org/
- Material for MkDocs: https://squidfunk.github.io/mkdocs-material/
Author: Irfan
Last Updated: December 2025