Commit Graph

18 Commits (sql-difference-fn)

Author SHA1 Message Date
Jason Stirnaman 8035366677
refactor: replace URL-parsing in shortcodes with cascade product data (#6883)
* chore: add .worktrees to gitignore

* refactor: replace URL-parsing in shortcodes with cascade product data

Replace duplicated URL-parsing logic across 28 shortcodes with Hugo's
cascade frontmatter. Each product section's _index.md now cascades
`product` (data key) and `version` (URL segment) to all descendants.

Key changes:
- Add cascade frontmatter to 15 product _index.md files
- Create layouts/partials/product/get-data.html shared partial
- Refactor 28 shortcodes to use the partial instead of parsing URLs
- Add version_label, limits, and distributed_architecture metadata
  to data/products.yml to eliminate hardcoded dicts in shortcodes
- Fix lefthook lint-markdown-instructions glob format (YAML array)
- Fix pre-existing Vale exclamation point errors in cloud and v2

* fix: prevent remark-lint from escaping Hugo template syntax in shortcodes

Lefthook's glob option only triggers whether a command runs — it does
not filter {staged_files}. This caused remark-lint to process .md
shortcode files in layouts/, escaping underscores, brackets, and
parentheses that are valid Hugo template syntax.

Add layouts/ exclusion to the existing content/ filter in the
lint-markdown-instructions run command. Also fix the 3 shortcode files
that were damaged by remark-lint in the previous commit.

* test: add E2E tests for cascade product shortcodes

Add Cypress tests validating all refactored shortcodes across 14
product/version combos (82 tests). Test expectations are derived
from products.yml at runtime via cy.task('getData').

Fix the product links test to iterate actual home page links
instead of all products.yml entries.

Create _test/shortcodes.md pages in each product section
exercising product-name, product-key, current-version,
influxdb/host, and InfluxDB3-specific shortcodes.

* test: expand E2E coverage to 27 of 28 cascade shortcodes

Add shortcode invocations to all 14 test pages and corresponding
Cypress assertions for version lookups, namespace URLs, product
name text, placeholder_host, version visibility, CTA links, and
site-level data.

Add shortcodes-real-pages.cy.js for 6 shortcodes that require real
page context (cli/mapped, children, flux/list-all-functions,
telegraf/plugins, html-diagram/sso-auth-flow, cli/influxd-flags).

Suppress Vale on test pages — they contain only shortcode syntax,
not prose.

163 tests total, all passing.

* refactor(test): rename _test dirs to __tests__ and add noindex

Rename test page directories from _test to __tests__ to align with
JS testing conventions. Add noindex: true to all 14 test page
frontmatter to prevent search engine indexing in production.
Update Cypress URL pattern to match new paths.
2026-02-27 09:46:57 -06:00
Scott Anderson 5ade5e0178
fix(telegraf): link to plugins docs in the docs, update plugin cards (#6761) 2026-01-22 12:45:55 -07:00
Sven Rebhan 18c79b7b48 Fix version filtering 2025-06-18 22:36:29 +02:00
Sven Rebhan 54261399b5 Fix operating system filtering
(cherry picked from commit 3d38f191397ef97927b5a28060b13085e4cc8c6a)
2025-06-18 22:36:29 +02:00
Scott Anderson 35ad46c4c2
Version restructure (#5133)
* mass changes for version restructure

* fixed latest-patch and flux version generator

* updated hugo configs

* fixed flux frontmatter injector

* fixed flux frontmatter injector

* WIP api generator updates for version restructure (#5128)

* fixed telegraf plugin list

* removed latest shortcode

* fixed current-version

* fixed product dropdown crosslinking

* fixed alt links

* WIP fixing links

* fixed broken links

* updated api doc generation

* fixed additional resources

* added version redirects to edge.js

* fixed search placeholder

* fixed paged titles
2023-09-12 23:33:31 -06:00
Scott Anderson 85fdbc439f
InfluxDB 1.8 backup/restore revamp (#4095)
* WIP 1.x backup/restore revamp

* WIP backup and restore revamp

* WIP backup restore refactor

* WIP backup and restore rework

* added code-callout shortcode

* finished out backup/restore restructure
2022-06-08 17:02:19 -06:00
Scott Anderson 9ab4ee25bb hotfix: remove telegraf external plugin list, add external info links 2022-05-26 22:40:21 -06:00
Scott Anderson a2a178cedf
Fix Telegraf plugin anchors and links (#3989)
* updated telegraf plugin anchors, fix telegraf links, closes #3863

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
2022-04-28 20:19:55 -06:00
Scott Anderson 93aa238dc5
Flux restructure (#3141)
* initial changes for flux restructure

* added all aliases

* added introduced date to all flux functions

* marked linearBins and logarithmicBins as draft

* migrated flux stdlib to new flux section, added version range to article template

* fixed list-all-functions shortcode

* duplicated and reordered flux spec, added page-nav shortcode, closes #1870

* added filtering functionality to list-all-functions shortcode

* added function tags

* Stdlib reorg (#2130)

* consolidated influxdb packages

* stdlib rename and reorg

* reorg existing contrib docs

* added keep-url to http.get example

* reorg built-in directory, add function types docs

* updated links

* updated all related links

* fixed reference links in influxdb docs

* updated all internal flux links

* updated flux links in influxdb

* one last link update

* restyle product dropdown

* update flux links in influxdb 1.7 and 1.8

* fixed shortcode call

* updated task options in flux options doc

* Flux 'interpolate' package (#2148)

* add interpolate package, closes #1649

* added missing page description to interpolate package doc

* removed unnecessary space from interpolate description

* updated interpolate package description

* ported from() note to new flux section

* New list filter javascript (#2185)

* generalized list filtering for telegraf plugins and flux functions

* added flux tags, updated filter list functionality

* added more flux tags

* added new experimental functions

* updated derivative params

* ported over new experimental functions

* fixed bad copy-pasta

* ported new notification endpoints into new flux docs

* updated flux function categories

* ported flux changes from master

* fixed product dropdown

* fixed regexp.findString example

* ported flux 0.109 changes

* updated array package aliases and supported version

* ported new functions into flux dir

* added aliases to interpolate package

* ported flux v0.114 packages

* added enterpise logic to url selector modal

* fix minor typo

* Update Flux param type convention (#2515)

* fix minor typo

* WIP new flux data type convention

* wip more param type updates

* cleaned up function type specs

* ported flux 0.115.0 packages and functions

* ported tickscript package

* ported today function

* added aliases to tickscript pkg

* updated timedMovingAverage params example

* updated to function with remote creds

* port flux 0.118 changes over

* port flux changes into flux-restructure

* ported changes from flux 0.123.0 and updated flux function docs

* updated contrib package summary

* updated function definition of schema.tagValues

* ported recent flux changes to the restructure branch

* port changes from master

* Flux get started (#3036)

* Flux group keys demo (#2553)

* interactive group key example

* added js and shortcode for group key demo

* updated group key demo to address PR feedback

* shortened sample data set

* Flux get started intro and data model (#2619)

* starting flux intro content, resolved merge conflicts

* WIP flux get started docs

* WIP flux get started

* flux get started intro and data model

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Update content/flux/v0.x/get-started/data-model.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* addressed PR feedback in flux get started

* updated flux docs landing page

* more updates to flux landing page

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Flux query basics (#2887)

* WIP flux query basics

* WIP flux query basics

* WIP flux query basics

* WIP flux query basics

* wrap up content for flux query basics

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* properly close code block on flux query basics

* Flux – query data (#2891)

* added query data sources with flux and query influxdb

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update content/flux/v0.x/query-data/influxdb.md

* Query Prometheus with Flux (#2893)

* query prometheus with flux

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Query CSV data with Flux (#2895)

* query csv data with flux

* address PR feedback

* Update content/flux/v0.x/query-data/csv.md

* update flux query data sources landing page

* updated flux query data doc formats and links

* Query SQL databases (#2922)

* WIP query sql guides

* query SQL data sources, closes #1738

* updated related link on sql.from

* added link to stream of tables and updated text

* updated connection string text

* updated query sql landing page and children hr styles

* updated sql query docs to address PR feedback

* added missing colon

* Query Google Cloud Bigtable with Flux (#2928)

* Query Google Cloud Bigtable with Flux

* updated doc structure of query bigtable doc

* fixed typo in bigquery doc

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Work with Flux data types (#2967)

* scaffolding for flux types, work with strings

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* removed note about interpolation vs concatenation

* updated wording of variable type association

* generalized type inference

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* WIP work with ints

* reverted int content

* updated strings doc to address PR feedback

* added description to data types landing page

* Apply suggestions from code review

* Update content/flux/v0.x/data-types/basic/string.md

* updated composite front-matter

* Work with time types in Flux  (#2974)

* work with time types in flux, closes #2260

* updated time type doc

* fixed type in time type description

* fixed typo

* updated work with time doc

* fixed typos

* updated verbiage

* added related links

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated time type doc to address PR feedback

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with booleans (#2975)

* work with boolean types

* updated working with booleans

* updated verbiage

* added related links

* Update content/flux/v0.x/data-types/basic/boolean.md

* Work with bytes types (#2976)

* work with bytes types

* added toc to bytes type doc

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* updated work with bytes doc

* fixed typo

* added related links

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Work with durations (#2977)

* work with durations in flux

* added keywords to duration doc to improve searchability

* minor updates to duration type doc

* updated verbiage

* added related links and removed toDuration from menu

* Update content/flux/v0.x/data-types/basic/duration.md

* Work with null types (#2978)

* WIP null types

* work with null types in flux

* updated null types doc

* Update content/flux/v0.x/data-types/basic/null.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with floats (#2979)

* work with floats in flux

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Apply suggestions from code review

* updated floats type doc

* Update content/flux/v0.x/data-types/basic/float.md

* updated verbiage

* added related links

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with integers (#2980)

* WIP work with ints

* work with integers

* work with integers

* updated float to int behavior, added related links, closes #2973

* added toc to ints doc

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update content/flux/v0.x/data-types/basic/integer.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with uintegers (#2981)

* WIP work with uints

* work with uints

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* fixed minor type

* Work with records (#2982)

* work with records in flux

* updated record type doc

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with arrays (#2983)

* work with arrays

* added array.from example, added related links

* Work with dictionaries (#2984)

* WIP work with dicts

* work with dictionaries

* added related links to dict package

* added introduced version to dict package

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* added sample dict output

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Work with functions (#2985)

* work with functions

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* revamped type landing pages

* marked union types as draft

* miscellaneous updates

* Work with regular expression (#3024)

* work with regular expression types, closes #2573, closes influxdata/flux#3741

* add context for quoteMeta function

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>

Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>

* fix latest links in page descriptions

* updated influxdb links

* Flux syntax basics (#3033)

* flux syntax basics

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* updated function description

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Apply suggestions from code review

* Update content/flux/v0.x/get-started/syntax-basics.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>

* added table param to transformations, closes #2392 (#3039)

* updated flux function links

* update algolia configuration to fix search, closes #1902 (#3042)

* ported notes in the from function doc

* Flux package options (#3083)

* add now option to universe package

* added missing package options, closes #2464

* addressed PR feedback

* Flux transformation input/output examples (#3103)

* added flux/sample shortcode

* standardize flux package titles and list titles

* added start and stop columns as an option with flux/sample shortcode

* minor updates to stdlib

* WIP add input and output examples to flux transformations

* WIP removed sample data demo from universe index page

* WIP function input and output examples

* WIP flux input output examples

* WIP flux input output examples

* flux transformation input and output examples

* Add Flux 'sampledata' package (#3088)

* add flux sampledata package

* updated sampledata example titles

* Write data with Flux (#3084)

* WIP write to sql data sources

* write to sql data sources

* added write data to influxdb with flux doc

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* made sql headings specific to each db

* updated write to influxdb

* added tag to influxdb to example

* restructred influxdb write examples as code tabs

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* fixed list on influxdb write with flux page

* Flux move changelog (#3117)

* updated flux redirects in edge.js

* move flux changelog into Flux restructure

* add flux redirects to edge.js

* removed extra parentheses from monitor.notify examples, closes #2505

* updated flux release notes with flux 0.129.0

* moved from and to into the influxdata/influxdb package

* updated notes on to and from docs

* added flux card to homepage

* added flux-0.130.0 to flux release notes

* flux link cleanup

* updated experimental message, closes #3097 (#3128)

* Remove Flux stdlib and language from InfluxDB (#3133)

* remove flux stdlib and lang from influxdb, update flux get-started, closes #2132

* flux link cleanup

* cleaned up prometheus verbiage, updated flux data type links

* function cleanup

* fixed sidenav toggle button

* updated group key links, added aliases for flux landing page

* fixed broken links, commented out prometheus content, updated flux types names

* added flux links to the left nav

* fixed flux links in kapacitor docs

* temporarily disable search (#3134)

* merged master and updated telegraf plugins

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2021-09-16 16:19:21 -06:00
Scott Anderson c1ca5c8408
Fix broken internal links – SEO link audit (#2189)
* link audit, remove info about stopping influxd in restore docs, closes #2168

* fixed broken internal links for seo link audit

* updated canonical logic to be smarter

* fixed canonical links and broken images

* fixed errant find and replace

* fixed formatting of kapa event handler docs

* more link fixes

* more link fixes, support latest shortcode in telegraf plugin descriptions
2021-02-19 11:07:47 -07:00
Scott Anderson 55570a4ec1
updated links for external telegraf plugins, added styles, closes influxdata/influxdata.com#280 (#1864) 2020-11-20 21:27:22 -07:00
pierwill 9432e7f573 Telegraf link audit (#1382)
* Link audit for telegraf

* fixed broken links, fixed telegraf card display logic, updated telegraf btn styles

Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Scott Anderson <scott@influxdata.com>
2020-09-02 12:17:40 -06:00
Scott Anderson 5436afccf4 updated telegraf plugin shortcode to version the plugin list 2020-09-02 12:15:54 -06:00
Scott Anderson 0a98668828 updated telegraf plugins to address PR feedback, now auto-generate plugin links 2019-12-09 09:56:59 -07:00
Kelly 8b45c7bb94 fix typo 2019-06-10 09:15:08 -07:00
Scott Anderson 15f903f2f3 ux improvements to the telegraf filters 2019-05-20 10:56:07 -06:00
Scott Anderson e27e87a54b added new flag to telegraf plugins page 2019-05-17 16:51:04 -06:00
Scott Anderson cd2b61c5eb added js for telegraf plugin filtering, filter files, moved telegraf version 2019-05-17 15:33:15 -06:00