Files
prowler/docs
Andoni A. 6815a9dd86 feat(api): add dynamic server URL configuration to OpenAPI schema
Add a new postprocessing hook 'add_api_servers' that dynamically configures
the servers array in the OpenAPI specification based on the request environment.

This hook:
- Detects the current environment (local, staging, or production) from the
  request host
- Adds the current server URL as the primary option
- Includes production (https://api.prowler.com) as a fallback option when
  generating from non-production environments
- Enables users to toggle between local and production servers in Mintlify's
  API playground via a dropdown

Server detection logic:
- localhost/127.0.0.1 → "Local Development Server"
- hosts with 'dev' or 'staging' → "Development/Staging API"
- api.prowler.com → "Prowler Cloud API"

This enables the "Try it out" feature in Mintlify documentation and allows
testing against different environments without modifying the spec.
2025-11-05 12:04:18 +01:00
..
2025-10-06 10:53:17 +02:00
2025-10-15 16:38:56 +02:00
2025-10-15 16:38:56 +02:00

Prowler Documentation

This repository contains the Prowler Open Source documentation powered by Mintlify.

Documentation Structure

  • Getting Started: Overview, installation, and basic usage guides
  • User Guide: Comprehensive guides for Prowler App, CLI, providers, and compliance
  • Developer Guide: Technical documentation for developers contributing to Prowler

Local Development

Install the Mintlify CLI to preview documentation changes locally:

npm i -g mint

Run the following command at the root of your documentation (where mint.json is located):

mint dev

View your local preview at http://localhost:3000.

Publishing Changes

Changes pushed to the main branch are automatically deployed to production through Mintlify's GitHub integration.

Documentation Guidelines

When contributing to the documentation, please follow the Prowler documentation style guide located in the .claude directory.

Troubleshooting

  • If your dev environment isn't running: Run mint update to ensure you have the most recent version of the CLI.
  • If a page loads as a 404: Make sure you are running in a folder with a valid mint.json file and that the page path is correctly listed in the navigation.

Resources