Docs: Fix broken ref URI link (#102057)

* Simplify make file to address build error

* Fixed typo in ref URI

* Fixed typo in ref URI

* Reverted change

* Updated Makefile with new script

* Reformatted Makefile

* Updated Makefile

* Fixed broken ref URI links

* Removed old code
pull/102595/head
Isabel Matwawana 4 months ago committed by GitHub
parent 3c2e2d73d1
commit 276163e02b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      docs/Makefile
  2. 4
      docs/sources/panels-visualizations/query-transform-data/transform-data/index.md
  3. 4
      scripts/docs/generate-transformations.ts

@ -8,8 +8,11 @@ MAKEFLAGS += --no-builtin-rule
include docs.mk
.PHONY: sources/panels-visualizations/query-transform-data/transform-data/index.md
sources/panels-visualizations/query-transform-data/transform-data/index.md: ## Generate the Transform Data page source.
sources/panels-visualizations/query-transform-data/transform-data/index.md:
cd $(CURDIR)/.. && npx tsc ./scripts/docs/generate-transformations.ts && \
sources/panels-visualizations/query-transform-data/transform-data/index.md: ## Generate the Transform Data page source. Create a temporary TypeScript configuration that skips type checking of library files. This avoids errors with third-party type definitions like the Intl.Segmenter issue
cd $(CURDIR)/.. && \
echo '{"compilerOptions":{"skipLibCheck":true,"target":"es2020","module":"commonjs","esModuleInterop":true},"include":["./scripts/docs/generate-transformations.ts"]}' > temp-tsconfig.json && \
npx tsc -p temp-tsconfig.json && \
node ./scripts/docs/generate-transformations.js > $(CURDIR)/$@ && \
npx prettier -w $(CURDIR)/$@
chmod +x node_modules/.bin/prettier && \
npx prettier -w $(CURDIR)/$@ && \
rm temp-tsconfig.json

@ -59,9 +59,9 @@ refs:
destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana/#configuration-file-location
dashboard-variable:
- pattern: /docs/grafana/
destination: docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
- pattern: /docs/grafana-cloud/
destination: docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
feature-toggle:
- pattern: /docs/grafana/
destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana/#feature_toggles

@ -65,9 +65,9 @@ refs:
destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana/#configuration-file-location
dashboard-variable:
- pattern: /docs/grafana/
destination: docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
- pattern: /docs/grafana-cloud/
destination: docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/
feature-toggle:
- pattern: /docs/grafana/
destination: /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana/#feature_toggles

Loading…
Cancel
Save