Meta tags:
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.;
Headings (most frequently used words):
uh, oh, navigation, make, the, theme, responsive, 46, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
file (29), #obulat (27), class (26), and (23), this (20), div (20), search (20), 2021 (20), github (16), endif (16), the (15), for (15), svg (14), aria (14), may (14), pathto (14), logo (13), type (13), add (12), reload (12), menu (12), block (12), cannot (11), applied (11), python_docs_theme (11), hidden (11), nav (11), navigation (10), loading (10), show (10), sidemenu (10), document (10), href (10), builder (10), line (9), make (9), link (9), text (9), endblock (9), theme (9), while (8), change (8), code (8), all (8), static (8), setattribute (8), _static (8), input (8), script (8), html (8), apr (8), you (7), that (7), suggestion (7), suggestions (7), changes (7), open (7), view (7), togglerinput (7), function (7), const (7), src (7), role (7), label (7), sign (7), please (6), comments (6), there (6), sorry (6), style (6), false (6), responsive (6), diff (6), characters (6), unicode (6), name (6), python (6), layout (6), not (5), security (5), right (5), from (5), was (5), error (5), page (5), desktop (5), checked (5), body (5), queryselector (5), searchbox (5), mobile (5), css (5), htmlhelp (5), reldelim1 (5), rellink (5), nbsp (5), version (5), select (5), 2020 (5), commits (5), your (5), can (4), pull (4), delete (4), edit (4), deletions (4), closemenu (4), addeventlistener (4), when (4), true (4), table (4), number (4), bidirectional (4), review (4), learn (4), about (4), caret (4), down (4), img (4), alt (4), index (4), form (4), value (4), quick (4), icon (4), javascript (4), inline (4), item (4), loop (4), files (4), support (4), copilot (4), action (3), docs (3), community (3), footer (3), request (3), resolved (3), batch (3), commit (3), invalid (3), something (3), went (3), wrong (3), retry (3), display (3), additions (3), click (3), menuitem (3), target (3), event (3), togglerlabel (3), pressed (3), expanded (3), tables (3), what (3), more (3), endfor (3), http (3), width (3), pagename (3), singlehtml (3), theme_root_url (3), content (3), super (3), reldelim2 (3), relbaritems (3), relbar (3), title (3), parent (3), margin (3), rootrellink (3), related (3), 121 (3), conf (3), hide (3), whitespace (3), filter (3), master (3), color (3), merged (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), merge (2), marked (2), single (2), only (2), one (2), viewing (2), closed (2), toggle (2), viewer (2), requires (2), iframe (2), displayed (2), doc (2), close (2), clicked (2), tabindex (2), let (2), menuitems (2), visible (2), openmenu (2), accessibility (2), overflow (2), queryselectorall (2), wrapper (2), toggler__label (2), toggler__input (2), outerhtml (2), them (2), original (2), contains (2), interpreted (2), compiled (2), differently (2), than (2), appears (2), below (2), editor (2), reveals (2), sidebartemplate (2), language_switcher_placeholder (2), submit (2), 505 (2), fill (2), path (2), method (2), get (2), version_switcher_placeholder (2), span (2), menutoggler (2), conversation (2), copybutton (2), embedded (2), theme_root_icon (2), extrahead (2), qthelp (2), endmacro (2), placeholder (2), modified (2), sphinx (2), themes (2), basic (2), macro (2), accesskey (2), shorttitle (2), theme_root_include_title (2), switchers (2), theme_root_name (2), vertical (2), align (2), middle (2), top (2), 1px (2), first (2), selected (2), pydoctheme (2), apply (2), split (2), unified (2), failed (2), load (2), jump (2), extension (2), 8000 (2), fix (2), styles (2), remove (2), dec (2), issues (2), tree (2), issue (2), insights (2), projects (2), actions (2), repository (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, time, share, personal, information, manage, cookies, 2026, inc, now, check, back, later, queued, multi, pending, reviews, has, been, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, per, subset, because, were, made, annotations, notes, oops, else, links, tabbable, data, opened, tagname, tolowercase, return, table__container, foreach, docutils, wrapping, making, scrollable, domcontentloaded, addition, expand, include, sidebars, main, m15, 14h, 79l, 27a6, 001, 34c, 34a6, 27c, 59a6, 005, 48l, 28v, 79l4, 25c, 49l15, 14zm, 0c7, 5s7, 14z, 444, rule, nonzero, xmlns, www, org, 2000, height, viewbox, button, checkbox, controls, body_tag, comment, thread, meta, viewport, device, initial, scale, rel, shortcut, image, png, relbar2, relbar1, area, default, check_keywords, yes, none, last, parents, striptags, 10px, rellinks, extends, classic, are, conversations, clear, filters, viewed, types, root, bd1d802, d96713e, ed7b948, different, cd92c8c, smaller, padding, toctree, b6fc448, homepage, 190931b, formatting, d31371e, toggler, paddings, 783b19a, 611a1dc, remote, tracking, branch, upstream, 1e182f3, e1ee8bd, 5ffa114, hamburger, 250dbf6, 6daa876, 7953f1b, missing, efd1ec2, update, 51a0c7a, dublicate, 43da2b4, mar, duplicate, declaration, ecf73cf, language, switcher, placeholders, 7640739, adjust, font, selects, ff61d60, jul, use, opening, closing, 10f4349, jun, address, 203b40a, 7aba474, hold, shift, range, changed, checks, 107, into, julienpalard, already, clicking, agree, our, occasionally, send, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, message, dismiss, alert, switched, accounts, out, appearance, settings, pricing, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, skip,
|