Configuration System
SSH Portfolio uses a single YAML configuration file to define your entire portfolio content. This file controls your profile information, skills, projects, and contact details.Configuration File Location
The configuration file is namedconfig.yaml and should be placed in the same directory as the SSH Portfolio executable, or you can specify a custom path when starting the application.
By default, SSH Portfolio looks for config.yaml in:
- The current working directory
- The directory where the executable is located
YAML Structure Overview
Theconfig.yaml file has the following top-level structure:
Configuration Sections
The configuration is divided into several sections:- Profile Information - Your name, title, ASCII art, and introduction
- Skills - Technical skills organized by categories with optional proficiency levels
- Projects - Your portfolio projects with descriptions and technologies
- Contact - Your contact information and social media links
How to Reload Configuration
Currently, SSH Portfolio reads the configuration file on startup. To apply changes:- Edit your
config.yamlfile - Save the changes
- Restart the SSH Portfolio application
Configuration Schema
The configuration is parsed using Go structs defined inconfig/config.go. The main structure is:
Validation
SSH Portfolio will validate your YAML syntax on startup. If there are errors in your configuration file, the application will fail to start and display an error message indicating the issue. Common validation errors:- Invalid YAML syntax (indentation issues, missing colons)
- Missing required fields
- Invalid data types (e.g., providing a string where an array is expected)
Next Steps
Profile Configuration
Configure your name, title, and introduction
Skills Configuration
Set up your technical skills with proficiency levels
Projects Configuration
Add your portfolio projects
Contact Configuration
Configure your contact information