Commit e4f46592 by Marcus Andersson Committed by GitHub

Docs: fixing link issues in auto generated frontend docs. (#29326)

* updating api-documenter package and fixed failed link.

* added documentation for matcher code.

* decreasing number of lint errors.
parent f7567f22
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
"@babel/preset-react": "7.8.3", "@babel/preset-react": "7.8.3",
"@babel/preset-typescript": "7.8.3", "@babel/preset-typescript": "7.8.3",
"@emotion/core": "10.0.27", "@emotion/core": "10.0.27",
"@grafana/api-documenter": "0.9.3", "@grafana/api-documenter": "7.11.1",
"@grafana/api-extractor": "7.10.1", "@grafana/api-extractor": "7.10.1",
"@grafana/eslint-config": "2.0.6", "@grafana/eslint-config": "2.0.6",
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1", "@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
......
...@@ -12,6 +12,10 @@ import { ...@@ -12,6 +12,10 @@ import {
} from '../types/transformations'; } from '../types/transformations';
import { Registry } from '../utils/Registry'; import { Registry } from '../utils/Registry';
/**
* Registry that contains all of the built in field matchers.
* @public
*/
export const fieldMatchers = new Registry<FieldMatcherInfo>(() => { export const fieldMatchers = new Registry<FieldMatcherInfo>(() => {
return [ return [
...getFieldPredicateMatchers(), // Predicates ...getFieldPredicateMatchers(), // Predicates
...@@ -20,6 +24,10 @@ export const fieldMatchers = new Registry<FieldMatcherInfo>(() => { ...@@ -20,6 +24,10 @@ export const fieldMatchers = new Registry<FieldMatcherInfo>(() => {
]; ];
}); });
/**
* Registry that contains all of the built in frame matchers.
* @public
*/
export const frameMatchers = new Registry<FrameMatcherInfo>(() => { export const frameMatchers = new Registry<FrameMatcherInfo>(() => {
return [ return [
...getFramePredicateMatchers(), // Predicates ...getFramePredicateMatchers(), // Predicates
...@@ -28,6 +36,11 @@ export const frameMatchers = new Registry<FrameMatcherInfo>(() => { ...@@ -28,6 +36,11 @@ export const frameMatchers = new Registry<FrameMatcherInfo>(() => {
]; ];
}); });
/**
* Resolves a field matcher from the registry for given config.
* Will throw an error if matcher can not be resolved.
* @public
*/
export function getFieldMatcher(config: MatcherConfig): FieldMatcher { export function getFieldMatcher(config: MatcherConfig): FieldMatcher {
const info = fieldMatchers.get(config.id); const info = fieldMatchers.get(config.id);
if (!info) { if (!info) {
...@@ -36,6 +49,11 @@ export function getFieldMatcher(config: MatcherConfig): FieldMatcher { ...@@ -36,6 +49,11 @@ export function getFieldMatcher(config: MatcherConfig): FieldMatcher {
return info.get(config.options); return info.get(config.options);
} }
/**
* Resolves a frame matcher from the registry for given config.
* Will throw an error if matcher can not be resolved.
* @public
*/
export function getFrameMatchers(config: MatcherConfig): FrameMatcher { export function getFrameMatchers(config: MatcherConfig): FrameMatcher {
const info = frameMatchers.get(config.id); const info = frameMatchers.get(config.id);
if (!info) { if (!info) {
......
...@@ -64,7 +64,7 @@ export interface DataRequestEventPayload extends DataRequestInfo { ...@@ -64,7 +64,7 @@ export interface DataRequestEventPayload extends DataRequestInfo {
export type MetaAnalyticsEventPayload = DashboardViewEventPayload | DataRequestEventPayload; export type MetaAnalyticsEventPayload = DashboardViewEventPayload | DataRequestEventPayload;
/** /**
* Describes meta analytics event with predefined {@link EchoEventType.MetaAnalytics} type. * Describes meta analytics event with predefined {@link EchoEventType.EchoEventType} type.
* *
* @public * @public
*/ */
......
...@@ -29,7 +29,7 @@ if [ ! -d "$REPORT_PATH" ]; then ...@@ -29,7 +29,7 @@ if [ ! -d "$REPORT_PATH" ]; then
fi fi
WARNINGS_COUNT="$(find "$REPORT_PATH" -type f -name \*.log -print0 | xargs -0 grep -o "Warning: " | wc -l | xargs)" WARNINGS_COUNT="$(find "$REPORT_PATH" -type f -name \*.log -print0 | xargs -0 grep -o "Warning: " | wc -l | xargs)"
WARNINGS_COUNT_LIMIT=1058 WARNINGS_COUNT_LIMIT=1055
if [ "$WARNINGS_COUNT" -gt $WARNINGS_COUNT_LIMIT ]; then if [ "$WARNINGS_COUNT" -gt $WARNINGS_COUNT_LIMIT ]; then
echo -e "API Extractor warnings/errors $WARNINGS_COUNT exceeded $WARNINGS_COUNT_LIMIT so failing build.\n" echo -e "API Extractor warnings/errors $WARNINGS_COUNT exceeded $WARNINGS_COUNT_LIMIT so failing build.\n"
......
...@@ -3536,18 +3536,18 @@ ...@@ -3536,18 +3536,18 @@
unique-filename "^1.1.1" unique-filename "^1.1.1"
which "^1.3.1" which "^1.3.1"
"@grafana/api-documenter@0.9.3": "@grafana/api-documenter@7.11.1":
version "0.9.3" version "7.11.1"
resolved "https://registry.yarnpkg.com/@grafana/api-documenter/-/api-documenter-0.9.3.tgz#543d0a973157541dd8870d67fb29c3209c52292b" resolved "https://registry.yarnpkg.com/@grafana/api-documenter/-/api-documenter-7.11.1.tgz#5980016ae28aceca16bbeca112913aca5ccda405"
integrity sha512-irYVzjmBQnJ8WEM7WECFhnaAy9b3jzfFbLbiWkTqpxNT1l4RzMycJyjBGdUVUhQjIvg/HbpF8Vqf1utNkrJdxA== integrity sha512-4AJ5m4ychpRA1bFMOm5lP3pMAdR9ZuiSlRuQIdeBrTZh+sFA+C9SiburYdAfr7gQuetlT8LM4+CzJdxQNw7Lbw==
dependencies: dependencies:
"@microsoft/api-extractor-model" "7.7.7" "@microsoft/api-extractor-model" "workspace:*"
"@microsoft/node-core-library" "3.19.3" "@microsoft/tsdoc" "0.12.19"
"@microsoft/ts-command-line" "4.3.10" "@rushstack/node-core-library" "workspace:*"
"@microsoft/tsdoc" "0.12.14" "@rushstack/ts-command-line" "workspace:*"
colors "~1.2.1" colors "~1.2.1"
js-yaml "~3.13.1" js-yaml "~3.13.1"
resolve "1.8.1" resolve "~1.17.0"
"@grafana/api-extractor@7.10.1": "@grafana/api-extractor@7.10.1":
version "7.10.1" version "7.10.1"
...@@ -5051,14 +5051,6 @@ ...@@ -5051,14 +5051,6 @@
resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.21.tgz#25f97a0a1b76e78c16ae5d98c6c73e1be8d89e39" resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.21.tgz#25f97a0a1b76e78c16ae5d98c6c73e1be8d89e39"
integrity sha512-6sANhqfEHu6gdHZSrzDjN18Y48mIon8f2Os6J+IFmMHN0IhNG/0PUIIsI07kA1sZ9t6vgZNBloVmcDa5WOSe6A== integrity sha512-6sANhqfEHu6gdHZSrzDjN18Y48mIon8f2Os6J+IFmMHN0IhNG/0PUIIsI07kA1sZ9t6vgZNBloVmcDa5WOSe6A==
"@microsoft/api-extractor-model@7.7.7":
version "7.7.7"
resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.7.tgz#1d15eae7a19b72abbfca9053f200fe79b6f9d755"
integrity sha512-822kyHMEx2sl+KnBioEiFoTIXuz/4pYBo94nQ4AMqb9BFvY9I1AZUPtC4HFh2zcXQqpFLpKKC55s/o8UOze2wQ==
dependencies:
"@microsoft/node-core-library" "3.19.3"
"@microsoft/tsdoc" "0.12.14"
"@microsoft/api-extractor-model@workspace:*": "@microsoft/api-extractor-model@workspace:*":
version "7.10.3" version "7.10.3"
resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.10.3.tgz#f687f324e940bd71e3e73b5b262a54594b0ea61c" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.10.3.tgz#f687f324e940bd71e3e73b5b262a54594b0ea61c"
...@@ -5067,33 +5059,6 @@ ...@@ -5067,33 +5059,6 @@
"@microsoft/tsdoc" "0.12.19" "@microsoft/tsdoc" "0.12.19"
"@rushstack/node-core-library" "3.34.3" "@rushstack/node-core-library" "3.34.3"
"@microsoft/node-core-library@3.19.3":
version "3.19.3"
resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.19.3.tgz#cf09ddb2905a29b32956d4a88f9d035a00637be9"
integrity sha512-rJ+hT6+XK5AESbhn31YBnHKpZSFKCmqHCRZyK9+jyWwav1HXv0qzuXnFvnyrO0MZyJ6rH0seWOZVWbU5KGv1tg==
dependencies:
"@types/node" "10.17.13"
colors "~1.2.1"
fs-extra "~7.0.1"
jju "~1.4.0"
semver "~5.3.0"
timsort "~0.3.0"
z-schema "~3.18.3"
"@microsoft/ts-command-line@4.3.10":
version "4.3.10"
resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.10.tgz#fcb4f5ea43c93d17db6cc810bbee39ea32b2a86d"
integrity sha512-AgxArGqPt0H5WTo3fxNFP3Blm3obkCCopVG9kwIo+/mMdXaj6qMDn6+8Bv8+5Nke3CvvXpKAZtu3IaGY5cV1Hg==
dependencies:
"@types/argparse" "1.0.33"
argparse "~1.0.9"
colors "~1.2.1"
"@microsoft/tsdoc@0.12.14":
version "0.12.14"
resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d"
integrity sha512-518yewjSga1jLdiLrcmpMFlaba5P+50b0TWNFUpC+SL9Yzf0kMi57qw+bMl+rQ08cGqH1vLx4eg9YFUbZXgZ0Q==
"@microsoft/tsdoc@0.12.19": "@microsoft/tsdoc@0.12.19":
version "0.12.19" version "0.12.19"
resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.19.tgz#2173ccb92469aaf62031fa9499d21b16d07f9b57" resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.19.tgz#2173ccb92469aaf62031fa9499d21b16d07f9b57"
...@@ -6281,11 +6246,6 @@ ...@@ -6281,11 +6246,6 @@
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA== integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==
"@types/argparse@1.0.33":
version "1.0.33"
resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.33.tgz#2728669427cdd74a99e53c9f457ca2866a37c52d"
integrity sha512-VQgHxyPMTj3hIlq9SY1mctqx+Jj8kpQfoLvDlVSDNOyuYs8JYfkuY3OW/4+dO657yPmNhHpePRx0/Tje5ImNVQ==
"@types/argparse@1.0.38": "@types/argparse@1.0.38":
version "1.0.38" version "1.0.38"
resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.38.tgz#a81fd8606d481f873a3800c6ebae4f1d768a56a9" resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.38.tgz#a81fd8606d481f873a3800c6ebae4f1d768a56a9"
...@@ -21206,7 +21166,7 @@ path-key@^3.0.0, path-key@^3.1.0: ...@@ -21206,7 +21166,7 @@ path-key@^3.0.0, path-key@^3.1.0:
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
path-parse@^1.0.5, path-parse@^1.0.6: path-parse@^1.0.6:
version "1.0.6" version "1.0.6"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
...@@ -24378,13 +24338,6 @@ resolve@1.15.1, resolve@^1.1.7: ...@@ -24378,13 +24338,6 @@ resolve@1.15.1, resolve@^1.1.7:
dependencies: dependencies:
path-parse "^1.0.6" path-parse "^1.0.6"
resolve@1.8.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
integrity sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==
dependencies:
path-parse "^1.0.5"
resolve@^1.1.6, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.3.2: resolve@^1.1.6, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.3.2:
version "1.12.0" version "1.12.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment