![]() |
||
---|---|---|
.. | ||
.github/workflows | ||
_site | ||
assets/images | ||
Gemfile | ||
Gemfile.lock | ||
README.md | ||
_config.yml | ||
api-integration.md | ||
components.md | ||
configuration.md | ||
customization.md | ||
deployment.md | ||
favicon.ico | ||
index.md | ||
installation.md |
README.md
Gentelella Admin Template Documentation
This directory contains the complete documentation for Gentelella Admin Template, built with Jekyll and deployable to GitHub Pages.
đ Documentation Structure
- index.md - Main landing page with overview and quick start
- installation.md - Detailed installation guide
- configuration.md - Configuration and setup options
- components.md - Complete component reference
- performance.md - Performance optimization guide
- deployment.md - Production deployment instructions
- customization.md - Advanced customization techniques
- api-integration.md - API integration and data management
đ Local Development
Prerequisites
- Ruby 3.1 or higher
- Bundler gem
- Git
Setup
-
Clone the repository:
git clone https://github.com/puikinsh/gentelella.git cd gentelella/docs
-
Install dependencies:
bundle install
-
Start the development server:
bundle exec jekyll serve
-
Open your browser: Navigate to
http://localhost:4000
Development Commands
# Start development server
bundle exec jekyll serve
# Start with live reload
bundle exec jekyll serve --livereload
# Build for production
bundle exec jekyll build
# Build with specific base URL
bundle exec jekyll build --baseurl "/gentelella"
# Clean generated files
bundle exec jekyll clean
đ GitHub Pages Deployment
The documentation is automatically deployed to GitHub Pages using GitHub Actions.
Automatic Deployment
The site automatically deploys when changes are pushed to the main
branch in the docs/
directory. The workflow is defined in .github/workflows/pages.yml
.
Manual Deployment
To deploy manually:
-
Enable GitHub Pages:
- Go to repository Settings â Pages
- Set Source to "GitHub Actions"
-
Trigger deployment:
- Push changes to the
main
branch - Or manually trigger the workflow in the Actions tab
- Push changes to the
Custom Domain Setup
To use a custom domain:
-
Add CNAME file:
echo "docs.yoursite.com" > CNAME
-
Configure DNS: Add CNAME record pointing to
username.github.io
-
Update _config.yml:
url: "https://docs.yoursite.com" baseurl: ""
đ Content Management
Adding New Pages
-
Create new markdown file:
touch new-page.md
-
Add front matter:
--- layout: default title: Your Page Title nav_order: 9 ---
-
Write content using markdown
Page Structure
Each page should include:
---
layout: default
title: Page Title
nav_order: 1
description: "Page description for SEO"
permalink: /custom-url/
---
# Page Title
{: .no_toc }
Page description
{: .fs-6 .fw-300 }
## Table of contents
{: .no_toc .text-delta }
1. TOC
{:toc}
---
## Your Content Here
Navigation
Navigation is automatically generated based on:
nav_order
- Controls position in menutitle
- Displays in navigation- File structure for sub-pages
Styling and Components
The documentation uses Just the Docs theme with custom styling.
Available Components
Callouts:
{: .highlight }
đĄ **Pro Tip**: Your tip content here
{: .warning }
â ī¸ **Warning**: Important warning here
Code Blocks:
```javascript
// Code with syntax highlighting
const example = 'hello world';
Tables:
| Column 1 | Column 2 |
|----------|----------|
| Data 1 | Data 2 |
Buttons:
[Button Text](link){: .btn .btn-primary }
đ§ Configuration
_config.yml
Key configuration options:
# Site settings
title: Gentelella Admin Template
description: Modern Bootstrap 5 Admin Dashboard Template
url: "https://puikinsh.github.io"
baseurl: "/gentelella"
# Theme
theme: just-the-docs
# Search
search_enabled: true
# Navigation
nav_sort: case_insensitive
# Footer
footer_content: "Copyright © 2024 Colorlib"
# External links
aux_links:
"GitHub": "//github.com/puikinsh/gentelella"
"Colorlib": "//colorlib.com"
Gemfile
Dependencies managed through Bundler:
source "https://rubygems.org"
# GitHub Pages compatible Jekyll version
gem "github-pages", group: :jekyll_plugins
# Theme
gem "just-the-docs"
# Jekyll plugins
group :jekyll_plugins do
gem "jekyll-feed"
gem "jekyll-sitemap"
gem "jekyll-seo-tag"
end
đ Analytics and SEO
Google Analytics
Add tracking ID to _config.yml
:
ga_tracking: UA-XXXXXXXX-X
SEO Optimization
- All pages include meta descriptions
- Structured data for documentation
- Sitemap automatically generated
- Social media meta tags
Performance
- Static site generation for fast loading
- Image optimization
- Minified CSS and HTML
- CDN-ready assets
đ¤ Contributing
Documentation Guidelines
- Clear and concise writing
- Include code examples
- Add table of contents for long pages
- Use consistent formatting
- Include links to related sections
Editing Process
- Fork the repository
- Create feature branch
- Make changes to documentation
- Test locally with Jekyll
- Submit pull request
Style Guide
- Use sentence case for headings
- Include code examples for all features
- Add screenshots when helpful
- Link to external resources appropriately
- Keep paragraphs concise
đ Troubleshooting
Common Issues
Bundle install fails:
# Update RubyGems
gem update --system
# Clear bundle cache
bundle clean --force
rm Gemfile.lock
bundle install
Jekyll serve fails:
# Clear Jekyll cache
bundle exec jekyll clean
# Regenerate
bundle exec jekyll serve --trace
GitHub Pages build fails:
- Check Jekyll build logs in Actions tab
- Ensure all gems are GitHub Pages compatible
- Validate YAML front matter
Getting Help
- Check Jekyll documentation
- Review Just the Docs guide
- Open issue in repository
đ License
Documentation is licensed under MIT License - see main repository LICENSE file for details.
đ Acknowledgments
- Built with Jekyll
- Styled with Just the Docs
- Hosted on GitHub Pages
- Template by Colorlib