Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update banner for master doc versions #3031

Merged
merged 6 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions integtest/spec/all_books_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ def self.setup_example(repo, lang, hash)
it 'includes the prelim docs header' do
expect(body).to include <<~HTML
<div class="page_header">
You are looking at preliminary documentation for a future release.
Not what you want? See the
<a href="../current/index.html">current release documentation</a>.
This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our <a href="https://www.elastic.co/docs/current/serverless">serverless docs</a> for more details.
</div>
HTML
end
Expand Down Expand Up @@ -975,7 +973,7 @@ def self.setup
shared_examples 'future version' do
it 'contains a "future" header' do
expect(body).to include('<div class="page_header">')
expect(body).to include('You are looking at preliminary documentation')
expect(body).to include('This documentation contains work-in-progress')
end
end
shared_examples 'past version' do
Expand Down
12 changes: 3 additions & 9 deletions lib/ES/Book.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ will be released for this version. For the latest information, see the
<a href="../current/index.html">current release documentation</a>.
HEADER
new => <<"HEADER"
You are looking at preliminary documentation for a future release.
Not what you want? See the
<a href="../current/index.html">current release documentation</a>.
This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our <a href="https://www.elastic.co/docs/current/serverless">serverless docs</a> for more details.
HEADER
},
zh_cn => {
Expand All @@ -52,9 +50,7 @@ will be released for this version. For the latest information, see the
<a href="../current/index.html">current release documentation</a>.
HEADER
new => <<"HEADER"
You are looking at preliminary documentation for a future release.
Not what you want? See the
<a href="../current/index.html">current release documentation</a>.
This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our <a href="https://www.elastic.co/docs/current/serverless">serverless docs</a> for more details.
HEADER
},
ko => {
Expand All @@ -68,9 +64,7 @@ will be released for this version. For the latest information, see the
<a href="../current/index.html">current release documentation</a>.
HEADER
new => <<"HEADER"
You are looking at preliminary documentation for a future release.
Not what you want? See the
<a href="../current/index.html">current release documentation</a>.
This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our <a href="https://www.elastic.co/docs/current/serverless">serverless docs</a> for more details.
HEADER
}

Expand Down