AutoManual Project

AutoManual is a PHP-based project designed to dynamically display and manage a collection of manuals. It supports both local markdown files and external API sources, providing a user-friendly interface for navigating and rendering content.


Features


Project Structure

AutoManual/
├── manual/       # Directory for local markdown files
├── templates/    # UI templates for rendering 
├── config.txt    # Configuration file
├── index.php     # Main entry point for manual listing
├── show.php      # Renders individual manual content
├── content.php   # Additional content navigation (optional) 
├── vendor/       # Composer dependencies
└── README.md     # Project documentation

Requirements


Installation

  1. Clone the repository:

    git clone https://github.com/your-repo/AutoManual.git
  2. Navigate to the project directory:

    cd AutoManual
  3. Install dependencies:

    composer install
  4. Configure the project:

    • Create or modify config.txt in the root directory:
      enable_template_selector=true
      enable_navigation=true
      default_template=github
  5. Ensure the manual/ directory contains your markdown files.

Usage

  1. Access the project in your browser:

    • Navigate to http://your-server/automanual/index.php.
  2. Template Selection:

    • Use the dropdown menu to select a template. Preferences are saved in the session.
  3. Manual Rendering:

    • Local manuals are displayed from the manual/ directory.
    • External manuals are fetched via the contentapi query parameter.
  4. Pagination:

    • Customize the page and limit query parameters for pagination.

Configuration Options

Example

Fetch Local Manuals:

http://your-server/automanual/index.php

Fetch External Manuals via API:

http://your-server/automanual/index.php?contentapi=https://api.example.com/manuals

Render a Specific Manual:

http://your-server/automanual/show.php?manual=example-manual

Contributing

Contributions are welcome! Please fork the repository, create a new branch, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Credits


Reset to Default Theme

Home