1
- # GitHub Copilot Instructions for InfluxData Documentation
1
+ # Instructions for InfluxData Documentation
2
2
3
- ## Purpose and Scope
3
+ ## Purpose and scope
4
4
5
- GitHub Copilot should help document InfluxData products by creating clear, accurate technical content with proper code examples, frontmatter, and formatting.
5
+ Help document InfluxData products by creating clear, accurate technical content with proper code examples, frontmatter, and formatting.
6
6
7
- ## Documentation Structure
7
+ ## Documentation structure
8
8
9
9
- ** Product version data** : ` /data/products.yml `
10
- - ** Products** :
10
+ - ** InfluxData products** :
11
+ - InfluxDB 3 Explorer
12
+ - Documentation source path: ` /content/influxdb3/explorer `
13
+ - Published for the web: https://docs.influxdata.com/influxdb3/explorer/
11
14
- InfluxDB 3 Core
12
15
- Documentation source path: ` /content/influxdb3/core `
16
+ - Published for the web: https://docs.influxdata.com/influxdb3/core/
13
17
- Code repositories: https://github.com/influxdata/influxdb , https://github.com/influxdata/influxdb3_core
14
18
- InfluxDB 3 Enterprise
15
19
- Documentation source path: ` /content/influxdb3/enterprise `
20
+ - Published for the web: https://docs.influxdata.com/influxdb3/enterprise/
16
21
- Code repositories: https://github.com/influxdata/influxdb , https://github.com/influxdata/influxdb3_enterprise
17
22
- InfluxDB Cloud Dedicated
18
23
- Documentation source path: ` /content/influxdb3/cloud-dedicated `
24
+ - Published for the web: https://docs.influxdata.com/influxdb3/cloud-dedicated/
19
25
- Code repository: https://github.com/influxdata/influxdb
20
26
- InfluxDB Cloud Serverless
21
27
- Documentation source path: ` /content/influxdb3/cloud-serverless `
28
+ - Published for the web: https://docs.influxdata.com/influxdb3/cloud-serverless/
22
29
- Code repository: https://github.com/influxdata/idpe
23
30
- InfluxDB Cloud v2 (TSM)
24
31
- Documentation source path: ` /content/influxdb/cloud `
32
+ - Published for the web: https://docs.influxdata.com/influxdb/cloud/
25
33
- Code repository: https://github.com/influxdata/idpe
26
34
- InfluxDB Clustered
27
35
- Documentation source path: ` /content/influxdb3/clustered `
36
+ - Published for the web: https://docs.influxdata.com/influxdb3/clustered/
28
37
- Code repository: https://github.com/influxdata/influxdb
29
38
- InfluxDB Enterprise v1 (1.x)
30
39
- Documentation source path: ` /content/influxdb/enterprise_influxdb `
40
+ - Published for the web: https://docs.influxdata.com/enterprise_influxdb/v1/
31
41
- Code repository: https://github.com/influxdata/influxdb
32
42
- InfluxDB OSS 1.x
33
43
- Documentation source path: ` /content/influxdb/v1 `
44
+ - Published for the web: https://docs.influxdata.com/influxdb/v1/
34
45
- Code repository: https://github.com/influxdata/influxdb
35
46
- InfluxDB OSS 2.x
36
47
- Documentation source path: ` /content/influxdb/v2 `
48
+ - Published for the web: https://docs.influxdata.com/influxdb/v2/
37
49
- Code repository: https://github.com/influxdata/influxdb
38
50
- Telegraf
39
51
- Documentation source path: ` /content/telegraf/v1 `
52
+ - Published for the web: https://docs.influxdata.com/telegraf/v1/
40
53
- Code repository: https://github.com/influxdata/telegraf
41
54
- Kapacitor
42
55
- Documentation source path: ` /content/kapacitor/v1 `
56
+ - Published for the web: https://docs.influxdata.com/kapacitor/v1/
43
57
- Code repository: https://github.com/influxdata/kapacitor
44
58
- Chronograf
45
59
- Documentation source path: ` /content/chronograf/v1 `
60
+ - Published for the web: https://docs.influxdata.com/chronograf/v1/
46
61
- Code repository: https://github.com/influxdata/chronograf
47
62
- Flux
48
63
- Documentation source path: ` /content/flux/v0 `
64
+ - Published for the web: https://docs.influxdata.com/flux/v0/
49
65
- Code repository: https://github.com/influxdata/flux
50
66
- ** InfluxData-supported tools** :
51
67
- InfluxDB API client libraries
@@ -57,21 +73,30 @@ GitHub Copilot should help document InfluxData products by creating clear, accur
57
73
- ** Repository** : https://github.com/influxdata/docs-v2
58
74
- ** Framework** : Hugo static site generator
59
75
60
- ## Style Guidelines
76
+ ## Style guidelines
61
77
62
78
- Follow Google Developer Documentation style guidelines
63
79
- For API references, follow YouTube Data API style
64
80
- Use semantic line feeds (one sentence per line)
81
+ - Format code examples to fit within 80 characters
82
+ - Command line examples:
83
+ - Should be formatted as code blocks
84
+ - Should use long options (e.g., ` --option ` instead of ` -o ` )
85
+ - Use cURL for API examples
86
+ - Format to fit within 80 characters
87
+ - Should use ` --data-urlencode ` for query parameters
88
+ - Should use ` --header ` for headers
65
89
- Use only h2-h6 headings in content (h1 comes from frontmatter title properties)
66
90
- Use sentence case for headings
67
91
- Use GitHub callout syntax
68
92
- Image naming: ` project/version-context-description.png `
69
93
- Use appropriate product names and versions consistently
70
94
- Follow InfluxData vocabulary guidelines
71
95
72
- ## Markdown and Shortcodes
96
+ ## Markdown and shortcodes
73
97
74
- - Include proper frontmatter for each page:
98
+ - Include proper frontmatter for Markdown pages in ` content/**/*.md ` (except for
99
+ shared content files in ` content/shared/ ` ):
75
100
76
101
``` yaml
77
102
title : # Page title (h1)
@@ -82,18 +107,20 @@ GitHub Copilot should help document InfluxData products by creating clear, accur
82
107
product_version :
83
108
weight : # Page order (1-99, 101-199, etc.)
84
109
` ` `
85
-
110
+ - Follow the shortcode examples in ` content/example.md` and the documentation
111
+ for docs-v2 contributors in `CONTRIBUTING.md`
86
112
- Use provided shortcodes correctly :
87
113
- Notes/warnings : ` {{% note %}}` , `{{% warn %}}`
88
114
- Product-specific : ` {{% enterprise %}}` , `{{% cloud %}}`
89
115
- Tabbed content : ` {{< tabs-wrapper >}}` , `{{% tabs %}}`, `{{% tab-content %}}`
116
+ - Tabbed content for code examples (without additional text) : ` {{< code-tabs-wrapper >}}` , `{{% code-tabs %}}`, `{{% code-tab-content %}}`
90
117
- Version links : ` {{< latest >}}` , `{{< latest-patch >}}`
91
118
- API endpoints : ` {{< api-endpoint >}}`
92
119
- Required elements : ` {{< req >}}`
93
120
- Navigation : ` {{< page-nav >}}`
94
121
- Diagrams : ` {{< diagram >}}` , `{{< filesystem-diagram >}}`
95
122
96
- # # Code Examples and Testing
123
+ # # Code examples and testing
97
124
98
125
- Provide complete, working examples with proper testing annotations :
99
126
@@ -124,27 +151,50 @@ Table: keys: [_start, _stop, _field, _measurement]
124
151
- Include necessary environment variables
125
152
- Show proper credential handling for authenticated commands
126
153
127
- ## API Documentation
154
+ ## API documentation
128
155
156
+ - ` /api-docs ` contains OpenAPI spec files used for API reference documentation
129
157
- Follow OpenAPI specification patterns
130
158
- Match REST API examples to current implementation
131
159
- Include complete request/response examples
132
160
- Document required headers and authentication
133
161
134
- ## Versioning and Product Differentiation
162
+ ## Versioning and product differentiation
135
163
136
164
- Clearly distinguish between different InfluxDB versions (1.x, 2.x, 3.x)
137
165
- Use correct terminology for each product variant
138
166
- Apply appropriate UI descriptions and screenshots
139
167
- Reference appropriate query language per version
140
168
141
- ## Development Tools
169
+ ## Development tools
142
170
143
171
- Vale.sh linter for style checking
172
+ - Configuration file: ` .vale.ini `
144
173
- Docker for local development and testing
145
174
- pytest and pytest-codeblocks for validating code examples
146
- - Pre-commit hooks for quality assurance
175
+ - Use cypress for testing documentation UI and links
176
+ - Prettier for code formatting
177
+ - ESLint for JavaScript and TypeScript linting
178
+ - Lefthook (NPM package) for managing pre-commit hooks for quality assurance
179
+
180
+ ## Code style
181
+
182
+ - Use modern JavaScript (ES6+) syntax
147
183
148
184
## Related repositories
149
185
150
- - ** Internal dcumentation assistance requests** : https://github.com/influxdata/DAR/issues
186
+ - ** Internal documentation assistance requests** : https://github.com/influxdata/DAR/issues Documentation
187
+
188
+ ## Additional instruction files
189
+
190
+ For specific workflows and content types, also refer to:
191
+
192
+ - ** InfluxDB 3 code placeholders** : ` .github/instructions/influxdb3-code-placeholders.instructions.md ` - Guidelines for placeholder formatting, descriptions, and shortcode usage in InfluxDB 3 documentation
193
+ - ** Contributing guidelines** : ` .github/instructions/contributing.instructions.md ` - Detailed style guidelines, shortcode usage, frontmatter requirements, and development workflows
194
+ - ** Content-specific instructions** : Check ` .github/instructions/ ` directory for specialized guidelines covering specific documentation patterns and requirements
195
+
196
+ ## Integration with specialized instructions
197
+
198
+ When working on InfluxDB 3 documentation (Core/Enterprise), prioritize the placeholder guidelines from ` influxdb3-code-placeholders.instructions.md ` .
199
+
200
+ For general documentation structure, shortcodes, and development workflows, follow the comprehensive guidelines in ` contributing.instructions.md ` .
0 commit comments