Add docs banner for wwww - #5736
Open
samipe wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
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.jsthat 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 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 on lines
+210
to
+215
| applyResponsive(); | ||
| if (window.matchMedia) { | ||
| window.matchMedia('(max-width: 640px)').addEventListener('change', applyResponsive); | ||
| } else { | ||
| window.addEventListener('resize', applyResponsive); | ||
| } |
Comment on lines
+268
to
+270
| fetch(url, { headers: { Authorization: 'Bearer ' + ACCESS_TOKEN } }) | ||
| .then(function (res) { return res.json(); }) | ||
| .then(function (data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.