Skip to content

Commit eddbc8d

Browse files
Update doc slugs to improve analytic tracking, move to appropriate folders (elastic#113630)
* Update the slugs to improve google analytics drilldown tracking * more slug updates * Fix some formatting issues in building blocks * update paths Co-authored-by: Kibana Machine <[email protected]>
1 parent a4eab44 commit eddbc8d

27 files changed

+220
-219
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Contributing to Kibana
22

3-
If you are an employee at Elastic, please check out our Developer Guide [here](https://docs.elastic.dev/kibana-dev-docs/welcome).
3+
If you are an employee at Elastic, please check out our Developer Guide [here](https://docs.elastic.dev/kibana-dev-docs/getting-started/welcome).
44

55
If you are an external developer, we have a legacy developer guide [here](https://www.elastic.co/guide/en/kibana/master/development.html), or you can view the raw docs from our new, internal Developer Guide [here](./dev_docs/getting_started/dev_welcome.mdx). Eventually, our internal Developer Guide will be opened for public consumption.

STYLEGUIDE.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibStyleGuide
3-
slug: /kibana-dev-docs/styleguide
3+
slug: /kibana-dev-docs/contributing/styleguide
44
title: Style Guide
55
summary: JavaScript/TypeScript styleguide.
66
date: 2021-05-06

dev_docs/api_welcome.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibDevDocsApiWelcome
3-
slug: /kibana-dev-docs/api-welcome
3+
slug: /kibana-dev-docs/api-meta/welcome
44
title: Welcome
55
summary: How to use our automatically generated API documentation
66
date: 2021-02-25

dev_docs/best_practices.mdx dev_docs/contributing/best_practices.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibBestPractices
3-
slug: /kibana-dev-docs/best-practices
3+
slug: /kibana-dev-docs/contributing/best-practices
44
title: Best practices
55
summary: Best practices to follow when building a Kibana plugin.
66
date: 2021-03-17

dev_docs/dev_principles.mdx dev_docs/contributing/dev_principles.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
id: kibDevPrinciples
3-
slug: /kibana-dev-docs/dev-principles
3+
slug: /kibana-dev-docs/contributing/dev-principles
44
title: Developer principles
5-
summary: Follow our development principles to help keep our code base stable, maintainable and scalable.
5+
summary: Follow our development principles to help keep our code base stable, maintainable and scalable.
66
date: 2021-03-04
7-
tags: ['kibana','onboarding', 'dev', 'architecture']
7+
tags: ['kibana', 'onboarding', 'dev', 'architecture']
88
---
99

1010
Over time, the Kibana project has been shaped by certain principles. Like Kibana itself, some of these principles were formed by intention while others were the result of evolution and circumstance, but today all are important for the continued success and maintainability of Kibana.
@@ -117,4 +117,4 @@ The primary consumers of the code we write, the APIs that we create, and the fea
117117

118118
Features that we anticipate end users, admins, and plugin developers consuming should be documented through our official docs, but module-level READMEs and code comments are also appropriate.
119119

120-
Documentation is critical part of developing features and code, so an undocumented feature is an incomplete feature.
120+
Documentation is critical part of developing features and code, so an undocumented feature is an incomplete feature.

dev_docs/contributing/how_we_use_github.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibGitHub
3-
slug: /kibana-dev-docs/github
3+
slug: /kibana-dev-docs/contributing/github
44
title: How we use Github
55
summary: Forking, branching, committing and using labels in the Kibana GitHub repo
66
date: 2021-09-16

dev_docs/getting_started/add_data.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibDevAddData
3-
slug: /kibana-dev-docs/tutorial/sample-data
3+
slug: /kibana-dev-docs/getting-started/sample-data
44
title: Add data
55
summary: Learn how to add data to Kibana
66
date: 2021-08-11

dev_docs/getting_started/dev_welcome.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibDevDocsWelcome
3-
slug: /kibana-dev-docs/welcome
3+
slug: /kibana-dev-docs/getting-started/welcome
44
title: Welcome
55
summary: Build custom solutions and applications on top of Kibana.
66
date: 2021-01-02

dev_docs/getting_started/hello_world_plugin.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibHelloWorldApp
3-
slug: /kibana-dev-docs/hello-world-app
3+
slug: /kibana-dev-docs/getting-started/hello-world-app
44
title: Hello World
55
summary: Build a very basic plugin that registers an application that says "Hello World!".
66
date: 2021-08-03

dev_docs/getting_started/setting_up_a_development_env.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibDevTutorialSetupDevEnv
3-
slug: /kibana-dev-docs/tutorial/setup-dev-env
3+
slug: /kibana-dev-docs/getting-started/setup-dev-env
44
title: Set up a Development Environment
55
summary: Learn how to setup a development environment for contributing to the Kibana repository
66
date: 2021-04-26

dev_docs/troubleshooting.mdx dev_docs/getting_started/troubleshooting.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibTroubleshooting
3-
slug: /kibana-dev-docs/troubleshooting
3+
slug: /kibana-dev-docs/getting-started/troubleshooting
44
title: Troubleshooting
55
summary: A collection of tips for working around strange issues.
66
date: 2021-09-08

dev_docs/key_concepts/anatomy_of_a_plugin.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibDevAnatomyOfAPlugin
3-
slug: /kibana-dev-docs/anatomy-of-a-plugin
3+
slug: /kibana-dev-docs/key-concepts/anatomy-of-a-plugin
44
title: Anatomy of a plugin
55
summary: Anatomy of a Kibana plugin.
66
date: 2021-08-03
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
---
22
id: kibBuildingBlocks
3-
slug: /kibana-dev-docs/building-blocks
3+
slug: /kibana-dev-docs/key-concepts/building-blocks
44
title: Building blocks
55
summary: Consider these building blocks when developing your plugin.
66
date: 2021-02-24
7-
tags: ['kibana','onboarding', 'dev', 'architecture']
7+
tags: ['kibana', 'onboarding', 'dev', 'architecture']
88
---
99

10-
When building a plugin in Kibana, there are a handful of architectural "building blocks" you can use. Some of these building blocks are "higher-level",
11-
and some are "lower-level". High-level building blocks come
10+
When building a plugin in Kibana, there are a handful of architectural "building blocks" you can use. Some of these building blocks are "higher-level",
11+
and some are "lower-level". High-level building blocks come
1212
with many built-in capabilities, require less maintenance, and evolve new feature sets over time with little to no
13-
impact on consumers. When developers use high-level building blocks, new features are exposed consistently, across all of Kibana, at the same time.
14-
On the downside, they are not as flexible as our low-level building blocks.
15-
16-
Low-level building blocks
17-
provide greater flexibility, but require more code to stitch them together into a meaningful UX. This results in higher maintenance cost for consumers and greater UI/UX variability
18-
across Kibana.
19-
20-
For example, if an application is using <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns"/> and
21-
<DocLink id="kibBuildingBlocks" section="search-source" text="Search Source"/>,
22-
their application would automatically support runtime fields. If the app is instead using the
23-
lower-level <DocLink id="kibBuildingBlocks" section="search-strategy" text="Search Strategy"/>, additional work would be required.
13+
impact on consumers. When developers use high-level building blocks, new features are exposed consistently, across all of Kibana, at the same time.
14+
On the downside, they are not as flexible as our low-level building blocks.
15+
16+
Low-level building blocks
17+
provide greater flexibility, but require more code to stitch them together into a meaningful UX. This results in higher maintenance cost for consumers and greater UI/UX variability
18+
across Kibana.
19+
20+
For example, if an application is using <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns"/> and <DocLink id="kibBuildingBlocks" section="search-source" text="Search Source" />, their application would
21+
automatically support runtime fields. If the app is instead using the lower-level <DocLink
22+
id="kibBuildingBlocks"
23+
section="search-strategy"
24+
text="Search Strategy"
25+
/>, additional work would be required.
2426

2527
Armed with this knowledge, you can choose what works best for your use case!
2628

@@ -32,35 +34,23 @@ The following high-level building blocks can be rendered directly into your appl
3234

3335
### Query Bar
3436

35-
The <DocLink id="kibDataPlugin" text="Data plugin"/> provides a high-level Query Bar component that comes with support for Lucene, KQL, Saved Queries,
36-
and <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns"/>.
37-
38-
If you would like to expose the ability to search and filter on Elasticsearch data, the Query Bar provided by the
39-
<DocLink id="kibDataPlugin" text="Data plugin"/>
40-
is your go-to building block.
37+
The <DocLink id="kibDataPlugin" text="Data plugin"/> provides a high-level Query Bar component that comes with support for Lucene, KQL, Saved Queries,
38+
and <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns"/>. If you would like to expose the ability to search and filter on Elasticsearch data, the Query Bar provided by the <DocLink id="kibDataPlugin" text="Data plugin" /> is your go-to building block.
4139

4240
**Github labels**: `Team:AppServices`, `Feature:QueryBar`
4341

4442
### Dashboard Embeddable
4543

4644
Add a Dashboard Embeddable directly inside your application to provide users with a set of visualizations and graphs that work seamlessly
47-
with the <DocLink id="kibBuildingBlocks" section="query-bar" text="Query Bar"/>. Every feature that is added to a registered
48-
<DocLink id="kibBuildingBlocks" section="embeddables" text="Embeddable"/>
49-
(Lens, Maps, Saved Searches and more) will be available automatically, as well as any
50-
<DocLink id="kibBuildingBlocks" section="ui-actions--triggers" text="UI Actions"/> that are
51-
added to the Embeddable context menu panel (for example, drilldowns, custom panel time ranges, and "share to" features).
45+
with the <DocLink id="kibBuildingBlocks" section="query-bar" text="Query Bar"/>. Every feature that is added to a registered <DocLink id="kibBuildingBlocks" section="embeddables" text="Embeddable" /> (Lens, Maps, Saved Searches and more) will be available automatically, as well as any <DocLink id="kibBuildingBlocks" section="ui-actions--triggers" text="UI Actions" /> that are added to the Embeddable context menu panel (for example, drilldowns, custom panel time ranges, and "share to" features).
5246

5347
The Dashboard Embeddable is one of the highest-level UI components you can add to your application.
5448

5549
**Github labels**: `Team:Presentation`, `Feature:Dashboard`
5650

5751
### Lens Embeddable
5852

59-
Check out the Lens Embeddable if you wish to show users visualizations based on Elasticsearch data without worrying about query building and chart rendering. It's built on top of the
60-
<DocLink id="kibBuildingBlocks" section="expressions" text="Expression language"/>, and integrates with
61-
<DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns"/>
62-
and <DocLink id="kibBuildingBlocks" section="ui-actions--triggers" text="UI Actions"/>. Using the same configuration, it's also possible to link to
63-
a prefilled Lens editor, allowing the user to drill deeper and explore their data.
53+
Check out the Lens Embeddable if you wish to show users visualizations based on Elasticsearch data without worrying about query building and chart rendering. It's built on top of the <DocLink id="kibBuildingBlocks" section="expressions" text="Expression language" />, and integrates with <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Patterns" /> and <DocLink id="kibBuildingBlocks" section="ui-actions--triggers" text="UI Actions" />. Using the same configuration, it's also possible to link to a prefilled Lens editor, allowing the user to drill deeper and explore their data.
6454

6555
**Github labels**: `Team:VisEditors`, `Feature:Lens`
6656

@@ -72,7 +62,7 @@ Check out the Map Embeddable if you wish to embed a map in your application.
7262

7363
### KibanaPageTemplate
7464

75-
All Kibana pages should use KibanaPageTemplate to setup their pages. It's a thin wrapper around [EuiPageTemplate](https://elastic.github.io/eui/#/layout/page) that makes setting up common types of Kibana pages quicker and easier while also adhering to any Kibana-specific requirements.
65+
All Kibana pages should use KibanaPageTemplate to setup their pages. It's a thin wrapper around [EuiPageTemplate](https://elastic.github.io/eui/#/layout/page) that makes setting up common types of Kibana pages quicker and easier while also adhering to any Kibana-specific requirements.
7666

7767
Check out <DocLink id="kibDevDocsKPTTutorial" text="the KibanaPageTemplate tutorial" /> for more implementation guidance.
7868

@@ -82,54 +72,60 @@ Check out <DocLink id="kibDevDocsKPTTutorial" text="the KibanaPageTemplate tutor
8272

8373
### Index Patterns
8474

85-
<DocLink id="kibDataPlugin" section="index-patterns-api" text="Index Patterns"/> are a high-level, space-aware abstraction layer that sits
86-
above Data Streams and Elasticsearch indices. Index Patterns provide users the
87-
ability to define and customize the data they wish to search and filter on, on a per-space basis. For example, users can specify a set of indices,
88-
and they can customize the field list with runtime fields, formatting options and custom labels.
75+
<DocLink id="kibDataPlugin" section="index-patterns-api" text="Index Patterns" /> are a high-level, space-aware
76+
abstraction layer that sits above Data Streams and Elasticsearch indices. Index Patterns provide users
77+
the ability to define and customize the data they wish to search and filter on, on a per-space basis.
78+
For example, users can specify a set of indices, and they can customize the field list with runtime fields,
79+
formatting options and custom labels.
8980

9081
Index Patterns are used in many other high-level building blocks so we highly recommend you consider this building block for your search needs.
9182

9283
**Github labels**: `Team:AppServices`, `Feature:Index Patterns`
9384

9485
### Search Source
9586

96-
<DocLink id="kibDataPlugin" section="searchsource" text="Search Source"/> is a high-level search service offered by the
97-
<DocLink id="kibDataPlugin" section="searchsource" text="Data plugin"/>. It requires an
98-
<DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Pattern"/>, and abstracts away the raw ES DSL and search endpoint. Internally
99-
it uses the ES <DocLink id="kibBuildingBlocks" section="search-strategies" text="Search Strategy"/>. Use Search Source if you need to query data
100-
from Elasticsearch, and you aren't already using one of the high-level UI Components that handles this internally.
87+
<DocLink id="kibDataPlugin" section="searchsource" text="Search Source" /> is a high-level search service
88+
offered by the <DocLink id="kibDataPlugin" section="searchsource" text="Data plugin" />. It requires
89+
an <DocLink id="kibBuildingBlocks" section="index-patterns" text="Index Pattern" />, and abstracts away
90+
the raw ES DSL and search endpoint. Internally it uses the ES <DocLink
91+
id="kibBuildingBlocks"
92+
section="search-strategies"
93+
text="Search Strategy"
94+
/>
95+
. Use Search Source if you need to query data from Elasticsearch, and you aren't already using one of
96+
the high-level UI Components that handles this internally.
10197

10298
**Github labels**: `Team:AppServices`, `Feature:Search`
10399

104100
### Search Strategies
105101

106-
Search Strategies are a low-level building block that abstracts away search details, like what REST endpoint is being called. The ES Search Strategy
107-
is a very lightweight abstraction layer that sits just above querying ES with the elasticsearch-js client. Other search stragies are offered for other
102+
Search Strategies are a low-level building block that abstracts away search details, like what REST endpoint is being called. The ES Search Strategy
103+
is a very lightweight abstraction layer that sits just above querying ES with the elasticsearch-js client. Other search stragies are offered for other
108104
languages, like EQL and SQL. These are very low-level building blocks so expect a lot of glue work to make these work with the higher-level abstractions.
109105

110106
**Github labels**: `Team:AppServices`, `Feature:Search`
111107

112108
### Expressions
113109

114110
Expressions are a low-level building block that can be used if you have advanced search needs that requiring piping results into additional functionality, like
115-
joining and manipulating data. Lens and Canvas are built on top of Expressions. Most developers should be able to use
116-
<DocLink id="kibBuildingBlocks" section="lens-embeddable" text="Lens"/> or
117-
<DocLink id="kibBuildingBlocks" section="search-source" text="Search Source"/>, rather than need to access the Expression language directly.
111+
joining and manipulating data. Lens and Canvas are built on top of Expressions. Most developers should be able to use <DocLink id="kibBuildingBlocks" section="lens-embeddable" text="Lens" /> or <DocLink id="kibBuildingBlocks" section="search-source" text="Search Source" />, rather than need to
112+
access the Expression language directly.{' '}
118113

119114
**Github labels**: `Team:AppServices`, `Feature:ExpressionLanguage`
120115

121116
## Saved Objects
122117

123-
<DocLink id="kibDevDocsSavedObjectsIntro" text="Saved Objects" /> should be used if you need to persist application-level information. If you were building a TODO
124-
application, each TODO item would be a `Saved Object`. Saved objects come pre-wired with support for bulk export/import, security features like space sharing and
125-
space isolation, and tags.
118+
<DocLink id="kibDevDocsSavedObjectsIntro" text="Saved Objects" /> should be used if you need to persist
119+
application-level information. If you were building a TODO application, each TODO item would be a `Saved
120+
Object`. Saved objects come pre-wired with support for bulk export/import, security features like space
121+
sharing and space isolation, and tags.
126122

127123
**Github labels**: `Team:Core`, `Feature:Saved Objects`
128124

129125
# Integration building blocks
130126

131127
Use the following building blocks to create an inter-connected, cross-application, holistic Kibana experience. These building blocks allow you to expose functionality
132-
that promotes your own application into other applications, as well as help developers of other applications integrate into your app.
128+
that promotes your own application into other applications, as well as help developers of other applications integrate into your app.
133129

134130
## UI Actions & Triggers
135131

@@ -141,6 +137,6 @@ application could register a UI Action called "View in Maps" to appear any time
141137
## Embeddables
142138

143139
Embeddables help you integrate your application with the Dashboard application. Register your custom UI Widget as an Embeddable and users will
144-
be able to add it as a panel on a Dashboard. With a little extra work, it can also be exposed in Canvas workpads.
140+
be able to add it as a panel on a Dashboard. With a little extra work, it can also be exposed in Canvas workpads.
145141

146142
**Github labels**: `Team:AppServices`, `Feature:Embeddables`

dev_docs/key_concepts/data_views.mdx

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
id: kibDataViewsKeyConcepts
3-
slug: /kibana-dev-docs/data-view-intro
3+
slug: /kibana-dev-docs/key-concepts/data-view-intro
44
title: Data Views
55
summary: Data views are the central method of defining queryable data sets in Kibana
66
date: 2021-08-11
7-
tags: ['kibana','dev', 'contributor', 'api docs']
7+
tags: ['kibana', 'dev', 'contributor', 'api docs']
88
---
99

10-
*Note: Kibana index patterns are currently being renamed to data views. There will be some naming inconsistencies until the transition is complete.*
10+
_Note: Kibana index patterns are currently being renamed to data views. There will be some naming inconsistencies until the transition is complete._
1111

1212
Data views (formerly Kibana index patterns or KIPs) are the central method of describing sets of indices for queries. Usage is strongly recommended
13-
as a number of high level <DocLink id="kibBuildingBlocks" text="building blocks"/> rely on them. Further, they provide a consistent view of data across
13+
as a number of high level <DocLink id="kibBuildingBlocks" text="building blocks"/> rely on them. Further, they provide a consistent view of data across
1414
a variety Kibana apps.
1515

1616
Data views are defined by a wildcard string (an index pattern) which matches indices, data streams, and index aliases, optionally specify a
@@ -20,13 +20,10 @@ on the data view via runtime fields. Schema-on-read functionality is provided by
2020

2121
![image](../assets/data_view_diagram.png)
2222

23-
24-
2523
The data view API is made available via the data plugin (`data.indexPatterns`, soon to be renamed) and most commonly used with <DocLink id="kibDevTutorialDataSearchAndSessions" section="high-level-search" text="SearchSource" />
2624
(`data.search.search.SearchSource`) to perform queries. SearchSource will apply existing filters and queries from the search bar UI.
2725

2826
Users can create data views via [Data view management](https://www.elastic.co/guide/en/kibana/current/index-patterns.html).
2927
Additionally, they can be created through the data view API.
3028

3129
Data views also allow formatters and custom labels to be defined for fields.
32-

dev_docs/kibana_platform_plugin_intro.mdx dev_docs/key_concepts/kibana_platform_plugin_intro.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: kibPlatformIntro
3-
slug: /kibana-dev-docs/platform-intro
3+
slug: /kibana-dev-docs/key-concepts/platform-intro
44
title: Plugins and the Kibana platform
55
summary: An introduction to the Kibana platform and how to use it to build a plugin.
66
date: 2021-01-06

0 commit comments

Comments
 (0)