Commit Graph

8613 Commits (b32c482ab355c7fb2824397cedebf736feba928c)

Author SHA1 Message Date
Jason Stirnaman f53eaf88d9 fix(example): Bad link 2025-05-19 09:55:50 -05:00
Jason Stirnaman da767f5228 chore(test): e2e test improvements:
- Link checker should report the first broken link
- Link checker should only test external links if the domains are in the allowed list
- If test subjects don't start with 'content/', treat them as URL paths and don't send them to map-files-to-urls.js.
2025-05-19 09:55:06 -05:00
Jason Stirnaman 02e10068ad - **Improved successor handling in stable-version.html**
- Fixed logic to maintain current product context while using successor for version info
  - Added appropriate successor product display in callout warning
  - Fixed conditions for when callout should appear
  - Fixed potential `isset <nil>` problems with proper nil checks before accessing properties

- **Added comprehensive Cypress tests for successor relationship**
  - Created `stable-version-callout.cy.js` for testing successor behavior
  - Tests that `/influxdb/v1/` and `/influxdb/v2/` pages show successor callout
  - Verifies "InfluxDB 3 Core" appears in callout with correct links
  - Checks product data configuration in `products.yml`
  - Includes JavaScript error detection

- **Configured environment-specific Hugo settings**
  - Added `/config/testing/config.yml` for test environment
  - Configured port 1315 for test environment
  - Added build parameters specific to testing context
  - Separated test environment from development environment

- **Updated Docker configuration**
  - Added new package.json script for building Docker image
  - Improved Docker-based testing commands
2025-05-19 09:55:06 -05:00
Jason Stirnaman 4cfff239f3 End-to-end testing, CI script, and JavaScript QoL improvements:
- **Environment variable formatting** - Updated environment variable configuration from array format to object format to comply with Lefthook schema validation requirements.
- **Unified link testing** - Consolidated multiple product-specific link testing commands into a single `e2e-links` command that processes all staged Markdown and HTML files across content directories.
- **Package script integration** - Modified commands to use centralized yarn scripts instead of direct execution, improving maintainability and consistency.
- **Source information extraction** - Enhanced to correctly extract and report source information from frontmatter.
- **URL and source mapping** - Improved handling of URL to source path mapping for better reporting.
- **Ignored anchor links configuration** - Added proper exclusion of behavior-triggering anchor links (like tab navigation) to prevent false positives.
- **Request options correction** - Fixed Cypress request options to ensure `failOnStatusCode` is properly set when `retryOnStatusCodeFailure` is enabled.
- **Improved error reporting** - Enhanced error reporting with more context about broken links.
- **New test scripts added** - Added centralized testing scripts for link checking and codeblock validation.
- **Product-specific test commands** - Added commands for each product version (InfluxDB v2, v3 Core, Enterprise, Cloud, etc.).
- **API docs testing** - Added specialized commands for testing API documentation links.
- **Comprehensive test runners** - Added commands to run all tests of a specific type (`test:links:all`, `test:codeblocks:all`).
- Fix Docker build command and update CONTRIBUTING.

chore(js): JavaScript QoL improvements:

- Refactor main.js with a componentRegistry object and clear initialization of components and globals
- Add a standard index.js with all necessary exports.
- Update javascript.html to use the index.js
- Remove jQuery script tag from header javascript.html (remains in footer)
- Update package file to improve module discovery.
- Improve Hugo and ESLint config for module discovery and ES6 syntax
2025-05-19 09:50:33 -05:00
Jason Stirnaman 853e628880 chore(ci): Shortcode tests using example.md. Support test-only files (such as example.md) without abusing draft mode.
- Add a frontmatter test-only attribute for files like example.md. Don't use draft: true for these files.
- Add support in index.html for the attribute so that the files are only rendered when running in the testing environment.
- e2e smoke test using example.md, ensure it renders without JavaScript errors.
2025-05-19 09:33:34 -05:00
meelahme b3b087bf45 Clarify token usage instructions and reinforce one-time visibility 2025-05-16 21:07:13 -07:00
meelahme 74039f1919 resolving lint check warning 2025-05-16 20:52:38 -07:00
meelahme 83d800be46 minor update to table.md 2025-05-16 20:50:53 -07:00
meelahme c60766be3e updating verification example to be more precise 2025-05-16 20:47:05 -07:00
meelahme fa8e6114f9 Fix pytest.mark.skip rendering issue in SHOW TABLES example output block 2025-05-16 20:38:32 -07:00
meelahme d8e043e193 Clarify table creation behavior in CLI docs; add note about automatic creation on write 2025-05-16 20:10:56 -07:00
Jameelah Mercer ed3aa1ff30
Update content/shared/influxdb3-cli/create/token.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 19:39:13 -07:00
Jameelah Mercer 7f1a3b6cec
Update trigger.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:21:36 -07:00
Jameelah Mercer 69170973f8
Update trigger.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:21:25 -07:00
Jameelah Mercer cf87936e97
Update trigger.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:21:18 -07:00
Jameelah Mercer a2145f0f98
Update trigger.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:21:12 -07:00
Jameelah Mercer ef239efffa
Update token.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:21:05 -07:00
Jameelah Mercer 3a39a927df
Update token.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:20:57 -07:00
Jameelah Mercer 7a390620d1
Update table.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:20:41 -07:00
Jameelah Mercer 2c3b3f8dad
Update table.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:59 -07:00
Jameelah Mercer af999045f2
Update table.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:53 -07:00
Jameelah Mercer 2ae9d67475
Update table.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:45 -07:00
Jameelah Mercer df24a224f8
Update last_cache.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:14 -07:00
Jameelah Mercer dd8369b50b
Update last_cache.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:07 -07:00
Jameelah Mercer 9834fab278
Update distinct_cache.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:19:00 -07:00
Jameelah Mercer 3edf4e7cc0
Update database.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:18:55 -07:00
Jameelah Mercer 21588fefd8
Update database.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:18:48 -07:00
Jameelah Mercer b46033898e
Update database.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:18:39 -07:00
Jameelah Mercer 02c3a8bbbd
Update revoke 2.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:18:31 -07:00
Jameelah Mercer 8847d6777e
Update database.md
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
2025-05-16 14:18:19 -07:00
Jameelah Mercer 0f8945fa61
Merge branch 'master' into 5949-add-api-reference-examples-to-influxdb3 2025-05-16 11:07:26 -07:00
Jameelah Mercer 03bb8724ca
Merge pull request #6055 from influxdata/6020-add-code-placeholders-core-ent-examples
Add code-placeholders and tabbed examples for admin in Core and Enterprise
2025-05-16 10:56:38 -07:00
Jameelah Mercer 94b4228f4b
Merge branch 'master' into 5949-add-api-reference-examples-to-influxdb3 2025-05-16 10:56:08 -07:00
Jameelah Mercer da0fde5af6
Update content/shared/v3-core-get-started/_index.md
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2025-05-16 10:51:35 -07:00
Jameelah Mercer cc3b1a9325
Update content/shared/v3-enterprise-get-started/_index.md
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2025-05-16 10:51:28 -07:00
meelahme 8fc07473d2 Merge branch '6020-add-code-placeholders-core-ent-examples' of github.com:influxdata/docs-v2 into 6020-add-code-placeholders-core-ent-examples 2025-05-16 10:21:11 -07:00
meelahme 5c8935f6f7 fix(docs): remove nested code-placeholders and scope per code tab 2025-05-16 10:20:55 -07:00
Jameelah Mercer af0438adfb
Merge branch 'master' into 6020-add-code-placeholders-core-ent-examples 2025-05-16 09:54:39 -07:00
Jameelah Mercer bc0430adce
Merge pull request #6069 from influxdata/6056-fix-auth-token-env-var-docs
Clarify token usage and add CLI/HTTP auth examples
2025-05-16 09:47:36 -07:00
meelahme 8804b13445 fix(docs): close unclosed shortcodes in token authentication tabs and reversed WIP 2025-05-16 09:38:43 -07:00
meelahme 6271c84525 Merge branch '6056-fix-auth-token-env-var-docs' of github.com:influxdata/docs-v2 into 6056-fix-auth-token-env-var-docs 2025-05-16 09:22:38 -07:00
meelahme 7edd83b78b WIP: adding python example 2025-05-16 09:22:31 -07:00
Jameelah Mercer 05d4dc65ae
Merge branch 'master' into 6056-fix-auth-token-env-var-docs 2025-05-16 09:10:23 -07:00
peterbarnett03 d807505528
Merge pull request #6073 from influxdata/pbarnett/release-notes-3.0.3
chore: add release notes for 3.0.3
2025-05-16 11:51:02 -04:00
Peter Barnett 074097902e chore: add release notes for 3.0.3 2025-05-16 11:40:52 -04:00
Scott Anderson e8d9d54fac
Apply suggestions from code review 2025-05-16 09:45:01 -05:00
Jameelah Mercer 956659c8e0
Update content/shared/influxdb3-admin/tokens/_index.md
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2025-05-15 15:51:12 -07:00
Jameelah Mercer a79851db29
Update content/shared/influxdb3-admin/tokens/_index.md
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2025-05-15 15:49:40 -07:00
meelahme aa4e8c4c85 docs(influxdb3): scope token placeholder per tab and move replace instruction 2025-05-15 15:25:10 -07:00
Jason Stirnaman cffe9402cf feat(oss2): Revise and fix partial write enhancement for OSS 2.7.12 2025-05-15 17:12:12 -05:00