question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Material 5.0.0 Beta 1

See original GitHub issue

This thread is meant for feedback on the first beta release of Material 5.0. Please post any issues or errors encountered during setup and/or migration.

The first beta focuses on the rewrite of the underlying JavaScript code to a new, more modern architecture based on TypeScript and RxJS. However, it also provides some new features.

The probably biggest feature is the new search functionality which was completely rewritten and is now running inside a web worker. Furthermore, it supports prebuilt indexes (albeit this is not recommended). Previously, the search index was built when the search was focussed for the first time. Sometimes this led to lags and the UI freezing, as the search index needed to be constructed. The construction is now done upon page load inside a web worker.

Additionally, most of lunr’s query syntax is now supported, e.g.:

color -primary +accent

Fixed issues

  • Add ‘selected’ as toc item state (#1102)
  • Update Font Awesome to LATEST (#756)
  • Fix rendering issues in table of contents (#1292)
  • Add announcement bar (#1190)
  • Add missing background-color definition on root (#1418)
  • Fix error on clipboard in combination with superfences (#1440)

Installation

Install the beta via pip:

pip install mkdocs-material>=5.0.0b1

Migration

Material 5.0 is mostly downward compatible but includes some breaking changes. Following is a list of changes that need to be made to your mkdocs.yml. Note that you only need to adjust the values if you defined them.

Search

Search is now configured as part of the search plugin configuration.

Material 4.x:

extra:
  search:
    language: 'en, de, ru'
    tokenizer: '[\s\-\.]+'

Material 5.x:

plugins:
  - search:
      separator: '[\s\-\.]+'
      lang:
        - en
        - de
        - ru

Social links

Font Awesome was updated to the latest version and is now provided via inline SVGs which reduces the overall footprint. To reference an icon, reference its path from the top-level .fontawesome directory which is distributed with the theme without the .svg at the end.

Material 4.x:

extra:
  social:
    - type: 'github'
      link: 'https://github.com/squidfunk'
    - type: 'twitter'
      link: 'https://twitter.com/squidfunk'
    - type: 'linkedin'
      link: 'https://www.linkedin.com/in/squidfunk'

Material 5.x:

extra:
  social:
    - icon: brands/github-alt
      link: https://github.com/squidfunk
    - icon: brands/twitter
      link: https://twitter.com/squidfunk
    - icon: brands/linkedin
      link: https://www.linkedin.com/in/squidfunk/

Note that mkdocs build will now terminate with an error if an invalid icon is referenced.

Templates

Note that some of the templates changed. If you extended the theme by overriding blocks or partials, you might have to adjust the HTML of your overrides. We’re working on a list of changes, but for now you can use the diff functionality of GitHub.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:47 (45 by maintainers)

github_iconTop GitHub Comments

1reaction
Nelyahcommented, Feb 20, 2020

Awesome! Thank you for your work 😄 Super excited to see this come live!

1reaction
wilhelmercommented, Feb 19, 2020

Furthermore this so called instant loading feature will be optional and experimental. It will at all times be opt-in.

Ahh that’s good to know, thank you.

Burying the packing approach is no problem for me, good riddance 👋

Read more comments on GitHub >

github_iconTop Results From Across the Web

@material-ui/core - npm
@material-ui/core. TypeScript icon, indicating that this package has built-in type declarations. 5.0.0-beta.1 • Public • Published a year ...
Read more >
NPM Package Versions - material-ui/core - Socket.dev
Start using Socket to analyze @material-ui/core and its 12 dependencies to secure ... published 5.0.0-beta.5 • last year ... @material-ui/utils@5.0.0-beta.1.
Read more >
material-ui/core - UNPKG
... 5.0.0-alpha.35, 5.0.0-alpha.36, 5.0.0-alpha.37, 5.0.0-alpha.38, 5.0.0-beta.0, 5.0.0-beta.1, 5.0.0-beta.2, 5.0.0-beta.3, 5.0.0-beta.4, 5.0.0-beta.5.
Read more >
Could not resolve dependency error peer react@"^16.8.0
@material-ui/core@"^4.12.4" from the root project npm ERR! npm ERR! ... 1. first try it directly if it doesn't works than remove.
Read more >
Material Menu - CodeSandbox
https://github.com/mui-org/material-ui/blob/master/docs/src/pages/components/drawers/PersistentDrawerRight.js. 0. 34. 1 ... next (5.0.0-beta.1). 5.0.0-beta.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found