Altafid API Documentation
Professional API documentation site built with GitHub Pages.
π Live Documentation
Visit the live documentation at: https://your-username.github.io/altafid-api-docs/
π Whatβs Included
- Homepage - Modern landing page with feature highlights
- Quick Start Guide - Get started in 5 minutes
- API Reference - Complete endpoint documentation
- Code Examples - Ready-to-use bash scripts
- Responsive Design - Works on all devices
π¨ Features
- β Clean, modern UI design
- β Fully responsive layout
- β Syntax-highlighted code blocks
- β Easy navigation with sticky navbar
- β Professional styling with CSS variables
- β SEO-friendly structure
π οΈ Setup GitHub Pages
Option 1: Using This Repository
- Fork or clone this repository
1 2
git clone https://github.com/your-username/altafid-api-docs.git cd altafid-api-docs - Enable GitHub Pages
- Go to your repository settings
- Navigate to βPagesβ section
- Under βSourceβ, select βmainβ branch
- Click βSaveβ
- Visit your site
- Your site will be available at:
https://your-username.github.io/altafid-api-docs/ - It may take a few minutes to build
- Your site will be available at:
Option 2: Custom Domain
- Add a CNAME file
1 2 3 4
echo "docs.altafid.com" > CNAME git add CNAME git commit -m "Add custom domain" git push
- Configure DNS
- Add a CNAME record pointing to:
your-username.github.io - Or add A records pointing to GitHub Pages IPs:
- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153
- Add a CNAME record pointing to:
- Update repository settings
- Go to Settings β Pages
- Enter your custom domain
- Enable βEnforce HTTPSβ
π Project Structure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
altafid-api-docs/
βββ index.html # Homepage
βββ quickstart.html # Quick Start Guide
βββ docs.html # API Reference
βββ _config.yml # Jekyll configuration
βββ assets/
β βββ css/
β βββ style.css # Main stylesheet
βββ examples/ # Bash scripts
β βββ login.sh
β βββ create-task.sh
β βββ search-contact.sh
β βββ list-staff.sh
β βββ refresh-token.sh
β βββ logout.sh
βββ README.md # This file
π¨ Customization
Colors
Edit CSS variables in assets/css/style.css:
1
2
3
4
5
6
:root {
--primary-color: #2563eb; /* Main brand color */
--primary-dark: #1e40af; /* Darker shade */
--text-primary: #0f172a; /* Main text color */
/* ... more variables ... */
}
Content
- Update navigation links in all HTML files
- Modify footer information
- Add your logo in the navbar
- Update API endpoints in docs.html
Add New Pages
- Create a new HTML file
- Copy the header/footer from existing pages
- Add link to navigation menu
- Update
_config.ymlif needed
π§ͺ Testing Locally
With Python
1
2
3
4
# Python 3
python -m http.server 8000
# Visit http://localhost:8000
With Node.js
1
2
3
4
5
6
7
# Install http-server globally
npm install -g http-server
# Run server
http-server
# Visit http://localhost:8080
With Jekyll (Optional)
1
2
3
4
5
6
7
# Install Jekyll
gem install bundler jekyll
# Run Jekyll server
jekyll serve
# Visit http://localhost:4000
π Using the Example Scripts
The examples/ folder contains ready-to-use bash scripts:
- Make scripts executable
1
chmod +x examples/*.sh
- Update credentials
- Edit each script to add your credentials
- Or use environment variables
- Run scripts
1 2 3
./examples/login.sh ./examples/create-task.sh ./examples/search-contact.sh
π§ Configuration
_config.yml
Update Jekyll configuration:
1
2
3
4
5
6
title: Altafid API Documentation
description: Official API documentation for Altafid platform
url: "https://docs.altafid.com"
baseurl: ""
# Update these to match your setup
SEO
Each page includes meta tags for SEO. Update as needed:
1
2
<meta name="description" content="Your description here">
<title>Your Page Title</title>
π¦ Dependencies
This site uses:
- HTML5 - Structure
- CSS3 - Styling with custom properties
- GitHub Pages - Hosting
- Jekyll (optional) - Static site generation
No JavaScript frameworks required! Pure HTML/CSS for maximum performance.
π― Best Practices
File Organization
- Keep HTML files in root directory
- Store assets in
assets/folder - Use relative paths for portability
- Maintain consistent naming conventions
Performance
- Minimize external dependencies
- Use inline critical CSS if needed
- Optimize images before uploading
- Enable GitHub Pages caching
Maintenance
- Update API endpoints regularly
- Test all links periodically
- Keep code examples current
- Monitor GitHub Pages build status
π Troubleshooting
Site Not Loading
- Check GitHub Pages is enabled in settings
- Verify branch is set correctly (usually
main) - Wait a few minutes for initial build
- Check Actions tab for build errors
Custom Domain Issues
- Verify DNS records are correct
- Check CNAME file exists and is correct
- Wait for DNS propagation (up to 48 hours)
- Enable βEnforce HTTPSβ in settings
Styling Not Applied
- Check CSS file path is correct
- Verify
assets/css/style.cssexists - Clear browser cache
- Check browser console for errors
π License
This documentation template is provided as-is for use with Altafid API documentation.
π€ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
π§ Support
- Email: support@altafid.com
- Documentation: https://docs.altafid.com
- Issues: Use GitHub Issues for bugs/features
π Useful Links
Made with β€οΈ for Altafid API Documentation
Last updated: January 28, 2026