Skip to content

Added new file for links definitions#4156

Merged
mrodm merged 1 commit intoelastic:mainfrom
mrodm:add_links_table_file_and_docs
Sep 9, 2022
Merged

Added new file for links definitions#4156
mrodm merged 1 commit intoelastic:mainfrom
mrodm:add_links_table_file_and_docs

Conversation

@mrodm
Copy link
Copy Markdown
Collaborator

@mrodm mrodm commented Sep 7, 2022

Updated documentation guidelines to include the information related to how the readme templates work. And information related to how to use links with url placeholder.

What does this PR do?

This PR adds the links definitions file into the root of the working repository (links_table.yml). This file is going to be used while rendering README files when it is used the new placeholder {{ url <key> <link> }} notation introduced in elastic/elastic-package#938

In following PRs, packages will be updated to use this new placeholder in their docs.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • [ ] I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

Related issues

Updated documentation guidelines to include the information related to
how the readme templates work. And information related to how to use
links with url placeholder.
@mrodm mrodm added the enhancement New feature or request label Sep 7, 2022
@mrodm mrodm self-assigned this Sep 7, 2022
@@ -0,0 +1,24 @@
links:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File with links to Elastic documentation guides found. In following PRs, new links could be added.

Comment on lines +21 to +36
Some considerations when these documentation files are written at `_dev/build/docs/*.md`:
- These files follow the Markdown syntax and leverage the use of templates ([documentation templates info](https://github.com/elastic/elastic-package/blob/main/docs/howto/add_package_readme.md)
- There are some available functions or placeholders (`fields`, `event`, `url`) that can be used to help writing these docs:
- More info at [placeholders section](https://github.com/elastic/elastic-package/blob/main/docs/howto/add_package_readme.md#placeholders)
- Regarding `url` placeholder, this placeholder should be used to add links to Elastic documentation guides (https://www.elastic.co/guide/*) in your documentation:
- File containing all the links defined is in the root of the directory: [`links_table.yml`](../links_table.yml)
- If needed, more links to Elastic documentation guides can be added into that file.
- Example of usage:
- In documentation files (`_dev/build/docs/*.md`):
```
{{ url "getting-started-observability" "Elastic guide" }}
```
- It generates the following link
```
[Elastic guide](https://www.elastic.co/guide/en/welcome-to-elastic/current/getting-started-observability.html)
```
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


For step-by-step instructions on how to set up an integration, see the
[Getting started](https://www.elastic.co/guide/en/welcome-to-elastic/current/getting-started-observability.html) guide.
{{ url "getting-started-observability" "Getting started" }} guide.
Copy link
Copy Markdown
Collaborator Author

@mrodm mrodm Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated snippets to use the new placeholder.
As these guidelines are not related to elastic-package create command I think they can be updated, so developers could use the new placeholder.

@mrodm mrodm marked this pull request as ready for review September 7, 2022 16:11
@mrodm mrodm requested a review from a team as a code owner September 7, 2022 16:11
@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Sep 7, 2022

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-09-08T21:52:44.279+0000

  • Duration: 108 min 14 sec

Test stats 🧪

Test Results
Failed 0
Passed 5114
Skipped 9
Total 5123

Steps errors 4

Expand to view the steps failures

Boot up the Elastic stack
  • Took 6 min 21 sec . View more details here
  • Description: ../../build/elastic-package stack up -d -v --version 8.5.0-SNAPSHOT
Boot up the Elastic stack
  • Took 6 min 18 sec . View more details here
  • Description: ../../build/elastic-package stack up -d -v --version 8.5.0-SNAPSHOT
Boot up the Elastic stack
  • Took 7 min 42 sec . View more details here
  • Description: ../../build/elastic-package stack up -d -v --version 8.5.0-SNAPSHOT
Boot up the Elastic stack
  • Took 7 min 51 sec . View more details here
  • Description: ../../build/elastic-package stack up -d -v --version 8.5.0-SNAPSHOT

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Sep 7, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (290/290) 💚
Files 97.191% (519/534) 👍
Classes 97.191% (519/534) 👍
Methods 90.115% (4996/5544) 👍
Lines 90.948% (94487/103891) 👍
Conditionals 100.0% (0/0) 💚

@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 7, 2022

/test

@mrodm mrodm added the Team:Ecosystem Packages Ecosystem team [elastic/ecosystem] label Sep 7, 2022
Copy link
Copy Markdown
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 8, 2022

/test

4 similar comments
@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 8, 2022

/test

@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 8, 2022

/test

@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 8, 2022

/test

@mrodm
Copy link
Copy Markdown
Collaborator Author

mrodm commented Sep 8, 2022

/test

@mrodm mrodm merged commit 5f7ffb5 into elastic:main Sep 9, 2022
@mrodm mrodm deleted the add_links_table_file_and_docs branch September 9, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Team:Ecosystem Packages Ecosystem team [elastic/ecosystem]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants