Skip to content

Commit 3aa0e5a

Browse files
authored
[Docs] Creates Developer docs GH page code (opensearch-project#5977)
* Working Dev docs Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Create CNAME Delete CNAME disable jekyll Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> change to relative path Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> add docs readme Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Adds changelog Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * removes unnecessary debugger Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> --------- Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
1 parent 6d882c9 commit 3aa0e5a

8 files changed

+387
-0
lines changed

.nojekyll

Whitespace-only changes.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
147147
- Add plugin development section in DEVELOPER_GUIDE.md ([#3989](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3989))
148148
- Remove ftr test step from PR template ([#5217](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5217))
149149
- [Doc] Update EUI doc site links to point to OUI doc site ([#5293](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5293))
150+
- Adds Developer Docs generation using Docsify to the repository ([#5977](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5977))
150151

151152
### 🛠 Maintenance
152153

docs/DOCS_README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Welcome to the Developer Guide
2+
3+
Welcome to our Developer Guide! This site is dedicated to providing comprehensive documentation to support developers using OpenSearch Dashboards. Here, you'll find a quick way to access all the readme's that exist within the OpenSearch Dashboards repo in an easy to find manner.
4+
5+
## About This Documentation
6+
7+
The documentation is dynamically generated using [Docsify](https://docsify.js.org/). Docsify dynamically renders the Markdown files into HTML pages without the need for a build step. Docsify uses the documentation directly from the repository. The links in the sidebar are generated based on the folder structure of the repository. To update the links in the sidebar, run `yarn docs:generateDevDocs`.
8+
9+
## Starting Up the Doc Site Locally
10+
11+
To start up the documentation site locally for development or validation purposes, you can simply start a server in the root directory of the repository. `npx serve` is a simple way to start a server.
12+
13+
---
14+
15+
[Repo Readme](../README.md)

docs/_sidebar.md

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
* [Home](/)
2+
3+
- Capabilities
4+
- [Read_only_mode](capabilities/read_only_mode.md)
5+
- Charts
6+
- [Current_usage](charts/current_usage.md)
7+
- Docker dev
8+
- [Docker dev setup manual](docker-dev/docker-dev-setup-manual.md)
9+
- Multi datasource
10+
- [Client_management_design](multi-datasource/client_management_design.md)
11+
- [High_level_design](multi-datasource/high_level_design.md)
12+
- [User_stories](multi-datasource/user_stories.md)
13+
- Plugins
14+
- [Data_persistence](plugins/data_persistence.md)
15+
- Saved_objects
16+
- [Saved_object_repository_factory_design](saved_objects/saved_object_repository_factory_design.md)
17+
- src
18+
- [Core](../src/core/README.md)
19+
- dev
20+
- [Build](../src/dev/build/README.md)
21+
- [I18n](../src/dev/i18n/README.md)
22+
- plugins
23+
- [Bfetch](../src/plugins/bfetch/README.md)
24+
- [Charts](../src/plugins/charts/README.md)
25+
- console
26+
- public
27+
- application
28+
- [Hooks](../src/plugins/console/public/application/hooks/README.md)
29+
- [Dashboard](../src/plugins/dashboard/README.md)
30+
- [Data](../src/plugins/data/README.md)
31+
- [Data_explorer](../src/plugins/data_explorer/README.md)
32+
- [Data_source](../src/plugins/data_source/README.md)
33+
- [Data_source_management](../src/plugins/data_source_management/README.md)
34+
- [Dev_tools](../src/plugins/dev_tools/README.md)
35+
- [Discover](../src/plugins/discover/README.md)
36+
- [Embeddable](../src/plugins/embeddable/README.md)
37+
- [Expressions](../src/plugins/expressions/README.md)
38+
- [Home](../src/plugins/home/README.md)
39+
- index_pattern_management
40+
- public
41+
- components
42+
- create_index_pattern_wizard
43+
- [CREATE_INDEX_PATTERN](../src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/CREATE_INDEX_PATTERN.md)
44+
- [Input_control_vis](../src/plugins/input_control_vis/README.md)
45+
- [Inspector](../src/plugins/inspector/README.md)
46+
- [Navigation](../src/plugins/navigation/README.md)
47+
- [Opensearch_dashboards_legacy](../src/plugins/opensearch_dashboards_legacy/README.md)
48+
- [Opensearch_dashboards_overview](../src/plugins/opensearch_dashboards_overview/README.md)
49+
- [Opensearch_dashboards_react](../src/plugins/opensearch_dashboards_react/README.md)
50+
- [Opensearch_dashboards_usage_collection](../src/plugins/opensearch_dashboards_usage_collection/README.md)
51+
- [Opensearch_dashboards_utils](../src/plugins/opensearch_dashboards_utils/README.md)
52+
- opensearch_ui_shared
53+
- public
54+
- forms
55+
- [Form_wizard](../src/plugins/opensearch_ui_shared/public/forms/form_wizard/README.md)
56+
- [Multi_content](../src/plugins/opensearch_ui_shared/public/forms/multi_content/README.md)
57+
- [Saved_objects](../src/plugins/saved_objects/README.md)
58+
- [Saved_objects_management](../src/plugins/saved_objects_management/README.md)
59+
- [Share](../src/plugins/share/README.md)
60+
- [Telemetry](../src/plugins/telemetry/README.md)
61+
- [Telemetry_collection_manager](../src/plugins/telemetry_collection_manager/README.md)
62+
- [Telemetry_management_section](../src/plugins/telemetry_management_section/README.md)
63+
- [Ui_actions](../src/plugins/ui_actions/README.md)
64+
- [Url_forwarding](../src/plugins/url_forwarding/README.md)
65+
- [Usage_collection](../src/plugins/usage_collection/README.md)
66+
- [Vis_augmenter](../src/plugins/vis_augmenter/README.md)
67+
- [Vis_builder](../src/plugins/vis_builder/README.md)
68+
- [Vis_default_editor](../src/plugins/vis_default_editor/README.md)
69+
- [Vis_type_markdown](../src/plugins/vis_type_markdown/README.md)
70+
- [Vis_type_metric](../src/plugins/vis_type_metric/README.md)
71+
- [Vis_type_table](../src/plugins/vis_type_table/README.md)
72+
- [Vis_type_tagcloud](../src/plugins/vis_type_tagcloud/README.md)
73+
- [Vis_type_timeline](../src/plugins/vis_type_timeline/README.md)
74+
- [Vis_type_timeseries](../src/plugins/vis_type_timeseries/README.md)
75+
- [Vis_type_vega](../src/plugins/vis_type_vega/README.md)
76+
- [Vis_type_vislib](../src/plugins/vis_type_vislib/README.md)
77+
- [Vis_type_xy](../src/plugins/vis_type_xy/README.md)
78+
- [Visualizations](../src/plugins/visualizations/README.md)
79+
- [Visualize](../src/plugins/visualize/README.md)
80+
- examples
81+
- [Dashboard_embeddable_examples](../examples/dashboard_embeddable_examples/README.md)
82+
- [Developer_examples](../examples/developer_examples/README.md)
83+
- embeddable_examples
84+
- public
85+
- [Todo](../examples/embeddable_examples/public/todo/README.md)
86+
- [Expressions_example](../examples/expressions_example/README.md)
87+
- [Routing_example](../examples/routing_example/README.md)
88+
- [Search_examples](../examples/search_examples/README.md)
89+
- [Ui_action_examples](../examples/ui_action_examples/README.md)
90+
- [Ui_actions_explorer](../examples/ui_actions_explorer/README.md)
91+
- [Url_generators_examples](../examples/url_generators_examples/README.md)
92+
- [Url_generators_explorer](../examples/url_generators_explorer/README.md)
93+
- packages
94+
- [Opensearch datemath](../packages/opensearch-datemath/readme.md)
95+
- [Opensearch eslint config opensearch dashboards](../packages/opensearch-eslint-config-opensearch-dashboards/README.md)
96+
- [Opensearch safer lodash set](../packages/opensearch-safer-lodash-set/README.md)
97+
- [Osd ace](../packages/osd-ace/README.md)
98+
- [Osd apm config loader](../packages/osd-apm-config-loader/README.md)
99+
- [Osd babel preset](../packages/osd-babel-preset/README.md)
100+
- [Osd config](../packages/osd-config/README.md)
101+
- [Osd config schema](../packages/osd-config-schema/README.md)
102+
- [Osd cross platform](../packages/osd-cross-platform/README.md)
103+
- [Osd dev utils](../packages/osd-dev-utils/README.md)
104+
- [Osd eslint import resolver opensearch dashboards](../packages/osd-eslint-import-resolver-opensearch-dashboards/README.md)
105+
- [Osd eslint plugin eslint](../packages/osd-eslint-plugin-eslint/README.md)
106+
- [Osd expect](../packages/osd-expect/README.md)
107+
- [Osd i18n](../packages/osd-i18n/README.md)
108+
- [Osd logging](../packages/osd-logging/README.md)
109+
- [Osd monaco](../packages/osd-monaco/README.md)
110+
- [Osd opensearch](../packages/osd-opensearch/README.md)
111+
- [Osd optimizer](../packages/osd-optimizer/README.md)
112+
- [Osd plugin generator](../packages/osd-plugin-generator/README.md)
113+
- [Osd plugin helpers](../packages/osd-plugin-helpers/README.md)
114+
- [Osd pm](../packages/osd-pm/README.md)
115+
- [Osd spec to console](../packages/osd-spec-to-console/README.md)
116+
- [Osd std](../packages/osd-std/README.md)
117+
- [Osd stylelint config](../packages/osd-stylelint-config/README.md)
118+
- [Osd stylelint plugin stylelint](../packages/osd-stylelint-plugin-stylelint/README.md)
119+
- [Osd telemetry tools](../packages/osd-telemetry-tools/README.md)
120+
- [Osd test](../packages/osd-test/README.md)
121+
- [Osd test subj selector](../packages/osd-test-subj-selector/README.md)
122+
- [Osd ui framework](../packages/osd-ui-framework/README.md)
123+
- [Osd ui shared deps](../packages/osd-ui-shared-deps/README.md)
124+
- [Osd utility types](../packages/osd-utility-types/README.md)
125+
- [Osd utils](../packages/osd-utils/README.md)
126+
- [README](../packages/README.md)
127+
- release-notes
128+
- [Opensearch dashboards.release notes 1.0.0 rc1](../release-notes/opensearch-dashboards.release-notes-1.0.0-rc1.md)
129+
- [Opensearch dashboards.release notes 1.0.0](../release-notes/opensearch-dashboards.release-notes-1.0.0.md)
130+
- [Opensearch dashboards.release notes 1.1.0](../release-notes/opensearch-dashboards.release-notes-1.1.0.md)
131+
- [Opensearch dashboards.release notes 1.2.0](../release-notes/opensearch-dashboards.release-notes-1.2.0.md)
132+
- [Opensearch dashboards.release notes 1.3.0](../release-notes/opensearch-dashboards.release-notes-1.3.0.md)
133+
- [Opensearch dashboards.release notes 1.3.1](../release-notes/opensearch-dashboards.release-notes-1.3.1.md)
134+
- [Opensearch dashboards.release notes 1.3.10](../release-notes/opensearch-dashboards.release-notes-1.3.10.md)
135+
- [Opensearch dashboards.release notes 1.3.11](../release-notes/opensearch-dashboards.release-notes-1.3.11.md)
136+
- [Opensearch dashboards.release notes 1.3.12](../release-notes/opensearch-dashboards.release-notes-1.3.12.md)
137+
- [Opensearch dashboards.release notes 1.3.13](../release-notes/opensearch-dashboards.release-notes-1.3.13.md)
138+
- [Opensearch dashboards.release notes 1.3.14](../release-notes/opensearch-dashboards.release-notes-1.3.14.md)
139+
- [Opensearch dashboards.release notes 1.3.2](../release-notes/opensearch-dashboards.release-notes-1.3.2.md)
140+
- [Opensearch dashboards.release notes 1.3.3](../release-notes/opensearch-dashboards.release-notes-1.3.3.md)
141+
- [Opensearch dashboards.release notes 1.3.5](../release-notes/opensearch-dashboards.release-notes-1.3.5.md)
142+
- [Opensearch dashboards.release notes 1.3.6](../release-notes/opensearch-dashboards.release-notes-1.3.6.md)
143+
- [Opensearch dashboards.release notes 1.3.7](../release-notes/opensearch-dashboards.release-notes-1.3.7.md)
144+
- [Opensearch dashboards.release notes 1.3.8](../release-notes/opensearch-dashboards.release-notes-1.3.8.md)
145+
- [Opensearch dashboards.release notes 1.3.9](../release-notes/opensearch-dashboards.release-notes-1.3.9.md)
146+
- [Opensearch dashboards.release notes 2.0.0 rc1](../release-notes/opensearch-dashboards.release-notes-2.0.0-rc1.md)
147+
- [Opensearch dashboards.release notes 2.0.0](../release-notes/opensearch-dashboards.release-notes-2.0.0.md)
148+
- [Opensearch dashboards.release notes 2.0.1](../release-notes/opensearch-dashboards.release-notes-2.0.1.md)
149+
- [Opensearch dashboards.release notes 2.1.0](../release-notes/opensearch-dashboards.release-notes-2.1.0.md)
150+
- [Opensearch dashboards.release notes 2.10.0](../release-notes/opensearch-dashboards.release-notes-2.10.0.md)
151+
- [Opensearch dashboards.release notes 2.11.0](../release-notes/opensearch-dashboards.release-notes-2.11.0.md)
152+
- [Opensearch dashboards.release notes 2.11.1](../release-notes/opensearch-dashboards.release-notes-2.11.1.md)
153+
- [Opensearch dashboards.release notes 2.12.0](../release-notes/opensearch-dashboards.release-notes-2.12.0.md)
154+
- [Opensearch dashboards.release notes 2.2.0](../release-notes/opensearch-dashboards.release-notes-2.2.0.md)
155+
- [Opensearch dashboards.release notes 2.2.1](../release-notes/opensearch-dashboards.release-notes-2.2.1.md)
156+
- [Opensearch dashboards.release notes 2.3.0](../release-notes/opensearch-dashboards.release-notes-2.3.0.md)
157+
- [Opensearch dashboards.release notes 2.4.0](../release-notes/opensearch-dashboards.release-notes-2.4.0.md)
158+
- [Opensearch dashboards.release notes 2.4.1](../release-notes/opensearch-dashboards.release-notes-2.4.1.md)
159+
- [Opensearch dashboards.release notes 2.5.0](../release-notes/opensearch-dashboards.release-notes-2.5.0.md)
160+
- [Opensearch dashboards.release notes 2.6.0](../release-notes/opensearch-dashboards.release-notes-2.6.0.md)
161+
- [Opensearch dashboards.release notes 2.7.0](../release-notes/opensearch-dashboards.release-notes-2.7.0.md)
162+
- [Opensearch dashboards.release notes 2.8.0](../release-notes/opensearch-dashboards.release-notes-2.8.0.md)
163+
- [Opensearch dashboards.release notes 2.9.0](../release-notes/opensearch-dashboards.release-notes-2.9.0.md)
164+
- scripts
165+
- [README](../scripts/README.md)
166+
- [DOCS_README](DOCS_README.md)
167+
- [CHANGELOG](../CHANGELOG.md)
168+
- [CODE_OF_CONDUCT](../CODE_OF_CONDUCT.md)
169+
- [COMMUNICATIONS](../COMMUNICATIONS.md)
170+
- [CONTRIBUTING](../CONTRIBUTING.md)
171+
- [DEVELOPER_GUIDE](../DEVELOPER_GUIDE.md)
172+
- [MAINTAINERS](../MAINTAINERS.md)
173+
- [README](../README.md)
174+
- [RELEASING](../RELEASING.md)
175+
- [SECURITY](../SECURITY.md)
176+
- [TESTING](../TESTING.md)
177+
- [TYPESCRIPT](../TYPESCRIPT.md)

docs/index.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Document</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="description" content="Description">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9+
<link rel="stylesheet" title="light" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
10+
<link rel="stylesheet" title="dark" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css">
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-dark-switch/dist/docsify-dark-switch.css">
12+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar-folder.min.css" />
13+
</head>
14+
<body>
15+
<div id="app"></div>
16+
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script> -->
17+
18+
<script>
19+
window.$docsify = {
20+
name: 'OpenSearch Dashboards Developer docs',
21+
repo: 'opensearch-project/OpenSearch-Dashboards',
22+
loadSidebar: true,
23+
autoHeader: true,
24+
auto2top: true,
25+
subMaxLevel: 3,
26+
'/.*/_sidebar.md': '/_sidebar.md',
27+
sidebarDisplayLevel: 1, // set sidebar display level
28+
alias: {
29+
'/': './DOCS_README.md',
30+
'/.*/_sidebar.md': '/_sidebar.md', // See #301
31+
},
32+
}
33+
</script>
34+
<!-- Docsify v4 -->
35+
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
36+
<script src="//cdn.jsdelivr.net/npm/docsify-dark-switch/dist/docsify-dark-switch.min.js"></script>
37+
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
38+
</body>
39+
</html>

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Redirect for docsify so that server can start on the root folder -->
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<title>Redirecting...</title>
6+
<script>
7+
window.location.href = "./docs/index.html";
8+
</script>
9+
</head>
10+
<body>
11+
<p>If you are not redirected, <a href="./docs/index.html">click here to view the documentation</a>.</p>
12+
</body>
13+
</html>

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"osd:watch": "scripts/use_node scripts/opensearch_dashboards --dev --logging.json=false",
7676
"build:types": "scripts/use_node scripts/remove.js ./target/types && tsc --p tsconfig.types.json",
7777
"docs:acceptApiChanges": "scripts/use_node --max-old-space-size=6144 scripts/check_published_api_changes.js --accept",
78+
"docs:generateDevDocs": "scripts/use_node scripts/generate_docs_sidebar.js",
7879
"osd:bootstrap": "scripts/use_node scripts/build_ts_refs && scripts/use_node scripts/register_git_hook",
7980
"spec_to_console": "scripts/use_node scripts/spec_to_console",
8081
"pkg-version": "scripts/use_node -e \"console.log(require('./package.json').version)\"",

0 commit comments

Comments
 (0)