Skip to content

Commit

Permalink
Making docs troubleshooting section more generic. (#6251)
Browse files Browse the repository at this point in the history
Use variables for the discuss forum and the github repository.
  • Loading branch information
simitt authored and ruflin committed Feb 3, 2018
1 parent 70b2c99 commit c0966df
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions auditbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: auditbeat
:beatname_uc: Auditbeat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions filebeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: filebeat
:beatname_uc: Filebeat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions heartbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: heartbeat
:beatname_uc: Heartbeat
:beatname_pkg: heartbeat-elastic
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
6 changes: 3 additions & 3 deletions libbeat/docs/getting-help.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//// include::../../libbeat/docs/getting-help.asciidoc[]
//////////////////////////////////////////////////////////////////////////

Start by searching the https://discuss.elastic.co/c/beats/{beatname_lc}[{beatname_uc} discussion forum] for your issue. If you can't find a resolution, open a new issue or add a comment to an existing one. Make sure you provide the following information, and we'll help
Start by searching the https://discuss.elastic.co/c/{discuss_forum}[{beatname_uc} discussion forum] for your issue. If you can't find a resolution, open a new issue or add a comment to an existing one. Make sure you provide the following information, and we'll help
you troubleshoot the problem:

* {beatname_uc} version
Expand All @@ -19,6 +19,6 @@ you troubleshoot the problem:
problem. See <<enable-{beatname_lc}-debugging>> for more details.
If you're sure you found a bug, you can open a ticket on
https://github.com/elastic/beats/issues?state=open[GitHub]. Note, however,
https://github.com/elastic/{github_repo_name}/issues?state=open[GitHub]. Note, however,
that we close GitHub issues containing questions or requests for help if they
don't indicate the presence of a bug.
don't indicate the presence of a bug.
3 changes: 3 additions & 0 deletions libbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: beatname
:beatname_uc: a Beat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}


include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions metricbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: metricbeat
:beatname_uc: Metricbeat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions packetbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: packetbeat
:beatname_uc: Packetbeat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions winlogbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:beatname_lc: winlogbeat
:beatname_uc: Winlogbeat
:beatname_pkg: {beatname_lc}
:github_repo_name: beats
:discuss_forum: beats/{beatname_lc}

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down

0 comments on commit c0966df

Please sign in to comment.