Skip to content

Commit 4a800fc

Browse files
authored
Merge branch 'master' into staging/jts-api-distributed
2 parents f135ce6 + 8e0211e commit 4a800fc

File tree

556 files changed

+103422
-10435
lines changed

Some content is hidden

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

556 files changed

+103422
-10435
lines changed

.circleci/config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2
1+
version: 2.1
22
jobs:
33
build:
44
docker:
@@ -31,17 +31,17 @@ jobs:
3131
command: cd api-docs && bash generate-api-docs.sh
3232
- run:
3333
name: Inject Flux stdlib frontmatter
34-
command: node ./flux-build-scripts/inject-flux-stdlib-frontmatter.js
34+
command: node ./flux-build-scripts/inject-flux-stdlib-frontmatter.cjs
3535
- run:
3636
name: Update Flux/InfluxDB versions
37-
command: node ./flux-build-scripts/update-flux-versions.js
37+
command: node ./flux-build-scripts/update-flux-versions.cjs
3838
- save_cache:
3939
key: install-{{ .Environment.CACHE_VERSION }}-{{ checksum ".circleci/config.yml" }}
4040
paths:
4141
- /home/circleci/bin
4242
- run:
4343
name: Hugo Build
44-
command: npx hugo --logLevel info --minify --destination workspace/public
44+
command: yarn hugo --environment production --logLevel info --gc --destination workspace/public
4545
- persist_to_workspace:
4646
root: workspace
4747
paths:
@@ -68,7 +68,6 @@ jobs:
6868
when: on_success
6969

7070
workflows:
71-
version: 2
7271
build:
7372
jobs:
7473
- build

.context/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Context Files for LLMs and AI Tools
2+
3+
This directory contains plans, reports, and other context files that are:
4+
- Used to provide context to LLMs during development
5+
- Not committed to the repository
6+
- May be transient or belong in other repositories
7+
8+
## Directory Structure
9+
10+
- `plans/` - Documentation plans and roadmaps
11+
- `reports/` - Generated reports and analyses
12+
- `research/` - Research notes and findings
13+
- `templates/` - Reusable templates for Claude interactions
14+
15+
## Usage
16+
17+
Place files here that you want to reference--for example, using @ mentions in Claude--such as:
18+
- Documentation planning documents
19+
- API migration guides
20+
- Performance reports
21+
- Architecture decisions
22+
23+
## Example Structure
24+
25+
```
26+
.context/
27+
├── plans/
28+
│ ├── v3.2-release-plan.md
29+
│ └── api-migration-guide.md
30+
├── reports/
31+
│ ├── weekly-progress-2025-07.md
32+
│ └── pr-summary-2025-06.md
33+
├── research/
34+
│ └── competitor-analysis.md
35+
└── templates/
36+
└── release-notes-template.md
37+
```
38+
39+
## Best Practices
40+
41+
1. Use descriptive filenames that indicate the content and date
42+
2. Keep files organized in appropriate subdirectories
43+
3. Consider using date prefixes for time-sensitive content (e.g., `2025-07-01-meeting-notes.md`)
44+
4. Remove outdated files periodically to keep the context relevant

.github/copilot-instructions.md

Lines changed: 65 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,67 @@
1-
# GitHub Copilot Instructions for InfluxData Documentation
1+
# Instructions for InfluxData Documentation
22

3-
## Purpose and Scope
3+
## Purpose and scope
44

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.
66

7-
## Documentation Structure
7+
## Documentation structure
88

99
- **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/
1114
- InfluxDB 3 Core
1215
- Documentation source path: `/content/influxdb3/core`
16+
- Published for the web: https://docs.influxdata.com/influxdb3/core/
1317
- Code repositories: https://github.com/influxdata/influxdb, https://github.com/influxdata/influxdb3_core
1418
- InfluxDB 3 Enterprise
1519
- Documentation source path: `/content/influxdb3/enterprise`
20+
- Published for the web: https://docs.influxdata.com/influxdb3/enterprise/
1621
- Code repositories: https://github.com/influxdata/influxdb, https://github.com/influxdata/influxdb3_enterprise
1722
- InfluxDB Cloud Dedicated
1823
- Documentation source path: `/content/influxdb3/cloud-dedicated`
24+
- Published for the web: https://docs.influxdata.com/influxdb3/cloud-dedicated/
1925
- Code repository: https://github.com/influxdata/influxdb
2026
- InfluxDB Cloud Serverless
2127
- Documentation source path: `/content/influxdb3/cloud-serverless`
28+
- Published for the web: https://docs.influxdata.com/influxdb3/cloud-serverless/
2229
- Code repository: https://github.com/influxdata/idpe
2330
- InfluxDB Cloud v2 (TSM)
2431
- Documentation source path: `/content/influxdb/cloud`
32+
- Published for the web: https://docs.influxdata.com/influxdb/cloud/
2533
- Code repository: https://github.com/influxdata/idpe
2634
- InfluxDB Clustered
2735
- Documentation source path: `/content/influxdb3/clustered`
36+
- Published for the web: https://docs.influxdata.com/influxdb3/clustered/
2837
- Code repository: https://github.com/influxdata/influxdb
2938
- InfluxDB Enterprise v1 (1.x)
3039
- Documentation source path: `/content/influxdb/enterprise_influxdb`
40+
- Published for the web: https://docs.influxdata.com/enterprise_influxdb/v1/
3141
- Code repository: https://github.com/influxdata/influxdb
3242
- InfluxDB OSS 1.x
3343
- Documentation source path: `/content/influxdb/v1`
44+
- Published for the web: https://docs.influxdata.com/influxdb/v1/
3445
- Code repository: https://github.com/influxdata/influxdb
3546
- InfluxDB OSS 2.x
3647
- Documentation source path: `/content/influxdb/v2`
48+
- Published for the web: https://docs.influxdata.com/influxdb/v2/
3749
- Code repository: https://github.com/influxdata/influxdb
3850
- Telegraf
3951
- Documentation source path: `/content/telegraf/v1`
52+
- Published for the web: https://docs.influxdata.com/telegraf/v1/
4053
- Code repository: https://github.com/influxdata/telegraf
4154
- Kapacitor
4255
- Documentation source path: `/content/kapacitor/v1`
56+
- Published for the web: https://docs.influxdata.com/kapacitor/v1/
4357
- Code repository: https://github.com/influxdata/kapacitor
4458
- Chronograf
4559
- Documentation source path: `/content/chronograf/v1`
60+
- Published for the web: https://docs.influxdata.com/chronograf/v1/
4661
- Code repository: https://github.com/influxdata/chronograf
4762
- Flux
4863
- Documentation source path: `/content/flux/v0`
64+
- Published for the web: https://docs.influxdata.com/flux/v0/
4965
- Code repository: https://github.com/influxdata/flux
5066
- **InfluxData-supported tools**:
5167
- InfluxDB API client libraries
@@ -57,21 +73,30 @@ GitHub Copilot should help document InfluxData products by creating clear, accur
5773
- **Repository**: https://github.com/influxdata/docs-v2
5874
- **Framework**: Hugo static site generator
5975

60-
## Style Guidelines
76+
## Style guidelines
6177

6278
- Follow Google Developer Documentation style guidelines
6379
- For API references, follow YouTube Data API style
6480
- 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
6589
- Use only h2-h6 headings in content (h1 comes from frontmatter title properties)
6690
- Use sentence case for headings
6791
- Use GitHub callout syntax
6892
- Image naming: `project/version-context-description.png`
6993
- Use appropriate product names and versions consistently
7094
- Follow InfluxData vocabulary guidelines
7195

72-
## Markdown and Shortcodes
96+
## Markdown and shortcodes
7397

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/`):
75100

76101
```yaml
77102
title: # Page title (h1)
@@ -82,18 +107,20 @@ GitHub Copilot should help document InfluxData products by creating clear, accur
82107
product_version:
83108
weight: # Page order (1-99, 101-199, etc.)
84109
```
85-
110+
- Follow the shortcode examples in `content/example.md` and the documentation
111+
for docs-v2 contributors in `CONTRIBUTING.md`
86112
- Use provided shortcodes correctly:
87113
- Notes/warnings: `{{% note %}}`, `{{% warn %}}`
88114
- Product-specific: `{{% enterprise %}}`, `{{% cloud %}}`
89115
- Tabbed content: `{{< tabs-wrapper >}}`, `{{% tabs %}}`, `{{% tab-content %}}`
116+
- Tabbed content for code examples (without additional text): `{{< code-tabs-wrapper >}}`, `{{% code-tabs %}}`, `{{% code-tab-content %}}`
90117
- Version links: `{{< latest >}}`, `{{< latest-patch >}}`
91118
- API endpoints: `{{< api-endpoint >}}`
92119
- Required elements: `{{< req >}}`
93120
- Navigation: `{{< page-nav >}}`
94121
- Diagrams: `{{< diagram >}}`, `{{< filesystem-diagram >}}`
95122

96-
## Code Examples and Testing
123+
## Code examples and testing
97124

98125
- Provide complete, working examples with proper testing annotations:
99126

@@ -124,27 +151,50 @@ Table: keys: [_start, _stop, _field, _measurement]
124151
- Include necessary environment variables
125152
- Show proper credential handling for authenticated commands
126153

127-
## API Documentation
154+
## API documentation
128155

156+
- `/api-docs` contains OpenAPI spec files used for API reference documentation
129157
- Follow OpenAPI specification patterns
130158
- Match REST API examples to current implementation
131159
- Include complete request/response examples
132160
- Document required headers and authentication
133161

134-
## Versioning and Product Differentiation
162+
## Versioning and product differentiation
135163

136164
- Clearly distinguish between different InfluxDB versions (1.x, 2.x, 3.x)
137165
- Use correct terminology for each product variant
138166
- Apply appropriate UI descriptions and screenshots
139167
- Reference appropriate query language per version
140168

141-
## Development Tools
169+
## Development tools
142170

143171
- Vale.sh linter for style checking
172+
- Configuration file: `.vale.ini`
144173
- Docker for local development and testing
145174
- 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
147183

148184
## Related repositories
149185

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

Comments
 (0)