Skip to content

Commit

Permalink
Merge pull request elastic#1919 from tsg/single_version_in_docs
Browse files Browse the repository at this point in the history
Unify doc version handling
  • Loading branch information
dedemorton authored Jun 28, 2016
2 parents ee38038 + 4b80571 commit c8c7a29
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 33 deletions.
17 changes: 10 additions & 7 deletions filebeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
= Filebeat Reference
:libbeat: http://www.elastic.co/guide/en/beats/libbeat/master
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/master
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/master
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/master
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/master
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/master/
:version: 5.0.0-alpha3

include::./version.asciidoc[]

:libbeat: http://www.elastic.co/guide/en/beats/libbeat/{doc-branch}
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/{doc-branch}
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/{doc-branch}
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/{doc-branch}
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/{doc-branch}
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/{doc-branch}/
:version: {stack-version}
:beatname_lc: filebeat
:beatname_uc: Filebeat
:security: X-Pack Security
Expand Down
2 changes: 2 additions & 0 deletions filebeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:stack-version: 5.0.0-alpha3
:doc-branch: master
18 changes: 10 additions & 8 deletions libbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[[beats-reference]]
= Beats Platform Reference
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/master
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/master
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/master
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/master

include::./version.asciidoc[]

:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/{doc-branch}
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/{doc-branch}
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/{doc-branch}
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/{doc-branch}
:security: X-Pack Security
:ES-version: 5.0.0-alpha3
:LS-version: 5.0.0-alpha3
:Kibana-version: 5.0.0-alpha3
:Dashboards-version: 5.0.0-alpha3
:ES-version: {stack-version}
:LS-version: {stack-version}
:Kibana-version: {stack-version}

include::./overview.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions libbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:stack-version: 5.0.0-alpha3
:doc-branch: master
3 changes: 3 additions & 0 deletions libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ update: python-env
. ${PYTHON_ENV}/bin/activate && python ${ES_BEATS}/libbeat/scripts/generate_template.py $(PWD) ${BEATNAME} ${ES_BEATS}
. ${PYTHON_ENV}/bin/activate && python ${ES_BEATS}/libbeat/scripts/generate_template.py --es2x $(PWD) ${BEATNAME} ${ES_BEATS}

# Update docs version
cp ${ES_BEATS}/libbeat/docs/version.asciidoc docs/version.asciidoc

# Builds the documents for the beat
.PHONY: docs
docs:
Expand Down
11 changes: 7 additions & 4 deletions metricbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
= Metricbeat Reference
:libbeat: http://www.elastic.co/guide/en/beats/libbeat/master
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/master
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/master/
:version: 5.0.0-alpha3

include::./version.asciidoc[]

:libbeat: http://www.elastic.co/guide/en/beats/libbeat/{doc-branch}
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/{doc-branch}
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/{doc-branch}/
:version: {stack-version}
:beatname_lc: metricbeat
:beatname_uc: Metricbeat
:security: X-Pack Security
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:stack-version: 5.0.0-alpha3
:doc-branch: master
17 changes: 10 additions & 7 deletions packetbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
= Packetbeat Reference
:libbeat: http://www.elastic.co/guide/en/beats/libbeat/master
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/master
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/master
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/master
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/master
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/master/
:version: 5.0.0-alpha3

include::./version.asciidoc[]

:libbeat: http://www.elastic.co/guide/en/beats/libbeat/{doc-branch}
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/{doc-branch}
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/{doc-branch}
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/{doc-branch}
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/{doc-branch}
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/{doc-branch}/
:version: {stack-version}
:beatname_lc: packetbeat
:beatname_uc: Packetbeat
:security: X-Pack Security
Expand Down
2 changes: 2 additions & 0 deletions packetbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:stack-version: 5.0.0-alpha3
:doc-branch: master
17 changes: 10 additions & 7 deletions winlogbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
= Winlogbeat Reference
:libbeat: http://www.elastic.co/guide/en/beats/libbeat/master
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/master
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/master
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/master
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/master
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/master/
:version: 5.0.0-alpha3

include::./version.asciidoc[]

:libbeat: http://www.elastic.co/guide/en/beats/libbeat/{doc-branch}
:packetbeat: http://www.elastic.co/guide/en/beats/packetbeat/{doc-branch}
:metricbeat: http://www.elastic.co/guide/en/beats/metricbeat/{doc-branch}
:filebeat: http://www.elastic.co/guide/en/beats/filebeat/{doc-branch}
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/{doc-branch}
:elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/{doc-branch}/
:version: {stack-version}
:beatname_lc: winlogbeat
:beatname_uc: Winlogbeat
:security: X-Pack Security
Expand Down
2 changes: 2 additions & 0 deletions winlogbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:stack-version: 5.0.0-alpha3
:doc-branch: master

0 comments on commit c8c7a29

Please sign in to comment.