Skip to content

enable pydata_sphinx_theme version banner - #13901

Merged
mosc9575 merged 4 commits into
bokeh:branch-3.5from
mosc9575:13824_activate_pydata_theme_version_banner
May 17, 2024
Merged

mosc9575 merged 4 commits into
bokeh:branch-3.5from
mosc9575:13824_activate_pydata_theme_version_banner

Conversation

@mosc9575

@mosc9575 mosc9575 commented May 17, 2024 •

Copy link
Copy Markdown
Contributor

This PR activates the version banner from pydata-sphinx-theme, removes the old version banner (js and css). The switcher.json in also adapted to silence a warning.

After running make clean html serve on my local machine this is the result.

version_banner

For the older versions

it is suggested to add the code below to all existing html pages to enable the banner.


<div style="background-color: rgb(248, 215, 218); color: rgb(114, 28, 36); text-align: center;">
  <div>
    <div>This is documentation for <strong>an old version</strong>.
      <a href="https://docs.bokeh.org/en/latest/index.html" style="background-color: rgb(220, 53, 69); color: rgb(255, 255, 255); margin: 1rem; padding: 0.375rem 0.75rem; border-radius: 4px; display: inline-block; text-align: center;">Switch to stable version</a>
    </div>
  </div>
</div>

I don't know how to do this.

@mosc9575 mosc9575 added this to the 3.5 milestone May 17, 2024
Comment thread docs/bokeh/source/conf.py Resolved
@codecov

codecov Bot commented May 17, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.15%. Comparing base (e61219b) to head (29d0e3a).
Report is 40 commits behind head on branch-3.5.

Additional details and impacted files
@@              Coverage Diff               @@
##           branch-3.5   #13901      +/-   ##
==============================================
+ Coverage       91.57%   93.15%   +1.58%     
==============================================
  Files             326      282      -44     
  Lines           20737    20031     -706     
==============================================
- Hits            18990    18660     -330     
+ Misses           1747     1371     -376     

@bryevdv

bryevdv commented May 17, 2024 •

Copy link
Copy Markdown
Member

it is suggested to add the code below to all existing html pages to enable the banner.

Unfortunately that would be an enormous ordeal and undertaking. Also potentially costly, as well, as the pages are stored on s3 and we would have to exfiltrate many tens of thousands to update. We would also have to issue very large Cloudfront cache invalidations. I think we will just have to live with old pages being as they are until they are retired from the switcher list.

Edit: Unless you mean just the top-level index.html pages and not anything else. Then sure, we can update a handful of pages manually.

@mosc9575

mosc9575 commented May 17, 2024 •

Copy link
Copy Markdown
Contributor Author

Edit: Unless you mean just the top-level index.html pages and not anything else. Then sure, we can update a handful of pages manually.

I haven't thought about updating only the start page but I think that would be a good compromise. It is not sufficent to show the version banner on all pages but it is much better than nothing and the start page should have this information.

@mosc9575 mosc9575 changed the title enable pydate_sphinx_theme version banner enable pydata_sphinx_theme version banner May 17, 2024
Comment thread docs/bokeh/source/_static/switcher.json Resolved
@bryevdv

bryevdv commented May 17, 2024

Copy link
Copy Markdown
Member

@bokeh/core after this is merged it would be advised to test a dev build release.

@bryevdv

bryevdv commented May 17, 2024 •

Copy link
Copy Markdown
Member

Thanks @mosc9575 FYI I am about to be "out of the office" for a few weeks, maybe make a separate issue regarding updating the old index.html pages manually so it doesn't get lost in the shuffle. If you happen to be able to update all the pages locally and store them off somewhere or in a zip file, etc., that I can access, that will definitely speed things up when I get back.

@mosc9575
mosc9575 merged commit e8caa13 into bokeh:branch-3.5 May 17, 2024
@mosc9575
mosc9575 deleted the 13824_activate_pydata_theme_version_banner branch May 17, 2024 21:36
@mosc9575

Copy link
Copy Markdown
Contributor Author

@bryevdv Below is a zip folder with the adapted index pages. I adapted th current latest version, too. I hope this will work for you.

bokeh_start_pages.zip

@mosc9575 mosc9575 mentioned this pull request Jun 12, 2024
11 tasks done
mattpap pushed a commit that referenced this pull request Jun 12, 2024
* enable pydata_sphinx_theme version banner

* add env var BOKEH_DOCS_VERSION to cons.py

* remove version 3.4.0 from switcher.json
@mattpap mattpap modified the milestones: 3.5, 3.4.2 Jun 12, 2024
Chiemezuo pushed a commit to Chiemezuo/bokeh that referenced this pull request Aug 27, 2024
* enable pydata_sphinx_theme version banner

* add env var BOKEH_DOCS_VERSION to cons.py

* remove version 3.4.0 from switcher.json
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

activate pydata-sphinx-theme version banner

3 participants