Title: Make the theme responsive by obulat · Pull Request #46 · python/python-docs-theme · GitHub
Open Graph Title: Make the theme responsive by obulat · Pull Request #46 · python/python-docs-theme
X Title: Make the theme responsive by obulat · Pull Request #46 · python/python-docs-theme
Description: I have been reading on my phone a lot lately, and was disappointed by the fact that I couldn't read python docs: the fonts are too small, and, if I try to zoom in, the text doesn't fit on the page, so I have to swipe to see the whole line. This is my attempt to add responsiveness to python docs theme, fixing #30. On screen widths smaller than 900 px, it: adds a mobile navigation bar with a 'hamburger' menu button, Python version switcher and a search box. adds a sliding menu that opens when 'hamburger' menu button is clicked. Menu contains language switching input and contents. removes the related bars removes the sidebar. Screenshot with menu closed: Screenshot with menu open: Problems that need to be solved: Normally, the mobile navigation bar should be placed in the header block of the layout, but python.org layout completely overrides it, so I added it in the body_tag block. To solve this, I would need to add changes to that code. I placed the switchers and other items on the menus as seemed logical to me, but feedback from the community is essential on this. I added a javascript file to open/close sidebar in a separate file. I could also add it into the layout file, but ideally all js files should be combined and minified.
Open Graph Description: I have been reading on my phone a lot lately, and was disappointed by the fact that I couldn't read python docs: the fonts are too small, and, if I try to zoom in, the text doesn't fit on t...
X Description: I have been reading on my phone a lot lately, and was disappointed by the fact that I couldn't read python docs: the fonts are too small, and, if I try to zoom in, the text doesn't ...
Opengraph URL: https://github.com/python/python-docs-theme/pull/46
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f2d57295-dfcb-3d3c-590d-3e7bf3ce55a8 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A37E:7F7DE:8ABA1A:BA5718:6969BD37 |
| html-safe-nonce | 029760694b0206f36c416365a268dede19fcd865b14e58be027e6d41844656d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzdFOjdGN0RFOjhBQkExQTpCQTU3MTg6Njk2OUJEMzciLCJ2aXNpdG9yX2lkIjoiNDg4MDg0MzA5NTEyNjE2Mjc0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 98dfaddaa007b861355036204d1dc461af9d1cbddf2800fddad7ddb1863fe096 |
| hovercard-subject-tag | pull_request:420135443 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/python-docs-theme/pull/46/checks |
| twitter:image | https://avatars.githubusercontent.com/u/15233243?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15233243?s=400&v=4 |
| og:image:alt | I have been reading on my phone a lot lately, and was disappointed by the fact that I couldn't read python docs: the fonts are too small, and, if I try to zoom in, the text doesn't fit on t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 93341818 |
| octolytics-dimension-repository_nwo | python/python-docs-theme |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93341818 |
| octolytics-dimension-repository_network_root_nwo | python/python-docs-theme |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width