Commit Graph

47 Commits

Author SHA1 Message Date
squidfunk
08e8525689 Updated copyright year 2021-02-14 16:54:27 +01:00
squidfunk
130241791d Formatting 2021-01-24 13:02:42 +01:00
squidfunk
ebd8839a03 Formatting 2021-01-17 10:41:10 +01:00
Oleh Prypin
81a13f6bc6
Optimized nested navigation rendering: don't cross template boundary (#2213)
The number of calls to sub-templates when rendering the navigation is O(n^2) relative to the number of pages. This is the only such instance, which is why I think this is worth optimizing.

The optimization here doesn't improve the complexity, it just removes the overhead of instantiating a new Jinja template for each of these calls.

E.g. for 710 pages on the site, the number of calls to Jinja's `get_template` (implying `new_context` and others) crosses a million ==(710**2)*2. They're not expensive but also not super cheap, and add up to a big percentage of overall site build times.
2021-01-17 10:38:03 +01:00
squidfunk
d754bd9a71 Merge of Insider features part of 'Prairie Fire' funding goal 2020-12-20 15:00:21 +01:00
squidfunk
86a4c47c0a Switched to Jinja's safer string concatenation operator 2020-11-08 11:13:02 +01:00
squidfunk
acc4a273c4 Simplified conditionals in templates 2020-11-07 16:09:06 +01:00
squidfunk
52787c6a9c Removed unnecessary title attributes in links 2020-10-04 14:18:10 +02:00
squidfunk
355a1cacd5 Fixed #1887: Moved icons in navigation to CSS to reduce size of large projects 2020-08-28 18:20:23 +02:00
squidfunk
4ffa866609 Formatting 2020-03-18 17:28:26 +01:00
Jaime Iniesta
e7f7632278
Added aria-label to all nav items to improve accessibility. (#1516)
This ensures navigation landmarks are unique.

Related:

https://dequeuniversity.com/rules/axe/3.5/landmark-unique?application=rocketvalidator
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role
https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html
2020-03-18 17:19:04 +01:00
squidfunk
7840e207f9 Removed IE compatibility meta tag 2020-03-06 15:50:11 +01:00
squidfunk
11d1b839a1 Refactored Material icon integration - bye bye webfonts 2020-02-24 18:07:50 +01:00
squidfunk
a399540940 Fixed anchor jump from mobile search 2020-02-16 00:23:50 +01:00
squidfunk
a55554f90d Removed unnecessary data attributes 2020-02-15 21:51:15 +01:00
squidfunk
6dba046eae Fixed active layer reset 2020-02-11 17:14:28 +01:00
squidfunk
41dc846753 Merge branch 'master' into refactor/rxjs-typescript 2020-02-10 12:34:58 +01:00
squidfunk
b5ad4ac339 Reformatted HTML templates and moved L10N to inline JSON 2019-11-26 10:03:53 +01:00
squidfunk
e24f2a3d7e Removed remaining whitespace control tags 2019-06-15 15:23:03 +02:00
squidfunk
91f2289587 Reverted template minification, added minification by plugin 2019-06-15 15:16:14 +02:00
squidfunk
b36a725d30 Removed all whitespace from compiled files - saving 700 bytes per page (gzip) 2019-05-17 21:37:21 +02:00
Lars
bd8eaf4a09 Removed HTML tags from nav item titles (#1073) 2019-04-16 11:29:16 +02:00
squidfunk
cc47bb7464 Updated copyright year 2019-01-01 18:42:00 +01:00
squidfunk
d7a32d0a84 Upgraded MkDocs to 1.0 2018-08-04 19:53:13 +02:00
Isaac Muse
a42fdb33ed Scope all internal HTML id tags to avoid name clashes
* Fix ids not being unique enough in templates

* Revert disqus id change
2018-06-10 14:45:16 +02:00
squidfunk
c3cdb945a6 Updated copyright notice 2018-01-13 17:36:13 +01:00
squidfunk
3217754daa Fixed odd behavior in navigation tab behavior 2018-01-11 23:20:49 +01:00
squidfunk
7a0c464ed6 Fixed lost tab focus on collapsible navigation 2018-01-11 23:20:49 +01:00
squidfunk
c4c7beaefa Fixed case where table of contents icon is missing on mobile navigation 2017-03-16 16:12:53 +01:00
squidfunk
fc4a466346 Fixed incorrectly displayed nested lists 2017-02-26 17:12:26 +01:00
squidfunk
6a68347a87 Merge branch 'master' into refactor/sidebar-height-spacing 2017-02-11 23:02:12 +01:00
squidfunk
f40585f528 Fixed Jinja error for raw HTML header tags 2017-02-08 23:17:37 +01:00
squidfunk
c4ba189c05 Only show active subsection on screen when tabs are active 2017-01-28 17:56:34 +01:00
squidfunk
cecd1f1d7c Drop 'with' in templates to be compatible with Jinja < 2.9 2017-01-10 00:15:44 +01:00
squidfunk
6d01f17193 Fix icons and build due to jinja changes 2017-01-08 18:27:01 +01:00
squidfunk
f37bb76d18 Update copyright 2017-01-06 19:11:18 +01:00
squidfunk
9e6d347db0 Fix deprecation warning 2017-01-02 08:57:19 +01:00
squidfunk
232e997ddc Replaced SASS Lint with Stylelint 2017-01-01 15:59:44 +01:00
squidfunk
ca0de52b45 Fix rendering of empty pane in mobile navigation when no headlines are given 2016-12-30 21:11:05 +01:00
squidfunk
5ef3ec7aa3 Add scrollfix for iOS 2016-12-29 14:19:26 +01:00
squidfunk
f4c5344116 Finishing touches on drawer 2016-12-28 16:20:52 +01:00
squidfunk
e1310aa9ee Add -webkit-overflow-scrolling via JavaScript on navigation 2016-12-28 11:49:57 +01:00
squidfunk
fe12548f8e Merge pull request #65 from brendo:issue-63-mkdocs-016-compatible 2016-12-15 16:43:40 +01:00
squidfunk
2fcfb551be Refactored JavaScript architecture 2016-12-15 15:55:40 +01:00
squidfunk
0d5e66d9a5 Refactored JavaScript into components 2016-11-02 19:21:14 +01:00
squidfunk
fc7fb28edb Prototyped animation for navigation on desktop 2016-09-24 18:52:37 +02:00
squidfunk
9338045887 Refactored navigation and drawer 2016-09-23 11:56:25 +02:00