Skip to content

Commit

Permalink
add doc-site-branch to version.asciidoc and settings.go (#35693)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ authored Jun 9, 2023
1 parent 1af70aa commit 25adc03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,11 @@ func beatVersion() (string, error) {
}

var (
beatDocBranchRegex = regexp.MustCompile(`(?m)doc-branch:\s*([^\s]+)\r?$`)
beatDocBranchValue string
beatDocBranchErr error
beatDocBranchOnce sync.Once
beatDocBranchRegex = regexp.MustCompile(`(?m)doc-branch:\s*([^\s]+)\r?$`)
beatDocSiteBranchRegex = regexp.MustCompile(`(?m)doc-site-branch:\s*([^\s]+)\r?$`)
beatDocBranchValue string
beatDocBranchErr error
beatDocBranchOnce sync.Once
)

// BeatDocBranch returns the documentation branch name associated with the
Expand Down
3 changes: 3 additions & 0 deletions libbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
:stack-version: 8.9.0
:doc-branch: main
// FIXME: once elastic.co docs have been switched over to use `main`, remove
// the `doc-site-branch` line below as well as any references to it in the code.
:doc-site-branch: master
:go-version: 1.19.9
:release-state: unreleased
:python: 3.7
Expand Down

0 comments on commit 25adc03

Please sign in to comment.