Merge branch 'main' of https://github.com/continuedev/continue into dallin/con-4022-hide-empty-prompts-resources
This commit is contained in:
commit
fc83443cf5
3 changed files with 326 additions and 211 deletions
318
docs/CONTRIBUTING.mdx
Normal file
318
docs/CONTRIBUTING.mdx
Normal file
|
|
@ -0,0 +1,318 @@
|
|||
---
|
||||
title: "Contributing to Continue Documentation"
|
||||
sidebarTitle: "Docs Contributions"
|
||||
description: "Welcome to the Continue documentation! We're excited that you want to contribute. This guide will help you get started with our documentation workflow and tools."
|
||||
---
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
### Prerequisites
|
||||
|
||||
1. **Node.js** (v20 or higher)
|
||||
2. **Git** for version control
|
||||
3. **GitHub CLI** - Install from [cli.github.com](https://cli.github.com/)
|
||||
|
||||
### Setup Steps
|
||||
|
||||
1. **Fork and clone the repository**
|
||||
|
||||
```bash
|
||||
# Fork the repository (this will also clone it locally)
|
||||
gh repo fork continuedev/continue
|
||||
cd continue/docs
|
||||
```
|
||||
|
||||
2. **Install dependencies**
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
3. **Start the local development server**
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
Your docs will be available at `http://localhost:3000`
|
||||
|
||||
## 💬 Creating Discussions and Issues
|
||||
|
||||
Before creating any issues, we ask that you start with a GitHub Discussion. This helps us organize feedback and determine the best path forward.
|
||||
|
||||
### Starting a Discussion
|
||||
|
||||
<Steps>
|
||||
<Step title="Go to GitHub Discussions">
|
||||
Visit the [Continue GitHub Discussions](https://github.com/continuedev/continue/discussions) page.
|
||||
</Step>
|
||||
|
||||
<Step title="Choose the right category">
|
||||
Select the **Docs** category for documentation improvements, corrections, or suggestions.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Provide detailed information">
|
||||
Include the following in your discussion:
|
||||
- Clear description of the issue or suggestion
|
||||
- Steps to reproduce (if applicable)
|
||||
- Expected vs. actual behavior
|
||||
- Screenshots or code examples when helpful
|
||||
- Your environment (OS, IDE, Continue version)
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
### Issue Escalation Process
|
||||
|
||||
<Info>
|
||||
|
||||
**Important**: All issues should start as discussions. The Continue team will determine if and when a discussion should be escalated to a GitHub issue.
|
||||
|
||||
</Info>
|
||||
|
||||
The Continue team will review discussions and may:
|
||||
- Provide a solution or clarification directly in the discussion
|
||||
- Ask for additional information or testing
|
||||
- Convert the discussion to an issue if it requires code changes or is a confirmed bug
|
||||
- Close the discussion if it's resolved or not actionable
|
||||
|
||||
### When Discussions Become Issues
|
||||
|
||||
A discussion will typically be converted to an issue when:
|
||||
- A bug in the documentation is confirmed
|
||||
- A new feature or significant documentation change is approved
|
||||
- Community consensus supports the proposed change
|
||||
- Technical implementation is required
|
||||
|
||||
## 🤖 AI-Powered Documentation with Continue
|
||||
|
||||
We strongly encourage using Continue's AI assistance to maintain consistency and quality in our documentation. Here are three ways to set this up:
|
||||
|
||||
### Option 1: Use the Pre-Built Documentation Agent (Recommended)
|
||||
|
||||
The easiest way to get started is using our pre-configured documentation agent:
|
||||
|
||||
<Steps>
|
||||
<Step title="Install the agent from Continue Hub">
|
||||
Visit [the Docs Assistant - Mintlify in the Hub](https://hub.continue.dev/continuedev/docs-mintlify) and click "Install" to add it to your Continue setup. This agent comes pre-configured with all our documentation standards.
|
||||
|
||||
<Info>
|
||||
Learn more about Continue Agents in our [agent documentation](/guides/understanding-agents).
|
||||
</Info>
|
||||
</Step>
|
||||
|
||||
<Step title="Use the agent">
|
||||
<Tabs>
|
||||
<Tab title="Command Line">
|
||||
```bash
|
||||
# Install the Continue CLI if you haven't already
|
||||
npm install -g @continuedev/cli
|
||||
|
||||
# Use the agent from the command line
|
||||
cn "Create a new guide for using the Continue CLI with Linear" --config continuedev/docs-mintlify
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab title="IDE">
|
||||
1. Open Continue in your IDE
|
||||
2. Select the "Docs Assistant - Mintlify" agent from the model dropdown
|
||||
3. Ask it to help you create or edit documentation
|
||||
|
||||
Example prompts:
|
||||
- "Create a new guide for using the Continue CLI with Linear"
|
||||
- "Update the getting-started guide with the new installation process"
|
||||
- "Format this documentation according to Mintlify standards"
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
<Tip>
|
||||
You can also remix this agent to customize it for your specific needs. Learn how to create your own remix in our [remix agent documentation](/hub/agents/create-an-agent#how-to-remix-an-agent).
|
||||
</Tip>
|
||||
|
||||
### Option 2: Create Your Own Custom Agent
|
||||
|
||||
If you want more control or customization, you can create your own documentation agent:
|
||||
|
||||
<Steps>
|
||||
<Step title="Create a new agent">
|
||||
Follow our [agent creation guide](/hub/agents/create-an-agent) to set up your own agent.
|
||||
</Step>
|
||||
|
||||
<Step title="Add the Continue Docs MCP">
|
||||
Install from Continue Hub: https://hub.continue.dev/continuedev/continue-docs-mcp
|
||||
|
||||
This MCP provides context about Continue's documentation structure and standards.
|
||||
</Step>
|
||||
|
||||
<Step title="Add Mintlify formatting rules">
|
||||
Install from Continue Hub: https://hub.continue.dev/mintlify/technical-writing-rule
|
||||
|
||||
This rule ensures proper Mintlify component formatting.
|
||||
</Step>
|
||||
|
||||
<Step title="Use your custom agent">
|
||||
<Tabs>
|
||||
<Tab title="Command Line">
|
||||
```bash
|
||||
# Install the Continue CLI if you haven't already
|
||||
npm install -g @continuedev/cli
|
||||
|
||||
# Use your agent from the command line
|
||||
cn --config your-org/your-agent-name "Create a new guide for API authentication"
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab title="IDE">
|
||||
1. Open Continue in your IDE
|
||||
2. Select your custom agent from the model dropdown
|
||||
3. Ask it to help you create or edit documentation
|
||||
|
||||
Example prompts:
|
||||
- "Help me format this documentation according to Mintlify standards"
|
||||
- "Create a troubleshooting section for this feature"
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## 📝 Documentation Standards
|
||||
|
||||
### Mintlify Component Guidelines
|
||||
|
||||
When using Mintlify components, follow these formatting rules:
|
||||
|
||||
#### Cards and Info Boxes
|
||||
|
||||
```mdx
|
||||
<Card title="Best Practice" icon="lightbulb">
|
||||
|
||||
Always include blank lines and proper indentation:
|
||||
|
||||
- Use 2-space indentation
|
||||
- Add blank lines after opening tags
|
||||
- Format lists as bullet points
|
||||
|
||||
</Card>
|
||||
```
|
||||
|
||||
#### Warning and Note Components
|
||||
|
||||
```mdx
|
||||
<Warning>
|
||||
|
||||
Important information should be formatted clearly:
|
||||
|
||||
- Each point on its own line
|
||||
- Consistent indentation
|
||||
- Clear, concise language
|
||||
|
||||
</Warning>
|
||||
```
|
||||
|
||||
### Writing Style
|
||||
|
||||
1. **Be concise**: Get to the point quickly
|
||||
2. **Use examples**: Show, don't just tell
|
||||
3. **Include code blocks**: Provide working examples
|
||||
4. **Add visuals**: Screenshots and diagrams help understanding
|
||||
5. **Test your changes**: Ensure all links and code examples work
|
||||
|
||||
<Warning>
|
||||
If you are creating a new guide, please test the steps yourself to ensure accuracy.
|
||||
</Warning>
|
||||
|
||||
## 🔧 Common Tasks
|
||||
|
||||
### Adding a New Guide
|
||||
|
||||
1. Create a new `.mdx` file in the guides directory
|
||||
2. Add frontmatter:
|
||||
```mdx
|
||||
---
|
||||
title: "Your Guide Title"
|
||||
description: "Brief description of what this guide covers"
|
||||
---
|
||||
```
|
||||
3. Use the Continue agent to help format your content
|
||||
4. Update `docs.json` to include your new page in the navigation
|
||||
|
||||
<Tip>
|
||||
We have both guides and cookbooks. Use guides for step-by-step instructions and cookbooks for creating agents for the CLI.
|
||||
</Tip>
|
||||
|
||||
### Updating Existing Documentation
|
||||
|
||||
1. Use the Continue agent with prompts like:
|
||||
- "Update the installation guide with the new npm package"
|
||||
- "Add a troubleshooting section for connection issues"
|
||||
2. The agent will maintain consistent formatting automatically
|
||||
|
||||
### Adding Code Examples
|
||||
|
||||
Use language-specific code blocks:
|
||||
|
||||
````mdx
|
||||
```typescript
|
||||
// Your TypeScript code here
|
||||
const example = "Hello, Continue!";
|
||||
```
|
||||
````
|
||||
|
||||
## 🐛 Testing Your Changes
|
||||
|
||||
1. **Local preview**: In the docs directory, run `npm run dev` and check your changes
|
||||
2. **Link validation**: Ensure all internal and external links work
|
||||
3. **Format check**: Use the Continue agent to validate Mintlify formatting
|
||||
4. **Build test**: Run `npm run build` to ensure no build errors
|
||||
|
||||
## 📤 Submitting Your Contribution
|
||||
|
||||
1. **Create a feature branch**
|
||||
|
||||
```bash
|
||||
git checkout -b docs/your-feature-name
|
||||
```
|
||||
|
||||
2. **Commit your changes**
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "docs: describe your changes"
|
||||
```
|
||||
|
||||
3. **Push and create a Pull Request**
|
||||
|
||||
```bash
|
||||
# Push to your fork and create a PR
|
||||
git push origin docs/your-feature-name
|
||||
gh pr create --web
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
The `gh pr create` command will automatically:
|
||||
- Push your branch to your fork
|
||||
- Create a pull request to the main repository
|
||||
- Allow you to add a title, description, and reference issues
|
||||
- Open the PR in your browser if using `--web`
|
||||
|
||||
</Tip>
|
||||
|
||||
## 💡 Tips for Success
|
||||
|
||||
- **Use the Continue agent**: It knows our documentation standards and will save you time
|
||||
- **Preview frequently**: Check your changes in the local dev server
|
||||
- **Ask questions**: Open an issue or discussion if you need clarification
|
||||
- **Small PRs are better**: Focus on one topic or fix per PR
|
||||
- **Update examples**: Ensure code examples reflect the latest API
|
||||
|
||||
|
||||
## 🆘 Getting Help
|
||||
|
||||
- **Start a Discussion**: Use [GitHub Discussions](https://github.com/continuedev/continue/discussions) for documentation issues, suggestions, or questions
|
||||
- **Continue agent questions**: Check the [Continue Hub page](https://hub.continue.dev/continuedev/docs-mintlify)
|
||||
- **Discord community**: Join our Discord for real-time help
|
||||
- **Existing docs**: Review similar pages for formatting examples
|
||||
---
|
||||
|
||||
Thank you for contributing to Continue! Your efforts help make our documentation better for everyone. To learn more about contibuting to other parts of the project, check out our [main CONTRIBUTING guide](https://github.com/continuedev/continue/blob/main/CONTRIBUTING.md) 🎉
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
{
|
||||
"group": "Help",
|
||||
"icon": "book-open",
|
||||
"pages": ["faqs", "troubleshooting"]
|
||||
"pages": ["faqs", "troubleshooting", "CONTRIBUTING"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -221,218 +221,15 @@ Create missing labels in your repo at: **Settings → Labels → New label**
|
|||
</Warning>
|
||||
|
||||
<Info>
|
||||
**What Continue CLI Does:** - Parses your analysis results automatically -
|
||||
Makes authenticated GitHub API calls using your stored token - Creates
|
||||
properly formatted issues with appropriate labels - Checks for duplicate
|
||||
issues to avoid spam - Provides confirmation with issue URLs
|
||||
**What Continue CLI Does:**
|
||||
- Parses your analysis results automatically
|
||||
- Makes authenticated GitHub API calls using your stored token
|
||||
- Creates properly formatted issues with appropriate labels
|
||||
- Checks for duplicate issues to avoid spam
|
||||
- Provides confirmation with issue URLs
|
||||
|
||||
</Info>
|
||||
|
||||
## Setting Up Automated GitHub Actions Workflow
|
||||
|
||||
Create a GitHub Actions workflow that runs your Continue CLI analysis automatically on a schedule.
|
||||
|
||||
### Add GitHub Secrets
|
||||
|
||||
First, add these secrets to your GitHub repository:
|
||||
|
||||
1. Go to **Repository Settings → Secrets and variables → Actions**
|
||||
2. Click **"New repository secret"** and add:
|
||||
- `CONTINUE_API_KEY`: Your Continue API key from hub.continue.dev
|
||||
|
||||
### Create GitHub Actions Workflow
|
||||
|
||||
Create `.github/workflows/posthog-analysis.yml` in your repository:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="⚡ Using Pre-Built Agent (Recommended)">
|
||||
```yaml
|
||||
name: PostHog Session Analysis with Continue CLI Agent
|
||||
|
||||
on:
|
||||
schedule: - cron: "0 6 \* \* \*" # Run at 6 AM UTC daily
|
||||
workflow_dispatch: # Allow manual triggering
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18"
|
||||
|
||||
- name: Install Continue CLI
|
||||
run: |
|
||||
npm install -g @continuedev/cli
|
||||
echo "✅ Continue CLI installed"
|
||||
cn --version
|
||||
|
||||
- name: Authenticate with Continue CLI
|
||||
run: |
|
||||
# Set Continue API key
|
||||
export CONTINUE_API_KEY="${{ secrets.CONTINUE_API_KEY }}"
|
||||
# Login to Continue CLI
|
||||
if ! cn auth login --api-key "$CONTINUE_API_KEY"; then
|
||||
echo "❌ Failed to authenticate with Continue CLI"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Continue CLI authenticated"
|
||||
|
||||
- name: Load PostHog GitHub Agent
|
||||
run: |
|
||||
echo "🤖 Loading PostHog GitHub Continuous AI Agent..."
|
||||
cn --config continuedev/awesome-models-posthog-gh
|
||||
echo "✅ Agent loaded successfully"
|
||||
|
||||
- name: Run PostHog Analysis and Create GitHub Issues
|
||||
run: |
|
||||
echo "🎬 Starting automated PostHog session analysis..."
|
||||
|
||||
# Run the agent with the simple prompt
|
||||
cn -p "Tell me about my PostHog session recordings and create GitHub issues based on the problems."
|
||||
|
||||
echo "✅ Analysis and issue creation completed"
|
||||
|
||||
- name: Summary
|
||||
run: |
|
||||
echo "✅ PostHog analysis workflow completed!"
|
||||
echo "📊 Check the artifacts for detailed analysis results"
|
||||
echo "🐛 Check your repository issues for newly created UX issues"
|
||||
echo "🤖 Agent automatically handled both analysis and issue creation"
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
<Tab title="🛠️ Manual Setup Version">
|
||||
|
||||
```yaml
|
||||
name: PostHog Session Analysis with Continue CLI Manual
|
||||
|
||||
on:
|
||||
schedule: - cron: "0 6 \* \* \*" # Run at 6 AM UTC daily
|
||||
workflow_dispatch: # Allow manual triggering
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18"
|
||||
|
||||
- name: Install Continue CLI
|
||||
run: |
|
||||
npm install -g @continuedev/cli
|
||||
echo "✅ Continue CLI installed"
|
||||
cn --version
|
||||
|
||||
- name: Authenticate with Continue CLI
|
||||
run: |
|
||||
# Set Continue API key
|
||||
export CONTINUE_API_KEY="${{ secrets.CONTINUE_API_KEY }}"
|
||||
# Login to Continue CLI
|
||||
if ! cn auth login --api-key "$CONTINUE_API_KEY"; then
|
||||
echo "❌ Failed to authenticate with Continue CLI"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Continue CLI authenticated"
|
||||
|
||||
- name: Run PostHog Session Analysis
|
||||
run: |
|
||||
echo "🎬 Starting PostHog session analysis..."
|
||||
# Create the analysis prompt
|
||||
I need you to help me analyze PostHog session recordings to identify UX issues. Please:
|
||||
|
||||
1. First, fetch session recordings from PostHog using these details:
|
||||
- Use the POSTHOG_API_KEY, POSTHOG_PROJECT_ID, and POSTHOG_HOST from my secrets
|
||||
- API endpoint: {POSTHOG_HOST}/api/projects/{POSTHOG_PROJECT_ID}/session_recordings/?limit=20
|
||||
- Include Authorization header: 'Bearer {POSTHOG_API_KEY}'
|
||||
|
||||
2. Filter the sessions to find problematic ones with either:
|
||||
- console_error_count > 0 (JavaScript errors)
|
||||
- recording_duration > 300 (sessions longer than 5 minutes)
|
||||
|
||||
3. Analyze the filtered sessions and create exactly 3 GitHub issues for the most critical UX problems.
|
||||
|
||||
4. Format each issue like this:
|
||||
### 1. **Issue Title Here**
|
||||
**Problem**: One sentence describing the user problem
|
||||
**Technical Causes**: Brief technical explanation
|
||||
**Affected Pages**: List the URLs
|
||||
**Recommended Fix**:
|
||||
- Specific action item 1
|
||||
- Specific action item 2
|
||||
**Priority**: **HIGH** or **MEDIUM** or **LOW**
|
||||
**Impact**: Quantify the impact (e.g., 'Affects 80% of sessions')
|
||||
|
||||
Please make the API call, analyze the data, and provide the 3 formatted issues. Base all recommendations on actual patterns in the session data.
|
||||
EOF
|
||||
|
||||
echo "✅ Analysis completed"
|
||||
|
||||
|
||||
- name: Create GitHub Issues from Analysis
|
||||
run: |
|
||||
echo "📝 Creating GitHub issues from analysis..."
|
||||
# Create the issue creation prompt
|
||||
I have analyzed PostHog session data and identified UX issues. Now I need you to create GitHub issues using the GitHub API.
|
||||
|
||||
For each issue in my analysis:
|
||||
1. Parse the issue title, body content, and priority level
|
||||
2. Create a GitHub issue via API POST to: https://api.github.com/repos/{owner}/{repo}/issues
|
||||
3. Use these headers:
|
||||
- Authorization: token {GITHUB_PAT}
|
||||
- Accept: application/vnd.github.v3+json
|
||||
- Content-Type: application/json
|
||||
4. Set labels based on priority:
|
||||
- HIGH: ["bug", "high-priority", "user-experience", "automated"]
|
||||
- MEDIUM: ["enhancement", "medium-priority", "user-experience", "automated"]
|
||||
- LOW: ["low-priority", "user-experience", "automated"]
|
||||
5. Format the issue title as: "🔍 UX Issue: {original title}"
|
||||
|
||||
Please create the GitHub issues and confirm they were successfully created with issue numbers and URLs.
|
||||
|
||||
echo "✅ Issue creation completed"
|
||||
|
||||
- name: Summary
|
||||
run: |
|
||||
echo "✅ PostHog analysis workflow completed!"
|
||||
echo "🐛 Check your repository issues for newly created UX issues"
|
||||
```
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### Test the GitHub Actions Workflow
|
||||
|
||||
1. **Manual Trigger**: Go to **Actions** tab in your repository and manually trigger the workflow
|
||||
2. **Check Artifacts**: Download the analysis results from the workflow run
|
||||
3. **Verify Issues**: Check that GitHub issues were created in your repository
|
||||
|
||||
<Check>
|
||||
|
||||
**Success Indicators:**
|
||||
- PostHog API returns session data (not empty)
|
||||
- Continue CLI generates analysis with identified issues
|
||||
- GitHub issues are created with proper labels and formatting
|
||||
- Workflow completes without errors
|
||||
|
||||
</Check>
|
||||
|
||||
## What You've Built
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue