René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:64123034-29f1-9e4d-562e-3300232798b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB5B0:10CAF0:8B8E6C:BAC66A:69698D62
html-safe-nonce59b1f2004aa5d1a3f238e95b07cc6b6ed0cc5834cfa6cc171d20d2ace985955f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUIwOjEwQ0FGMDo4QjhFNkM6QkFDNjZBOjY5Njk4RDYyIiwidmlzaXRvcl9pZCI6IjgyODU2NTUxNTc0ODcyNzUzNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac25b1c095bad1dfdc065249033618a03af7d63d4839d0a8357c2c66490cd189c9
hovercard-subject-tagpull_request:420135443
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/python-docs-theme/pull/46/files
twitter:imagehttps://avatars.githubusercontent.com/u/15233243?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/15233243?s=400&v=4
og:image:altI 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id93341818
octolytics-dimension-repository_nwopython/python-docs-theme
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93341818
octolytics-dimension-repository_network_root_nwopython/python-docs-theme
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/python-docs-theme/pull/46/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F46%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F46%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fpython-docs-theme
Reloadhttps://github.com/python/python-docs-theme/pull/46/files
Reloadhttps://github.com/python/python-docs-theme/pull/46/files
Reloadhttps://github.com/python/python-docs-theme/pull/46/files
python https://github.com/python
python-docs-themehttps://github.com/python/python-docs-theme
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
Notifications https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Fork 74 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Star 84 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Code https://github.com/python/python-docs-theme
Issues 12 https://github.com/python/python-docs-theme/issues
Pull requests 4 https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects 0 https://github.com/python/python-docs-theme/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/python-docs-theme/security
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
Insights https://github.com/python/python-docs-theme/pulse
Code https://github.com/python/python-docs-theme
Issues https://github.com/python/python-docs-theme/issues
Pull requests https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects https://github.com/python/python-docs-theme/projects
Security https://github.com/python/python-docs-theme/security
Insights https://github.com/python/python-docs-theme/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
JulienPalardhttps://github.com/JulienPalard
python:masterhttps://github.com/python/python-docs-theme/tree/master
obulat:masterhttps://github.com/obulat/python-docs-theme/tree/master
Conversation 107 https://github.com/python/python-docs-theme/pull/46
Commits 24 https://github.com/python/python-docs-theme/pull/46/commits
Checks 0 https://github.com/python/python-docs-theme/pull/46/checks
Files changed https://github.com/python/python-docs-theme/pull/46/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
Make the theme responsive https://github.com/python/python-docs-theme/pull/46/files#top
Show all changes 24 commits https://github.com/python/python-docs-theme/pull/46/files
7aba474 Make theme responsive obulat May 19, 2020 https://github.com/python/python-docs-theme/pull/46/commits/7aba474b99d7e72c945be5677236f7727989c0b5
203b40a Address code review issues obulat Jun 19, 2020 https://github.com/python/python-docs-theme/pull/46/commits/203b40abbbf0a38cfad7d9885983ad1df517edce
10f4349 Use css for opening/closing menu obulat Jul 9, 2020 https://github.com/python/python-docs-theme/pull/46/commits/10f43495dc8b8878ed3618fae275cf3229b6ee1b
ff61d60 Adjust font and selects obulat Dec 21, 2020 https://github.com/python/python-docs-theme/pull/46/commits/ff61d605a27621dfb53313a887a887b24c76401e
7640739 Add language and version switcher placeholders obulat Dec 25, 2020 https://github.com/python/python-docs-theme/pull/46/commits/76407393b63528664019c5f52ee03211e4979929
ecf73cf Remove duplicate rootrellink declaration obulat Mar 9, 2021 https://github.com/python/python-docs-theme/pull/46/commits/ecf73cfa456ae1091d5948cdcbacd23f5be743fb
43da2b4 Remove dublicate relbaritems block obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/43da2b4f75f2ad1ed5d79e7650d2473dcd0d6f3f
51a0c7a Update select styles obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/51a0c7af423ae71d35b363ba4d61beba3900ffbe
efd1ec2 Add missing select styles obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/efd1ec24518b555b0025104ecd30f6a01918fab6
7953f1b Change the search icon color obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/7953f1b1a39d7a223e6e04ea9ec8fb6edbe41851
6daa876 Change caret color obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/6daa876311c7ecf81605dd8cd4d98bcc980c0355
250dbf6 Change hamburger color obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/250dbf64c1f5e8e2271cae2827efb3c171a5c033
5ffa114 Add an svg icon obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/5ffa114d90fcc76521e0fd5f62e0bed96f779508
e1ee8bd Add svg logo to layout obulat Apr 13, 2021 https://github.com/python/python-docs-theme/pull/46/commits/e1ee8bd358d3d740e378a711c8b33f776a0fb73b
1e182f3 Merge remote-tracking branch 'upstream/master' obulat May 2, 2021 https://github.com/python/python-docs-theme/pull/46/commits/1e182f3da7770541246d5158cdcbb099dc946601
611a1dc Add switchers to desktop view obulat May 2, 2021 https://github.com/python/python-docs-theme/pull/46/commits/611a1dc95de203839545cd7dd1b160b8adb73918
783b19a Fix toggler accessibility and select paddings obulat May 2, 2021 https://github.com/python/python-docs-theme/pull/46/commits/783b19a856a8c77502be7887af2977ac1d919725
d31371e Fix html formatting obulat May 2, 2021 https://github.com/python/python-docs-theme/pull/46/commits/d31371e53153476f5b28b9b2da805993501672b5
190931b Add link to homepage in mobile version obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/190931b93afe480496b48985b399e5f19f94a2f2
b6fc448 Add smaller padding to toctree obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/b6fc44872c1e1c9e00239588997283fad8d16709
cd92c8c Add a different link to the logo obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/cd92c8c5c30408b690092bc7e10cf17a5aecdeb7
ed7b948 Make logo in mobile version link to 'http://0.0.0.0:8000/3.9/' obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/ed7b948fae13630aea82192446dcdfbf16f67b62
d96713e Make logo in mobile version link to 'http://0.0.0.0:8000/3.9/' obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/d96713ef23cadaf93354de465ffca77d28004871
bd1d802 Make logo in mobile version link to theme root obulat May 5, 2021 https://github.com/python/python-docs-theme/pull/46/commits/bd1d802829212388abe1b222f8ed9a018efbfeab
Clear filters https://github.com/python/python-docs-theme/pull/46/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
layout.html https://github.com/python/python-docs-theme/pull/46/files#diff-b8720eb873be0650783a2222f27f97b9cca517270be4abac33ede8dbaadcaa63
caret-down.svg https://github.com/python/python-docs-theme/pull/46/files#diff-041c72e24227b88c3933dea5803552faa64f1d572db5b2fa92b5864508d73426
menu.js https://github.com/python/python-docs-theme/pull/46/files#diff-5e658112419ea2be6e7231cd5477a7e130eacc346d2afc29af4a04637182abdc
py.svg https://github.com/python/python-docs-theme/pull/46/files#diff-529bf3ed9dfb6cc91cf19bcdfbe6ea5cd6f8e04986da6ae0f7f49676c3135763
pydoctheme.css https://github.com/python/python-docs-theme/pull/46/files#diff-e2d78a098e64c4a8bc2e910a8e6daa72e5fa12df8c0f316c746f922fab9ab759
theme.conf https://github.com/python/python-docs-theme/pull/46/files#diff-cc29778c1deb8c27abeec3136d000ac58acc02504403e4bc5c18cf99eb84b799
python_docs_theme/layout.htmlhttps://github.com/python/python-docs-theme/pull/46/files#diff-b8720eb873be0650783a2222f27f97b9cca517270be4abac33ede8dbaadcaa63
View file https://github.com/obulat/python-docs-theme/blob/bd1d802829212388abe1b222f8ed9a018efbfeab/python_docs_theme/layout.html
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/46/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
https://github.com/python/python-docs-theme/pull/46/files#diff-b8720eb873be0650783a2222f27f97b9cca517270be4abac33ede8dbaadcaa63
python_docs_theme/static/caret-down.svghttps://github.com/python/python-docs-theme/pull/46/files#diff-041c72e24227b88c3933dea5803552faa64f1d572db5b2fa92b5864508d73426
View file https://github.com/obulat/python-docs-theme/blob/bd1d802829212388abe1b222f8ed9a018efbfeab/python_docs_theme/static/caret-down.svg
Open in desktop https://desktop.github.com
Reload?https://github.com/python/python-docs-theme/pull/46/files
python_docs_theme/static/menu.jshttps://github.com/python/python-docs-theme/pull/46/files#diff-5e658112419ea2be6e7231cd5477a7e130eacc346d2afc29af4a04637182abdc
View file https://github.com/obulat/python-docs-theme/blob/bd1d802829212388abe1b222f8ed9a018efbfeab/python_docs_theme/static/menu.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/46/{{ revealButtonHref }}
python_docs_theme/static/py.svghttps://github.com/python/python-docs-theme/pull/46/files#diff-529bf3ed9dfb6cc91cf19bcdfbe6ea5cd6f8e04986da6ae0f7f49676c3135763
View file https://github.com/obulat/python-docs-theme/blob/bd1d802829212388abe1b222f8ed9a018efbfeab/python_docs_theme/static/py.svg
Open in desktop https://desktop.github.com
Reload?https://github.com/python/python-docs-theme/pull/46/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/46/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.