doclific
v0.3.7
Published
A powerful documentation tool for creating and managing documentation with a modern web interface.
Maintainers
Readme
Doclific
A powerful documentation tool for creating and managing documentation with a modern web interface.
Installation
Install Doclific globally using npm:
npm install -g doclificGetting Started
1. Initialize a Project
Navigate to the root directory of your project and run:
doclific initThis creates a doclific directory in your current working directory where your documentation will be stored.
2. Start the Server
From the root directory of your project, run:
doclificThis starts the Doclific web server on port 6767 by default. The server will automatically open in your browser.
Custom Port
You can specify a custom port using the --p or --port flag:
doclific -p=8080
# or
doclific --port=8080Commands
doclific init- Creates adoclificdirectory in the current working directorydoclific- Starts the Doclific web server (default port: 6767)doclific -p=<port>- Starts the server on a custom portdoclific --port=<port>- Alternative syntax for custom portdoclific get- Returns the current configurationdoclific set <KEY> <value>- Sets a configuration value
Configuration Keys
You can set the following configuration keys:
AI_PROVIDER- AI provider to use (openai,anthropic, orgoogle)AI_MODEL- Model name to use (e.g.,gpt-4,claude-3-opus-20240229,gemini-pro)OPENAI_API_KEY- Your OpenAI API keyANTHROPIC_API_KEY- Your Anthropic API keyGOOGLE_API_KEY- Your Google API key
Examples
# Get current configuration
doclific get
# Set AI provider
doclific set AI_PROVIDER openai
# Set AI model
doclific set AI_MODEL gpt-4
# Set API keys
doclific set OPENAI_API_KEY sk-your-api-key-here
doclific set ANTHROPIC_API_KEY sk-ant-your-api-key-here
doclific set GOOGLE_API_KEY your-api-key-hereUsage
After initializing and starting the server:
- Access the documentation interface at
http://localhost:6767(or your custom port) - Create and organize your documentation files in the
doclificdirectory - Use the sidebar to navigate between documents
- Edit documents using the built-in editor with syntax highlighting and code snippets
Features
- 📝 Rich markdown editor with live preview
- 🎨 Syntax highlighting for code blocks
- 📁 File tree navigation
- 🔍 Codebase snippet integration
- 🎯 Slash commands for quick formatting
- 📱 Responsive design
Requirements
- Node.js (v18 or higher recommended)
- npm
License
See LICENSE file for details.
