Skip to content

Commit b13e66f

Browse files
authored
Merge branch 'master' into master
2 parents aa17273 + 30e8a9f commit b13e66f

File tree

483 files changed

+16409
-7750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

483 files changed

+16409
-7750
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
description: Cursor-specific rules for OpenAPI specifications and API documentation
3+
globs: ["apify-api/**/*.yaml", "apify-api/**/*.js"]
4+
alwaysApply: true
5+
---
6+
7+
# Cursor-Specific API Documentation Rules
8+
9+
## Cursor OpenAPI Workflow
10+
11+
### Using Cursor for OpenAPI Editing
12+
13+
- Leverage Cursor's YAML syntax highlighting for OpenAPI files
14+
- Use Cursor's JSON schema validation for OpenAPI specifications
15+
- Use Cursor's autocomplete for OpenAPI keywords and properties
16+
17+
### Cursor-Specific API Documentation Tasks
18+
19+
- Use Cursor Chat to "validate this OpenAPI specification"
20+
- Ask "generate code examples for this endpoint"
21+
- Request "check for consistency across similar endpoints"
22+
23+
## Cursor Code Sample Generation
24+
25+
### Using Cmd+K for API References
26+
27+
- Use `@apify-api/openapi/paths/**/*.yaml` to reference endpoint definitions
28+
- Use `@apify-api/openapi/components/schemas/**/*.yaml` to reference data models
29+
- Use `@AGENTS.md` to reference API documentation standards
30+
31+
### Cursor-Specific Code Sample Workflow
32+
33+
```yaml
34+
# When editing OpenAPI files in Cursor:
35+
# 1. Use Cursor's YAML validation
36+
# 2. Leverage autocomplete for OpenAPI keywords
37+
# 3. Use Cursor Chat to generate examples
38+
# 4. Use Cursor's search to find similar patterns
39+
```
40+
41+
## File-Specific Cursor Rules
42+
43+
### For OpenAPI Specification Files (`apify-api/openapi/**/*.yaml`)
44+
45+
- Use Cursor's YAML syntax highlighting and validation
46+
- Leverage Cursor's autocomplete for OpenAPI 3.0 keywords
47+
- Use Cursor's search to find similar endpoint patterns
48+
- Use Cursor Chat to validate OpenAPI compliance
49+
50+
### For Generated Code Samples (`apify-api/openapi/code_samples/**/*.js`)
51+
52+
- Use Cursor's JavaScript syntax highlighting
53+
- Leverage Cursor's autocomplete for JavaScript APIs
54+
- Use Cursor's search to find similar code patterns
55+
- Use Cursor Chat to improve code examples
56+
57+
## Cursor Quality Assurance for APIs
58+
59+
- Use Cursor's YAML validation for OpenAPI files
60+
- Leverage Cursor's search to ensure endpoint naming consistency
61+
- Use Cursor Chat to review API documentation completeness
62+
- Use Cursor's autocomplete to maintain OpenAPI specification standards
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
description: Cursor-specific content formatting rules for MDX and markdown files
3+
globs: ["sources/**/*.md", "sources/**/*.mdx"]
4+
alwaysApply: true
5+
---
6+
7+
# Cursor-Specific Content Formatting
8+
9+
## Cursor MDX/Markdown Features
10+
11+
### Syntax Highlighting in Cursor
12+
13+
- Use language-specific code blocks for proper syntax highlighting
14+
- Leverage Cursor's MDX component autocomplete
15+
- Use Cursor's markdown preview for real-time formatting verification
16+
17+
### Cursor-Specific Code Block Handling
18+
19+
```markdown
20+
# For JavaScript examples
21+
```javascript
22+
// Cursor will provide syntax highlighting and autocomplete
23+
const example = "properly formatted";
24+
```
25+
26+
# For YAML frontmatter
27+
28+
```yaml
29+
---
30+
title: "Example"
31+
description: "Description"
32+
---
33+
```
34+
35+
# For API examples
36+
37+
```bash
38+
curl -X GET "https://api.apify.com/v2/acts"
39+
```
40+
41+
42+
## Cursor Workflow for Formatting
43+
44+
### Using Cursor Chat for Formatting Help
45+
46+
- Ask "format this markdown table properly"
47+
- Request "add syntax highlighting to this code block"
48+
- Use "check this frontmatter for proper YAML syntax"
49+
50+
### Using Cmd+K for Quick Formatting
51+
52+
- Use `@` to reference formatting standards
53+
- Use `@sources/**/*.mdx` to find similar MDX patterns
54+
- Use `@apify-api/**/*.yaml` to reference API examples
55+
56+
## Cursor-Specific Admonition Handling
57+
58+
When using admonitions in Cursor:
59+
60+
```markdown
61+
:::note Cursor Tip
62+
Use Cursor's markdown preview to verify admonition formatting
63+
:::
64+
65+
:::tip Cursor Feature
66+
Leverage Cursor's autocomplete for consistent admonition syntax
67+
:::
68+
```
69+
70+
## File-Specific Formatting Rules
71+
72+
### For MDX Files (`sources/**/*.mdx`)
73+
74+
- Use Cursor's MDX syntax highlighting
75+
- Leverage component imports with proper TypeScript support
76+
- Use Cursor's JSX autocomplete for custom components
77+
78+
### For Markdown Files (`sources/**/*.md`)
79+
80+
- Use Cursor's markdown preview for formatting verification
81+
- Leverage Cursor's spell check for content quality
82+
- Use Cursor's link validation for internal references
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
description: Cursor-specific documentation style rules for Apify docs
3+
globs: ["sources/**/*.md", "sources/**/*.mdx"]
4+
alwaysApply: true
5+
---
6+
7+
# Cursor-Specific Documentation Rules
8+
9+
## Context-Aware Writing
10+
11+
When editing documentation in Cursor, consider the broader context:
12+
13+
- **Cross-references**: When mentioning other pages, use Cursor's file navigation to verify links
14+
- **Consistency checks**: Use Cursor's search to ensure terminology consistency across files
15+
- **Code examples**: Leverage Cursor's syntax highlighting and validation for code blocks
16+
17+
## Cursor-Specific Workflows
18+
19+
### Using Cursor Chat for Documentation
20+
21+
- Ask Cursor to "review this documentation for clarity and completeness"
22+
- Use "explain this technical concept in simpler terms" for complex topics
23+
- Request "suggest improvements for this tutorial structure"
24+
25+
### Using Cmd+K for Quick Edits
26+
27+
- Use `@AGENTS.md` to reference the main documentation standards
28+
- Use `@sources/**/*.md` to search across all documentation files
29+
- Use `@apify-api/**/*.yaml` to reference API specifications
30+
31+
## File-Specific Guidance
32+
33+
### For Platform Documentation (`sources/platform/**/*.md`)
34+
35+
- Focus on practical, actionable guidance
36+
- Include real-world examples and use cases
37+
- Reference related API endpoints when applicable
38+
39+
### For Academy Content (`sources/academy/**/*.md`)
40+
41+
- Structure content for learning progression
42+
- Include hands-on exercises and examples
43+
- Provide clear prerequisites and next steps
44+
45+
### For MDX Files
46+
47+
- Leverage Cursor's MDX syntax highlighting
48+
- Use component imports and JSX syntax appropriately
49+
- Ensure proper frontmatter formatting
50+
51+
## Quality Assurance in Cursor
52+
53+
- Use Cursor's spell check for documentation files
54+
- Leverage Cursor's markdown preview for formatting verification
55+
- Use Cursor's search to find similar content and maintain consistency
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
description: File naming conventions and directory structure standards
3+
globs: ["sources/**/*"]
4+
alwaysApply: true
5+
---
6+
7+
# File Organization Rules
8+
9+
## Naming conventions
10+
11+
- Use **kebab-case** for file names: `web-scraping-basics.md`
12+
- Use **descriptive names** that reflect content
13+
- Group related files in **logical directories**
14+
15+
## Directory structure
16+
17+
```text
18+
sources/
19+
├── platform/ # Platform documentation
20+
│ ├── actors/ # Actor-related content
21+
│ ├── storage/ # Storage documentation
22+
│ └── integrations/ # Integration guides
23+
└── academy/ # Educational content
24+
├── tutorials/ # Step-by-step guides
25+
├── webscraping/ # Web scraping courses
26+
└── glossary/ # Terminology and definitions
27+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
description: Content quality checklist and review standards
3+
globs: ["sources/**/*.md", "sources/**/*.mdx"]
4+
alwaysApply: true
5+
---
6+
7+
# Quality Standards
8+
9+
## Content quality guidelines
10+
11+
When creating or editing content, ensure:
12+
13+
- [ ] Content follows Microsoft style guide (sentence case headings, proper emphasis)
14+
- [ ] Front matter includes proper title, description, and metadata
15+
- [ ] Code examples are complete and include proper syntax highlighting
16+
- [ ] All links use descriptive text (avoid "click here")
17+
- [ ] Images include meaningful alt text
18+
- [ ] Content uses inclusive language and active voice
19+
- [ ] Headings follow proper hierarchy (H1 → H2 → H3)
20+
- [ ] Content is clear, concise, and action-oriented

.cursorignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Dependencies
2+
node_modules/
3+
package-lock.json
4+
yarn.lock
5+
apify-docs-theme/package-lock.json
6+
7+
# Build artifacts and generated content
8+
build/
9+
dist/
10+
build-docs/
11+
.docusaurus/
12+
static/api/
13+
apify-api.yaml
14+
apify-api/openapi/code_samples/
15+
apify-api/docs/
16+
17+
# Large generated files
18+
*.log
19+
*.pid
20+
*.seed
21+
*.tsbuildinfo
22+
23+
# IDE and editor files
24+
.vscode/
25+
.idea/
26+
.history/
27+
28+
# OS files
29+
.DS_Store
30+
Thumbs.db
31+
32+
# Temporary files
33+
tmp/
34+
pids/
35+
coverage/
36+
.nyc_output/
37+
38+
# Generated types
39+
types/
40+
41+
# Turbo cache
42+
.turbo/
43+
44+
# Generated documentation
45+
# These are typically auto-generated, but require editing from time to time
46+
# sources/api/*
47+
# !sources/api/sidebars.js
48+
# !sources/api/getting-started.mdx
49+
50+
# Large static files that are auto-generated
51+
static/api/openapi.json
52+
static/api/openapi.yaml
53+
54+
# Generated routes and registry files
55+
.docusaurus/routes.js
56+
.docusaurus/routesChunkNames.json
57+
.docusaurus/registry.js
58+
.docusaurus/globalData.json
59+
.docusaurus/site-metadata.json
60+
.docusaurus/client-modules.js
61+
.docusaurus/docusaurus.config.mjs
62+
63+
# Generated plugin directories
64+
.docusaurus/docusaurus-plugin-*/
65+
.docusaurus/docusaurus-theme-*/
66+
.docusaurus/@apify/
67+
68+
# Generated code samples (these are auto-generated from OpenAPI specs)
69+
# Note: These are typically auto-generated, but you may need to edit them occasionally
70+
# Uncomment the lines below if you want to ignore them completely:
71+
# apify-api/openapi/code_samples/javascript/*.js
72+
# apify-api/openapi/code_samples/curl/*.sh
73+
74+
# Generated requirements files
75+
apify-api/scripts/requirements.bin
76+
77+
# AGENTS.md is the primary vendor-agnostic rules file
78+
# .cursor/rules/ contains Cursor-specific rules with advanced features

.github/styles/Apify/Apify.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
extends: substitution
22
message: "Use '%s' instead of '%s'."
3-
ignorecase: false
3+
ignorecase: true
44
level: warning
5+
scope: text
56
swap:
6-
Apify Dashboard: Apify Console
7-
apify freelancers: Apify freelancers
8-
Apify Platform: Apify platform
9-
'(?:[Tt]he\s)?[Aa]pify\sproxy': Apify Proxy
7+
# Product name changes
8+
'apify dashboard': Apify Console
9+
'apify console': Apify Console
10+
'apify store': Apify Store
11+
'the apify console': Apify Console
12+
'the apify store': Apify Store
13+
14+
# Capitalization fixes
15+
'apify freelancers': Apify freelancers
16+
'apify platform': Apify platform
17+
18+
# Proxy variations (simplified)
19+
'apify proxy': Apify Proxy
20+
'the apify proxy': Apify Proxy
21+
22+
# Common abbreviations
1023
circa: approx.
24+
'ca\.': circa
Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
extends: existence
2-
message: "The word '%s' should always be capitalized."
1+
extends: substitution
2+
message: "Use '%s' instead of '%s'."
33
ignorecase: false
44
level: error
5-
tokens:
6-
# Before the word there should be no: /, -, #, word character
7-
# (avoids anchors, URLs, identifiers, and words like 'factors')
8-
#
9-
# After the word there should be no: /, } (avoids paths or URLs)
10-
# Also no . followed by a word character (avoids 'actors.md')
11-
- '(?<![\/\-#\w])actors(?![\/\}])(?!\.\w)'
12-
13-
# Before the word there should be no: /, -, #, ., `, word character
14-
# (avoids anchors, URLs, identifiers, code, and words like 'factors')
15-
#
16-
# After the word there should be no: /, }, -, word character (avoids paths or URLs)
17-
# Also no " =" (avoids code like "actor = ...")
18-
# Also no . followed by a word character (avoids 'actor.md' or 'actor.update()')
19-
- '(?<![\/\-#\.`\w])actor(?![\/\}\-\w])(?! =)(?!\.\w)'
20-
nonword: false
5+
nonword: true
6+
scope: text,~alt,~code
7+
swap:
8+
'\bactor\b': Actor
9+
'\bactors\b': Actors

.github/styles/Apify/H1.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: existence
2+
message: 'Do not use H1 headings (#). The main title is generated automatically. Please use H2 (##) or lower.'
3+
level: error
4+
scope: heading.h1
5+
tokens:
6+
- '.+'

0 commit comments

Comments
 (0)