Skip to content

Add docs banner for wwww - #5736

Open
samipe wants to merge 1 commit into
robotframework:gh-pagesfrom
samipe:gh-pages-banner
Open

Add docs banner for wwww#5736
samipe wants to merge 1 commit into
robotframework:gh-pagesfrom
samipe:gh-pages-banner

Conversation

@samipe

@samipe samipe commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 10, 2026 10:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a client-side “news/announcement” banner to the generated Robot Framework documentation pages by introducing a reusable banner script and embedding it into multiple latest/*.html outputs.

Changes:

  • Added resources/banner.js that fetches the latest banner entry from Contentful and renders a dismissible, responsive banner.
  • Embedded the banner script tag (with Contentful configuration via data-* attributes) into the User Guide and multiple library documentation HTML pages.
  • Implemented localStorage-based dismissal state to avoid repeatedly showing the same content.

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
resources/banner.js New banner implementation: Contentful fetch, markdown-to-HTML rendering, responsive styling, dismissal persistence.
latest/RobotFrameworkUserGuide.html Adds banner script tag + Contentful configuration.
latest/libraries/Telnet.html Adds banner script tag + Contentful configuration.
latest/libraries/String.html Adds banner script tag + Contentful configuration.
latest/libraries/Screenshot.html Adds banner script tag + Contentful configuration.
latest/libraries/Process.html Adds banner script tag + Contentful configuration.
latest/libraries/Dialogs.html Adds banner script tag + Contentful configuration.
latest/libraries/DateTime.html Adds banner script tag + Contentful configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +13 to +17
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment thread resources/banner.js
Comment on lines +289 to +290
var signature = text;
renderBanner(text, signature);
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment on lines +14 to +18
<script
src="resources/banner.js"
data-contentful-space="9b7cw6d22w7j"
data-contentful-env="master"
data-contentful-access-token="VLOgnMG0y_TvCERWx3PnfBiWEl-NeYAwaVdMk9LPf-g"></script>
Comment thread resources/banner.js
Comment on lines +210 to +215
applyResponsive();
if (window.matchMedia) {
window.matchMedia('(max-width: 640px)').addEventListener('change', applyResponsive);
} else {
window.addEventListener('resize', applyResponsive);
}
Comment thread resources/banner.js
Comment on lines +268 to +270
fetch(url, { headers: { Authorization: 'Bearer ' + ACCESS_TOKEN } })
.then(function (res) { return res.json(); })
.then(function (data) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants