snehilvj / dmc-docs

Documentation for Dash Mantine Components library.
https://github.com/snehilvj/dash-mantine-components
MIT License
53 stars 17 forks source link

Update directive.py avoid Windows user error. #16

Closed tringuy1993 closed 2 years ago

tringuy1993 commented 2 years ago

Updated directives.py:

New update on line 10:

def create_prism(file):
      source = Path(file).read_text(encoding="utf-8")
      source = source.replace("component = ", "", 1)
      return dmc.Prism(source, language="python")