Skip to content

Commit

Permalink
[8.12] [Obs AI Assistant] Move esql docs to dir that does not get ... (
Browse files Browse the repository at this point in the history
…#174583) (#174603)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[Obs AI Assistant] Move esql docs to dir that does not get ...
(#174583)](#174583)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dario
Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2024-01-10T13:53:43Z","message":"[Obs
AI Assistant] Move esql docs to dir that does not get ...
(#174583)\n\nany folder called `docs` is automatically deleted when
creating a\r\ndistributable. Rename it to `esql_docs` so this doesn't
happen. We need\r\ntests, but will tackle that separately. Not sure how
to write tests for\r\nthe
distributable.","sha":"f9c83448c94713a227aa62aae223c90db852e6fa","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:cloud-deploy","ci:cloud-persist-deployment","v8.12.0","v8.12.1","v8.13.0"],"title":"[Obs
AI Assistant] Move esql docs to dir that does not get
deleted","number":174583,"url":"https://github.com/elastic/kibana/pull/174583","mergeCommit":{"message":"[Obs
AI Assistant] Move esql docs to dir that does not get ...
(#174583)\n\nany folder called `docs` is automatically deleted when
creating a\r\ndistributable. Rename it to `esql_docs` so this doesn't
happen. We need\r\ntests, but will tackle that separately. Not sure how
to write tests for\r\nthe
distributable.","sha":"f9c83448c94713a227aa62aae223c90db852e6fa"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174583","number":174583,"mergeCommit":{"message":"[Obs
AI Assistant] Move esql docs to dir that does not get ...
(#174583)\n\nany folder called `docs` is automatically deleted when
creating a\r\ndistributable. Rename it to `esql_docs` so this doesn't
happen. We need\r\ntests, but will tackle that separately. Not sure how
to write tests for\r\nthe
distributable.","sha":"f9c83448c94713a227aa62aae223c90db852e6fa"}}]}]
BACKPORT-->

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
  • Loading branch information
kibanamachine and dgieselaar authored Jan 10, 2024
1 parent e40d00c commit c469bfd
Show file tree
Hide file tree
Showing 93 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const loadSystemMessage = once(async () => {
});

const loadEsqlDocs = once(async () => {
const dir = Path.join(__dirname, './docs');
const dir = Path.join(__dirname, './esql_docs');
const files = (await readdir(dir)).filter((file) => Path.extname(file) === '.txt');

if (!files.length) {
Expand Down

0 comments on commit c469bfd

Please sign in to comment.