Skip to content

Latest commit

Β 

History

514 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NEONPAY Documentation

This directory contains the multi-language documentation for NEONPAY v2.6.0.

πŸ†• New in v2.6.0

The documentation now includes comprehensive guides for all new enterprise features:

  • Web Analytics Dashboard - Real-time monitoring via web interface
  • Notification System - Multi-channel notifications (Email, Telegram, SMS, Webhook)
  • Backup & Restore - Automated data protection
  • Template System - Pre-built bot templates
  • Multi-Bot Analytics - Network-wide performance tracking
  • Event Collection - Centralized event management
  • Web Sync Interface - Multi-bot synchronization via REST API

Structure

docs/
β”œβ”€β”€ index.rst              # Main index page with language selection
β”œβ”€β”€ conf.py               # Sphinx configuration
β”œβ”€β”€ Makefile              # Build commands
β”œβ”€β”€ requirements.txt      # Documentation dependencies
β”œβ”€β”€ en/                   # English documentation
β”‚   β”œβ”€β”€ index.rst
β”‚   β”œβ”€β”€ README.rst
β”‚   β”œβ”€β”€ API.rst
β”‚   β”œβ”€β”€ FAQ.rst
β”‚   └── SECURITY.rst
β”œβ”€β”€ ru/                   # Russian documentation
β”‚   β”œβ”€β”€ index.rst
β”‚   β”œβ”€β”€ README.rst
β”‚   β”œβ”€β”€ API.rst
β”‚   β”œβ”€β”€ FAQ.rst
β”‚   └── SECURITY.rst
└── az/                   # Azerbaijani documentation
    β”œβ”€β”€ index.rst
    β”œβ”€β”€ README.rst
    β”œβ”€β”€ API.rst
    β”œβ”€β”€ FAQ.rst
    └── SECURITY.rst

Building Documentation

Prerequisites

Install the required dependencies:

pip install -r docs/requirements.txt

Build Commands

  1. Build all languages:

    cd docs
    make html-multilang
  2. Build specific language:

    cd docs
    sphinx-build -b html -D language=en . _build/html/en
    sphinx-build -b html -D language=ru . _build/html/ru
    sphinx-build -b html -D language=az . _build/html/az
  3. Build main documentation:

    cd docs
    make html
  4. Clean build directory:

    cd docs
    make clean

Deployment

The documentation is automatically deployed to GitHub Pages when changes are pushed to the main branch. The deployment is handled by the GitHub Actions workflow in .github/workflows/docs.yml.

Manual Deployment

If you need to deploy manually:

  1. Build the documentation:

    cd docs
    make html-multilang
  2. Deploy to GitHub Pages:

    npx gh-pages -d _build/html

Adding New Languages

To add support for a new language:

  1. Create a new directory for the language (e.g., docs/fr/ for French)
  2. Copy the structure from an existing language directory
  3. Translate all .rst files in the new directory
  4. Update docs/conf.py to include the new language in the languages dictionary
  5. Update docs/index.rst to include a link to the new language
  6. Update .github/workflows/docs.yml to build the new language

File Formats

The documentation supports both RST and Markdown formats:

  • RST files (.rst) - Native Sphinx format, recommended for complex documentation
  • Markdown files (.md) - Converted using MyST parser, good for simple documentation

Contributing

When contributing to the documentation:

  1. Make changes to the appropriate language files
  2. Test the build locally:
    cd docs
    make html-multilang
  3. Check that all links work:
    cd docs
    make linkcheck
  4. Commit and push your changes

Troubleshooting

Common Issues

  1. Build fails with "language not found"

    • Make sure the language is defined in conf.py
    • Check that the language directory exists
  2. Links don't work between languages

    • Use relative paths: ../en/README instead of absolute paths
    • Make sure all referenced files exist
  3. Styling issues

    • Check that sphinx-rtd-theme is installed
    • Verify html_theme is set correctly in conf.py

Getting Help

If you encounter issues:

  1. Check the Sphinx documentation: https://www.sphinx-doc.org/
  2. Review the GitHub Actions logs for deployment issues
  3. Open an issue on the NEONPAY repository

About

🌟 NeonPay β€” a lightweight Python library for accepting payments with Telegram Stars (XTR) in your bots. Minimal code required to receive payments and handle donations.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages