Configuration
While Code-y works out-of-the-box with command-line flags, you can create a `codey.config.js` file in your project's root for more permanent and shareable settings.
`codey.config.js` Example
Here is an example configuration file showing some of the available options. Any command-line flag can be represented here in camelCase.
module.exports = {
// The root directory of your source files
root: './src',
// Where to save the generated documentation
output: './documentation',
// Port for the documentation UI
port: 3000,
// Enable AI-powered descriptions
generateDescriptions: true,
// Ollama configuration
ollamaUrl: 'http://localhost:11434',
ollamaModel: 'gemma:3b',
ollamaEmbeddingModel: 'nomic-embed-text:latest',
// UI display options
showCode: true,
showMethods: true,
showSimilarity: true,
theme: 'dark',
// File matching patterns
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.next/**',
'**/*.test.ts',
],
include: [
'**/*.tsx',
'**/*.jsx',
'**/*.ts',
'**/*.js'
]
}