1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 15:40:15 +01:00
Commit Graph

1272 Commits

Author SHA1 Message Date
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
allmightyse
1e0a242d92
Fixed syntax error in Swedish translations (#2210)
* Update sv.html

#2209 Correct syntax error from ; to :

* Update sv.html
2021-01-15 15:03:13 +01:00
squidfunk
14a7be164f Prepare 6.2.4 release 2021-01-09 13:43:17 +01:00
squidfunk
5b1ee2ac98 Fixed Disqus integration being shown on 404 pages 2021-01-09 13:14:42 +01:00
squidfunk
7c0ccd4bff Added documentation for native Mermaid integration (experimental) 2021-01-02 15:55:31 +01:00
squidfunk
9203255595 Removed ResizeObserver polyfill due to decent browser support 2021-01-01 17:16:24 +01:00
squidfunk
b825d222a4 Refactored resize observer 2020-12-30 18:40:34 +01:00
squidfunk
a339a8afb6 Renamed 'language' partials folder into 'languages' for consistency 2020-12-30 13:21:27 +01:00
squidfunk
45aff3cfc5 Fixed table of contents highlighting for active anchor links 2020-12-30 11:05:23 +01:00
squidfunk
82b0ea8b0e Added syntax highlighting for binary numbers (Pygments) 2020-12-30 10:52:10 +01:00
squidfunk
b194b211c1 Prepare 6.2.3 release 2020-12-27 11:41:20 +01:00
squidfunk
b89705bb2e Added back hidden overflow on root container 2020-12-27 11:35:17 +01:00
squidfunk
afff64df99 Fixed cropping of MathJax formulas on some browsers 2020-12-22 17:42:57 +01:00
squidfunk
e492ca283a Prepare 6.2.2 release 2020-12-22 14:24:25 +01:00
squidfunk
886c889f8a Prepare 6.2.1 release 2020-12-22 13:09:10 +01:00
squidfunk
a95b871fc7 Reverted webpack-asset-manifest-plugin, as it broke everything 2020-12-22 13:06:03 +01:00
squidfunk
82b16bb6ad Added distribution files 2020-12-22 12:45:19 +01:00
squidfunk
f3ad7e2f28 Reverted scroll-margin-top solution for anchors due to poor Safari support 2020-12-22 12:30:32 +01:00
squidfunk
65b41bbc9d Updated documentation 2020-12-21 17:38:58 +01:00
squidfunk
7a9147cfb7 Adjusted color of horizontal ruler 2020-12-20 16:09:42 +01:00
squidfunk
d754bd9a71 Merge of Insider features part of 'Prairie Fire' funding goal 2020-12-20 15:00:21 +01:00
squidfunk
7e78c4d8b7 Added distribution files 2020-12-15 09:02:26 +01:00
squidfunk
84251be688 Prepare 6.1.7 release 2020-12-06 11:47:21 +01:00
squidfunk
ca05a2d342 Fixed stats for private GitHub repositories 2020-12-06 11:15:13 +01:00
squidfunk
02260682ea Fixed Admonition rendering for right-to-left languages 2020-11-22 18:24:19 +01:00
squidfunk
4735169b29 Reduced upper glow (shadow) on Admonition bar 2020-11-22 14:00:32 +01:00
squidfunk
cda11a529a Removed box shadow on collapsed Admonitions 2020-11-22 13:51:41 +01:00
squidfunk
4f8012243d Prepare 6.1.6 release 2020-11-22 12:08:30 +01:00
squidfunk
1f162eb87d Updated dependencies 2020-11-15 22:38:42 +01:00
squidfunk
576c76b0b5 Updated documentation 2020-11-15 22:31:10 +01:00
squidfunk
874c015984 Fixed scrollbar showing on Windows for math formulas 2020-11-15 17:15:12 +01:00
squidfunk
b2fb2124fd Prepare 6.1.5 release 2020-11-15 16:05:08 +01:00
squidfunk
0135353b7d Fixed invalid display strategy of search reset button 2020-11-15 15:55:21 +01:00
squidfunk
aeaa00a625 Reverted ignore-emit-webpack-plugin 2020-11-13 12:38:25 +01:00
squidfunk
5ad3e7b626 Added missing distribution files 2020-11-13 12:32:23 +01:00
squidfunk
3872efc0fe Fixed unnecessary repaint when scrolling up with tabs 2020-11-13 11:20:46 +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
a46b42c5e2 Prepare 6.1.4 release 2020-11-07 13:10:30 +01:00
squidfunk
a9c782768e Fixed sidebar jitter when scrolling footer into view 2020-11-07 12:26:31 +01:00
squidfunk
6d671bf246 Formatting 2020-11-07 10:17:50 +01:00
squidfunk
5ddd184c41 Prepare 6.1.3 release 2020-11-05 21:17:16 +01:00
squidfunk
72494f08bb Added support for meta keywords 2020-11-05 21:10:58 +01:00
squidfunk
7c1ffcee95 Fixed distribution files after bad merge 2020-11-03 17:57:37 +01:00
squidfunk
aaa65f4df6 Fixed inconsistent scaling of line numbers for smaller code blocks 2020-11-03 17:54:36 +01:00
squidfunk
45799563be Removed focus outline on click for scrolling code blocks 2020-10-31 19:10:01 +01:00
squidfunk
a3c0e46d12 Formatting 2020-10-31 18:42:48 +01:00
squidfunk
93692a7950 Fixed defaut link colors for black and white primary colors on slate color scheme 2020-10-31 18:09:15 +01:00
squidfunk
fafe4d2c11 Prepare 6.1.2 release 2020-10-31 15:44:04 +01:00
squidfunk
0aff83ecb3 Fixed sizing of icons after dependency update 2020-10-31 15:42:11 +01:00
squidfunk
68c04f8298 Updated dependencies 2020-10-31 15:01:19 +01:00
squidfunk
87b706f19e Fixed instant loading not correctly updating page title 2020-10-31 14:29:20 +01:00
squidfunk
3b12c56e83 Updated landing page 2020-10-20 10:11:56 +02:00
squidfunk
24bcf9de53 Removed unnecessary URL filter 2020-10-18 11:56:29 +02:00
squidfunk
48b4120b8f Fixed relative homepage links for nested pages when building locally 2020-10-18 11:52:29 +02:00
squidfunk
0067197a36 Prepare 6.1.0 release 2020-10-17 16:55:08 +02:00
squidfunk
ab60de2b61 Fixed unreadable print view when using dark mode 2020-10-17 16:45:20 +02:00
squidfunk
c6a67ec093 Fixed hidden content tabs when printing 2020-10-17 16:37:40 +02:00
squidfunk
8eb2375551 Added proper border to summary to allow easier styling 2020-10-17 16:27:19 +02:00
squidfunk
750551355f Replaced bottom border with underline for search markers 2020-10-11 17:45:06 +02:00
squidfunk
454339bd35 Fixed site_url (link behind home button) for usage from file:// 2020-10-04 18:37:52 +02:00
squidfunk
b3271bab9f Fixed search result placeholder not resetting correctly 2020-10-04 15:40:58 +02:00
squidfunk
e277ad635b Removed placeholder when search input is focused 2020-10-04 15:24:21 +02:00
squidfunk
0bd567b28d Prepare 6.0.2 release 2020-10-04 14:48:59 +02:00
squidfunk
e149006af9 Escaped link titles where necessary 2020-10-04 14:24:43 +02:00
squidfunk
52787c6a9c Removed unnecessary title attributes in links 2020-10-04 14:18:10 +02:00
squidfunk
6248412844 Added Georgian translations 2020-10-04 13:29:24 +02:00
squidfunk
bf9f9bf16e Fixed search replacing %20 with + in document URLs 2020-10-01 09:28:16 +02:00
squidfunk
f60b9d99e8 Prepare 6.0.1 release 2020-09-28 00:10:46 +02:00
squidfunk
ff5ac56f1a Enabled compilation to ES2015, yielding huge savings 2020-09-27 23:42:17 +02:00
squidfunk
da7b209978 Refactored search result templates 2020-09-27 23:26:51 +02:00
squidfunk
baeb4cc5bd Fixed source integrations after refactoring 2020-09-27 22:58:33 +02:00
squidfunk
9c4009f608 Removed SVG factories to further reduce size 2020-09-27 22:35:28 +02:00
squidfunk
ab513f036e Replaced operators: ajax -> fetch, pluck -> map 2020-09-27 22:19:38 +02:00
squidfunk
0c4ddfcd70 Reverted addEventListener for media query (hello iOS Safari, I'm looking at you) 2020-09-27 21:01:16 +02:00
squidfunk
588813e67b Removed ramda dependency to save another 2-3kb 2020-09-27 20:36:18 +02:00
squidfunk
0de55b3cf8 Moved search result icon to CSS for deduplication 2020-09-27 20:23:28 +02:00
squidfunk
723d040609 Fixed tabbing behavior when search query is not empty 2020-09-27 19:28:15 +02:00
squidfunk
9fe00ec0af Added stemmer support for file:// protocol through iframe-worker 2020-09-27 19:09:09 +02:00
squidfunk
ee808c769e Fixed header title component 2020-09-27 18:07:48 +02:00
squidfunk
7820d85949 Removed inapproriately used fromEventPattern factories 2020-09-27 17:27:14 +02:00
squidfunk
90691a459a Updated banner image 2020-09-27 15:45:40 +02:00
squidfunk
091fe4426f Removed details marker on Firefox for search result expansion 2020-09-27 15:22:59 +02:00
squidfunk
080a4fc596 Prepare 6.0.0 release 2020-09-27 12:14:13 +02:00
squidfunk
ca0b6a93b1 Updated Material icons and removed hero logic 2020-09-27 12:01:28 +02:00
squidfunk
085117ef82 Prefixed tabs and instant feature flags with 'navigation.*' 2020-09-27 10:13:41 +02:00
squidfunk
ce802a4913 Added missing distribution files 2020-09-27 09:48:59 +02:00
squidfunk
5be0004bcc Fixed errors in merge 2020-09-27 09:47:23 +02:00
squidfunk
8f61fd3b56 Funding goal reached: merged back new search UI/UX from Insiders 2020-09-27 09:40:05 +02:00
squidfunk
e6ceb89d70 Removed deprecated meta data features 2020-09-27 08:54:36 +02:00
squidfunk
c4be8b34ab Prepare 5.5.14 release 2020-09-23 14:52:53 +02:00
squidfunk
b9ce0862ec Fixed table headers not wrapping correctly 2020-09-22 23:29:43 +02:00
squidfunk
01f1aed900 Added more bottom spacing for image captions 2020-09-22 18:08:09 +02:00
squidfunk
6b90dc105d Prepare 5.5.13 release 2020-09-19 15:24:55 +02:00
squidfunk
6725ec1aaa Added tooltip for abbreviations on touch devices 2020-09-19 15:16:24 +02:00
squidfunk
7151d24b19 Added documentation for abbreviations 2020-09-19 14:34:40 +02:00
squidfunk
180b4c934d Fixed build error when all feature flags are disabled 2020-09-06 12:09:57 +02:00
squidfunk
9b88f712ba Updated dependencies 2020-09-04 09:17:38 +02:00
squidfunk
db00455b67 Improved compatibility with Insiders 2020-09-03 23:21:17 +02:00
squidfunk
529ad4ede9 Prepare 5.5.12 release 2020-08-31 20:24:03 +02:00
squidfunk
0a0fee34d2 Fixed 404s on instant loading due to race condition 2020-08-30 14:26:07 +02:00
squidfunk
935c384789 Fixed sequential execution of scripts when using instant loading 2020-08-30 13:37:59 +02:00
squidfunk
9ab9508f9b Fixed sequential execution of scripts when using instant loading 2020-08-30 13:32:38 +02:00
squidfunk
89a60c39e7 Moved clipboard icon to CSS to reduce size of large projects 2020-08-30 12:23:34 +02:00
squidfunk
610bacb6b4 Prepare 5.5.11 release 2020-08-28 19:43:08 +02:00
squidfunk
1037d591be Fixed Disqus integration, as the minifier killed the config 2020-08-28 19:41:49 +02:00
squidfunk
e66fd1755b Prepare 5.5.10 release 2020-08-28 18:41:48 +02:00
squidfunk
96f58edae6 Improved Disqus integration to be non-blocking 2020-08-28 18:26:55 +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
51bfdce50a Prepare 5.5.9 release 2020-08-26 20:19:19 +02:00
squidfunk
4488256885 Added Esperanto translations 2020-08-26 20:15:26 +02:00
squidfunk
cdb426d54e Fixed tabs not showing external links 2020-08-26 20:06:47 +02:00
squidfunk
95cc609087 Fixed use of arrow function in inline JavaScript for overrides 2020-08-23 17:20:09 +02:00
squidfunk
7b3ad8c7de Added distriution files 2020-08-23 16:36:51 +02:00
squidfunk
6e5255a2d4 Prepare 5.5.8 release 2020-08-23 11:47:52 +02:00
squidfunk
8ee168954f Removed focus outlines for details and tabs for pointer devices 2020-08-23 11:31:56 +02:00
squidfunk
9480cb3b4c Added distriution files 2020-08-23 10:57:22 +02:00
squidfunk
e9795f382d Removed unnecessary share replays 2020-08-22 18:36:37 +02:00
squidfunk
989b8597c5 Fixed #1877: 404 on search index when search is disabled 2020-08-22 17:36:27 +02:00
squidfunk
b54c46da1b Fixed border radius for details 2020-08-17 10:04:43 +02:00
squidfunk
6a69b3c7da Improved focus styles for details 2020-08-16 16:09:19 +02:00
squidfunk
972fb76843 Improved accessibility of content tabs 2020-08-16 15:40:58 +02:00
squidfunk
4e8fa6e201 Fixed erroneous comma in template 2020-08-16 14:42:34 +02:00
squidfunk
71bc294b67 Fixed theme colors for Android meta tag 2020-08-16 14:41:19 +02:00
squidfunk
51058c29a9 Prepare 5.5.7 release 2020-08-16 10:55:17 +02:00
squidfunk
81f4caee52 Improved contrast for number syntax highlighting 2020-08-16 10:47:57 +02:00
squidfunk
20aa7de82b Improved contrast for constant syntax highlighting 2020-08-16 10:46:13 +02:00
squidfunk
8bc46a25be Improved contrast for number syntax highlighting 2020-08-16 10:43:51 +02:00
squidfunk
41e340b12c Improved contrast for string syntax highlighting 2020-08-16 10:41:32 +02:00
squidfunk
4a96f62e9a Improved contrast for inline code blocks 2020-08-16 10:35:50 +02:00
squidfunk
31bbd76cd3 Improved contrast ratio of code blocks 2020-08-16 10:26:36 +02:00
squidfunk
b6b00cc9a9 Prepare 5.5.6 release 2020-08-12 19:50:30 +02:00
squidfunk
e3d79b3b50 Switched base template for 404 to main.html 2020-08-12 19:45:56 +02:00
squidfunk
4639ff8313 Fixed #1864: GitHub organisation stats not loading 2020-08-12 10:43:11 +02:00
squidfunk
10d59e6a2d Prepare 5.5.5 release 2020-08-11 09:14:27 +02:00
squidfunk
0b331956ab Fixed distribution files 2020-08-11 09:09:55 +02:00
squidfunk
5e934cde47 Prepare 5.5.4 release 2020-08-11 08:54:30 +02:00
squidfunk
0ccbcb6edb Added documentation for data tables 2020-08-04 22:22:47 +02:00
squidfunk
610fc6846c Prepare 5.5.3 release 2020-08-04 12:50:26 +02:00
squidfunk
1341200829 Fixed search for languages other than English (5.5.1 regression) 2020-08-04 12:47:07 +02:00
squidfunk
186bd9ba3e Prepare 5.5.2 release 2020-08-03 09:12:26 +02:00
squidfunk
584c3135d0 Added documentation for custom admonitions 2020-08-02 23:15:19 +02:00
squidfunk
acd74225b3 Fixed tab labels being too small in admonitions 2020-08-02 22:17:36 +02:00
squidfunk
2cea481b9b Reverted clipboard button changes 2020-08-02 18:49:03 +02:00
squidfunk
30c8c87da8 Fixed margins for Admonitions 2020-08-02 16:55:59 +02:00
squidfunk
bc8864c25a Improved highlighting colors and unified spacing for ins, del and mark 2020-08-02 15:14:28 +02:00
squidfunk
34b61cc395 Added distriution files for removed outline 2020-08-02 12:02:20 +02:00
squidfunk
d97b44338c Added distriution files for new keyboard symbols 2020-08-01 19:27:52 +02:00
squidfunk
a217be3ebd Fixed copy-to-clipboard button overlaying code blocks 2020-08-01 19:16:07 +02:00
squidfunk
ee090a89ca Prepare 5.5.1 release 2020-08-01 15:35:51 +02:00
squidfunk
eba146d0bb Improved print preview 2020-08-01 15:28:58 +02:00
squidfunk
4b2c0e5a88 Removed modular-scale and made typography entirely relative 2020-08-01 15:22:03 +02:00
squidfunk
6579e1d77d Fixed top- and bottom spacing of paragraphs inside tables 2020-07-30 20:19:15 +02:00
squidfunk
1ec08b42dd Fixed site title behavior when using front matter 2020-07-27 17:52:38 +02:00
squidfunk
af4f74b368 Refactored CSS overrides and added note in search docs 2020-07-27 17:36:24 +02:00
squidfunk
02748b0a52 Added support and documentation for image alignment and captions 2020-07-27 16:49:39 +02:00
squidfunk
cb974e5bd4 Switched expose-loader with ProvidePlugin 2020-07-27 09:57:24 +02:00
squidfunk
b496e1a2c6 Renamed Sponsorship page to Insiders 2020-07-27 09:40:57 +02:00
squidfunk
748be34f8e Added MathJax reference 2020-07-24 16:11:42 +02:00
squidfunk
ae0b187267 Added missing license 2020-07-24 12:29:33 +02:00
squidfunk
a33fea95b3 Prepare 5.5.0 release 2020-07-24 12:12:11 +02:00
squidfunk
5f57f23af3 Added distribution files 2020-07-24 10:59:57 +02:00
squidfunk
b0bb26ec99 Fixed Google Analytics not tracking URLs with instant loading 2020-07-24 10:54:48 +02:00
squidfunk
6d6811451b Fixed race condition in instant loading 2020-07-24 10:47:26 +02:00
squidfunk
4e72d31043 Fixed Google Analytics not tracking URLs with instant loading 2020-07-24 10:40:15 +02:00
squidfunk
dd40970865 Fixed Google Analytics not tracking URLs with instant loading 2020-07-24 10:20:40 +02:00
squidfunk
7d3ca051fa Improved balancing of color schemes 2020-07-24 10:13:21 +02:00
squidfunk
87f807adc5 Fixed styling of code blocks with line numbers 2020-07-24 10:00:54 +02:00
squidfunk
c431539a83 Refactored code syntax highlighting 2020-07-24 09:59:16 +02:00
squidfunk
32cc1c57b2 Fixed width of footer links above tablet breakpoint 2020-07-23 13:42:17 +02:00
squidfunk
f401aeaea4 Added heart animation on sponsorship page 2020-07-23 13:29:07 +02:00
squidfunk
d6e058392d Added documentation on keyboard navigation 2020-07-23 13:17:50 +02:00
squidfunk
6295251c24 Adjusted analytics implementation 2020-07-23 10:23:32 +02:00
squidfunk
98d1c354df Moved landing page overrides to separate stylesheet 2020-07-23 10:04:22 +02:00
squidfunk
4771933f10 Cleaned up stylesheet source directory structure 2020-07-23 09:29:23 +02:00
squidfunk
5eecb7da31 Added sponsorship banner and page 2020-07-22 16:05:38 +02:00
squidfunk
4a50cab8c8 Added keys styling from Python Markdown Extensions 2020-07-22 11:50:43 +02:00
squidfunk
0f6357994a Added lists reference and repository guide 2020-07-21 13:33:44 +02:00
squidfunk
75ea1e4100 Added docs on content tabs 2020-07-20 19:28:13 +02:00
squidfunk
0f1b640c0d Reset scroll margin for footnotes 2020-07-20 17:18:00 +02:00
squidfunk
fed4146fa0 Added site search guide 2020-07-20 15:18:09 +02:00
squidfunk
8602969890 Finished syntax highlighter docs and moved overrides to CSS 2020-07-19 22:23:26 +02:00
squidfunk
2fdee428ff Added first part of syntax highlighting guide 2020-07-17 16:50:57 +02:00
squidfunk
8443720155 Fixed spacing for definition lists 2020-07-17 13:09:56 +02:00
squidfunk
9cc396315c Added guide for navigation configuration 2020-07-17 13:08:27 +02:00
squidfunk
66c939265f Added source links to docs 2020-07-16 23:05:57 +02:00
squidfunk
71e9b1d745 Improved getting started guide and added further guides 2020-07-16 22:31:39 +02:00
squidfunk
45735bebfe Updated distribution files 2020-07-16 20:32:47 +02:00
squidfunk
6c8698e4f9 Prepare 5.4.0 release 2020-06-29 11:07:20 +02:00
squidfunk
3a94b968fc Merge branch 'master' into feature/search-with-quotes 2020-06-29 11:02:23 +02:00
squidfunk
759f2b9e36 Fixed consecutive searches with quotes 2020-06-29 10:57:56 +02:00
squidfunk
83bba6bee4 Implemented support for AND search with quotation marks 2020-06-28 12:05:15 +02:00
Michael
899c5ecf9c
Added distribution files (#1777)
* Further updates for #1773

* Update search.9b3611bd.min.js
2020-06-26 20:30:01 +02:00
squidfunk
09e5e38a5c Prepare 5.3.3 release 2020-06-24 08:27:13 +02:00
squidfunk
3f4e56157c Added Bengali (Bangla) translations 2020-06-24 08:20:07 +02:00
squidfunk
a3c03aefb9 Fixed search transform removing numbers from query 2020-06-23 08:45:49 +02:00
squidfunk
1594c66119 Prepare 5.3.2 release 2020-06-21 13:30:47 +02:00
squidfunk
e6e7536356 Improved search experience in many languages 2020-06-21 13:22:48 +02:00
squidfunk
edfbfdf328 Prepare 5.3.1 release 2020-06-20 12:26:55 +02:00
squidfunk
b6e16d8e07 Updated announcement bar 2020-06-20 12:24:35 +02:00