Skip to content

Commit 6dac142

Browse files
committed
feat(influxdb3): Core and Ent: CLI reference for update database, update table (Ent3 only)- Add CLI reference for influxdb3 update database command and retention period option in Core and Ent
- Add CLI ref for influxdb3 update table and ret. period option in Ent- Change volume source to /test for core and ent3 in compose.yaml - Add alt_links instructions in CONTRIBUTING.md
1 parent 566f7dc commit 6dac142

File tree

14 files changed

+340
-9
lines changed

14 files changed

+340
-9
lines changed

.github/instructions/contributing.instructions.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
applyTo: "content/**/*.md, layouts/**/*.html"
33
---
44

5-
# GitHub Copilot Instructions for InfluxData Documentation
5+
# Contributing instructions for InfluxData Documentation
66

77
## Purpose and scope
88

9-
GitHub Copilot should help document InfluxData products
9+
Help document InfluxData products
1010
by creating clear, accurate technical content with proper
1111
code examples, frontmatter, shortcodes, and formatting.
1212

@@ -375,6 +375,9 @@ list_query_example:# Code examples included with article descriptions in childre
375375
# References to examples in data/query_examples
376376
canonical: # Path to canonical page, overrides auto-gen'd canonical URL
377377
v2: # Path to v2 equivalent page
378+
alt_links: # Alternate pages in other products/versions for cross-product navigation
379+
cloud-dedicated: /influxdb3/cloud-dedicated/path/to/page/
380+
core: /influxdb3/core/path/to/page/
378381
prepend: # Prepend markdown content to an article (especially powerful with cascade)
379382
block: # (Optional) Wrap content in a block style (note, warn, cloud)
380383
content: # Content to prepend to article
@@ -466,6 +469,29 @@ add the following frontmatter to the 1.x page:
466469
v2: /influxdb/v2.0/get-started/
467470
```
468471

472+
### Alternative links for cross-product navigation
473+
474+
Use the `alt_links` frontmatter to specify equivalent pages in other InfluxDB products,
475+
for example, when a page exists at a different path in a different version or if
476+
the feature doesn't exist in that product.
477+
This enables the product switcher to navigate users to the corresponding page when they
478+
switch between products. If a page doesn't exist in another product (for example, an
479+
Enterprise-only feature), point to the nearest parent page if relevant.
480+
481+
```yaml
482+
alt_links:
483+
cloud-dedicated: /influxdb3/cloud-dedicated/admin/tokens/create-token/
484+
cloud-serverless: /influxdb3/cloud-serverless/admin/tokens/create-token/
485+
core: /influxdb3/core/reference/cli/influxdb3/update/ # Points to parent if exact page doesn't exist
486+
```
487+
488+
Supported product keys for InfluxDB 3:
489+
- `core`
490+
- `enterprise`
491+
- `cloud-serverless`
492+
- `cloud-dedicated`
493+
- `clustered`
494+
469495
### Prepend and append content to a page
470496

471497
Use the `prepend` and `append` frontmatter to add content to the top or bottom of a page.

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ list_query_example:# Code examples included with article descriptions in childre
363363
# References to examples in data/query_examples
364364
canonical: # Path to canonical page, overrides auto-gen'd canonical URL
365365
v2: # Path to v2 equivalent page
366+
alt_links: # Alternate pages in other products/versions for cross-product navigation
367+
cloud-dedicated: /influxdb3/cloud-dedicated/path/to/page/
368+
core: /influxdb3/core/path/to/page/
366369
prepend: # Prepend markdown content to an article (especially powerful with cascade)
367370
block: # (Optional) Wrap content in a block style (note, warn, cloud)
368371
content: # Content to prepend to article
@@ -454,6 +457,29 @@ add the following frontmatter to the 1.x page:
454457
v2: /influxdb/v2.0/get-started/
455458
```
456459

460+
### Alternative links for cross-product navigation
461+
462+
Use the `alt_links` frontmatter to specify equivalent pages in other InfluxDB products,
463+
for example, when a page exists at a different path in a different version or if
464+
the feature doesn't exist in that product.
465+
This enables the product switcher to navigate users to the corresponding page when they
466+
switch between products. If a page doesn't exist in another product (for example, an
467+
Enterprise-only feature), point to the nearest parent page if relevant.
468+
469+
```yaml
470+
alt_links:
471+
cloud-dedicated: /influxdb3/cloud-dedicated/admin/tokens/create-token/
472+
cloud-serverless: /influxdb3/cloud-serverless/admin/tokens/create-token/
473+
core: /influxdb3/core/reference/cli/influxdb3/update/ # Points to parent if exact page doesn't exist
474+
```
475+
476+
Supported product keys for InfluxDB 3:
477+
- `core`
478+
- `enterprise`
479+
- `cloud-serverless`
480+
- `cloud-dedicated`
481+
- `clustered`
482+
457483
### Prepend and append content to a page
458484

459485
Use the `prepend` and `append` frontmatter to add content to the top or bottom of a page.

compose.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,21 @@ services:
304304
image: influxdb:3-core
305305
ports:
306306
- 8181:8181
307+
volumes:
308+
- type: bind
309+
source: test/influxdb3/core/data
310+
target: /var/lib/influxdb3/data
311+
- type: bind
312+
source: test/influxdb3/core/plugins
313+
target: /var/lib/influxdb3-plugins
307314
command:
308315
- influxdb3
309316
- serve
310-
- --node-id=sensors_node0
317+
- --node-id=node0
311318
- --log-filter=debug
312319
- --object-store=file
313-
- --data-dir=/var/lib/influxdb3
320+
- --data-dir=/var/lib/influxdb3/data
321+
- --plugin-dir=/var/lib/influxdb3/plugins
314322
influxdb3-enterprise:
315323
container_name: influxdb3-enterprise
316324
image: influxdb:3-enterprise
@@ -326,16 +334,16 @@ services:
326334
- --cluster-id=cluster0
327335
- --log-filter=debug
328336
- --object-store=file
329-
- --data-dir=/var/lib/influxdb3
337+
- --data-dir=/var/lib/influxdb3/data
330338
- --plugin-dir=/var/lib/influxdb3/plugins
331339
- --license-email=${INFLUXDB3_LICENSE_EMAIL}
332340
volumes:
333341
- type: bind
334-
source: docker/influxdb3/data
335-
target: /var/lib/influxdb3
342+
source: test/influxdb3/enterprise/data
343+
target: /var/lib/influxdb3/data
336344
- type: bind
337-
source: docker/influxdb3/plugins
338-
target: /var/lib/influxdb3-plugins
345+
source: test/influxdb3/enterprise/plugins
346+
target: /var/lib/influxdb3/plugins
339347
telegraf-pytest:
340348
container_name: telegraf-pytest
341349
image: influxdata/docs-pytest

content/influxdb3/core/reference/cli/influxdb3/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
3232
| [serve](/influxdb3/core/reference/cli/influxdb3/serve/) | Run the {{% product-name %}} server |
3333
| [show](/influxdb3/core/reference/cli/influxdb3/show/) | List resources |
3434
| [test](/influxdb3/core/reference/cli/influxdb3/test/) | Test plugins |
35+
| [update](/influxdb3/core/reference/cli/influxdb3/update/) | Update resources |
3536
| [write](/influxdb3/core/reference/cli/influxdb3/write/) | Write to {{% product-name %}} |
3637

3738
## Global options
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: influxdb3 update
3+
description: >
4+
The `influxdb3 update` command updates resources such as databases.
5+
menu:
6+
influxdb3_core:
7+
parent: influxdb3
8+
name: influxdb3 update
9+
weight: 300
10+
source: /shared/influxdb3-cli/update/_index.md
11+
---
12+
13+
<!--
14+
// SOURCE content/shared/influxdb3-cli/update/_index.md
15+
-->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: influxdb3 update database
3+
description: >
4+
The `influxdb3 update database` command updates an existing database.
5+
menu:
6+
influxdb3_core:
7+
parent: influxdb3 update
8+
name: influxdb3 update database
9+
weight: 400
10+
source: /shared/influxdb3-cli/update/database/_index.md
11+
---
12+
13+
<!--
14+
// SOURCE content/shared/influxdb3-cli/update/database/_index.md
15+
-->

content/influxdb3/enterprise/reference/cli/influxdb3/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
3232
| [serve](/influxdb3/enterprise/reference/cli/influxdb3/serve/) | Run the {{% product-name %}} server |
3333
| [show](/influxdb3/enterprise/reference/cli/influxdb3/show/) | List resources |
3434
| [test](/influxdb3/enterprise/reference/cli/influxdb3/test/) | Test plugins |
35+
| [update](/influxdb3/enterprise/reference/cli/influxdb3/update/) | Update resources |
3536
| [write](/influxdb3/enterprise/reference/cli/influxdb3/write/) | Write to {{% product-name %}} |
3637

3738
## Global options
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: influxdb3 update
3+
description: >
4+
The `influxdb3 update` command updates resources such as databases and tables.
5+
menu:
6+
influxdb3_enterprise:
7+
parent: influxdb3
8+
name: influxdb3 update
9+
weight: 300
10+
source: /shared/influxdb3-cli/update/_index.md
11+
---
12+
13+
<!--
14+
// SOURCE content/shared/influxdb3-cli/update/_index.md
15+
-->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: influxdb3 update database
3+
description: >
4+
The `influxdb3 update database` command updates an existing database.
5+
menu:
6+
influxdb3_enterprise:
7+
parent: influxdb3 update
8+
name: influxdb3 update database
9+
weight: 400
10+
source: /shared/influxdb3-cli/update/database/_index.md
11+
---
12+
13+
<!--
14+
// SOURCE content/shared/influxdb3-cli/update/database/_index.md
15+
-->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: influxdb3 update table
3+
description: >
4+
The `influxdb3 update table` command updates an existing table.
5+
menu:
6+
influxdb3_enterprise:
7+
parent: influxdb3 update
8+
name: influxdb3 update table
9+
weight: 400
10+
source: /shared/influxdb3-cli/update/table/_index.md
11+
alt_links:
12+
core: /influxdb3/core/reference/cli/influxdb3/update/
13+
---
14+
15+
<!--
16+
// SOURCE content/shared/influxdb3-cli/update/table/_index.md
17+
-->

0 commit comments

Comments
 (0)