Skip to the content.

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

🎨 Features

πŸ› οΈ Setup GitHub Pages

Option 1: Using This Repository

  1. Fork or clone this repository
    1
    2
    
    git clone https://github.com/your-username/altafid-api-docs.git
    cd altafid-api-docs
    
  2. Enable GitHub Pages
    • Go to your repository settings
    • Navigate to β€œPages” section
    • Under β€œSource”, select β€œmain” branch
    • Click β€œSave”
  3. 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

Option 2: Custom Domain

  1. Add a CNAME file
    1
    2
    3
    4
    
    echo "docs.altafid.com" > CNAME
    git add CNAME
    git commit -m "Add custom domain"
    git push
    
  2. 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
  3. 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

  1. Update navigation links in all HTML files
  2. Modify footer information
  3. Add your logo in the navbar
  4. Update API endpoints in docs.html

Add New Pages

  1. Create a new HTML file
  2. Copy the header/footer from existing pages
  3. Add link to navigation menu
  4. Update _config.yml if 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:

  1. Make scripts executable
    1
    
    chmod +x examples/*.sh
    
  2. Update credentials
    • Edit each script to add your credentials
    • Or use environment variables
  3. 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:

No JavaScript frameworks required! Pure HTML/CSS for maximum performance.

🎯 Best Practices

File Organization

Performance

Maintenance

πŸ› Troubleshooting

Site Not Loading

  1. Check GitHub Pages is enabled in settings
  2. Verify branch is set correctly (usually main)
  3. Wait a few minutes for initial build
  4. Check Actions tab for build errors

Custom Domain Issues

  1. Verify DNS records are correct
  2. Check CNAME file exists and is correct
  3. Wait for DNS propagation (up to 48 hours)
  4. Enable β€œEnforce HTTPS” in settings

Styling Not Applied

  1. Check CSS file path is correct
  2. Verify assets/css/style.css exists
  3. Clear browser cache
  4. Check browser console for errors

πŸ“„ License

This documentation template is provided as-is for use with Altafid API documentation.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“§ Support


Made with ❀️ for Altafid API Documentation

Last updated: January 28, 2026