Added complete configuration support with multiple formats and examples
to help users easily configure py-wikijs for their projects.
New Features:
- Configuration file templates for ENV, YAML, JSON, and INI formats
- config_helper.py: Universal configuration loader and client factory
* Auto-detects and loads configs from multiple formats
* Supports environment variables, YAML, JSON, and INI files
* Provides create_client_from_config() for easy client creation
* Validates configuration and provides helpful error messages
Configuration Templates:
- config.env.example: Environment variables (Docker, 12-factor apps)
- config.yaml.example: YAML with multi-environment support
- config.json.example: JSON for programmatic configuration
- config.ini.example: INI for traditional setups
Usage Examples:
- using_env_config.py: Complete example using .env files
- using_yaml_config.py: Complete example using YAML configuration
- using_json_config.py: Complete example using JSON configuration
Documentation:
- docs/CONFIGURATION_GUIDE.md: Comprehensive configuration guide
* All configuration methods explained
* Security best practices
* Environment-specific configurations
* Troubleshooting guide
Benefits:
✅ Flexible configuration (choose your preferred format)
✅ Keep credentials secure (no hardcoding)
✅ Environment-specific configs (dev/staging/prod)
✅ Docker/container-ready
✅ Full validation and error handling
✅ Comprehensive documentation and examples
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>