Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Material Design Lite Documentation Offline?

I have some problem while installing a documentation for Material Design Lite locally. I have following a command in this file:

git clone https://github.com/google/material-design-lite
cd material-design-lite
npm install && npm install -g gulp
gulp all && gulp serve

When run gulp all there is an error:

root@c54a089ac69c:/home/material-design-lite# gulp all
[21:18:38] Requiring external module babel-register
[21:18:42] Using gulpfile /home/material-design-lite/gulpfile.babel.js
[21:18:42] Starting 'clean'...
[21:18:42] Finished 'clean' after 106 ms
[21:18:42] Starting 'all'...
[21:18:42] Starting 'lint:aux'...
[21:18:45] 
/home/material-design-lite/gulpfile.babel.js
  136:1  warning  Unexpected 'todo' comment  no-warning-comments
  807:3  warning  Unexpected 'todo' comment  no-warning-comments

✖ 2 problems (0 errors, 2 warnings)

[21:18:45] Finished 'lint:aux' after 2.39 s
[21:18:45] Starting 'styletemplates'...
[21:18:49] styles all files 1.07 MB
[21:18:49] Finished 'styletemplates' after 4.04 s
[21:18:49] Starting 'styles-grid'...
[21:18:49] Starting 'styles'...
[21:18:49] styles-grid all files 17.77 kB
[21:18:49] Finished 'styles-grid' after 187 ms
[21:18:50] styles all files 714.08 kB
[21:18:50] Finished 'styles' after 1.39 s
[21:18:50] Starting 'styles:gen'...
[21:18:52] Finished 'styles:gen' after 2.36 s
[21:18:52] Starting 'lint:sources'...
[21:18:56] 
/home/material-design-lite/src/mdlComponentHandler.js
  232:49  error  Properties shouldn't be quoted as all quotes are redundant  quote-props
  366:51  error  Properties shouldn't be quoted as all quotes are redundant  quote-props

/home/material-design-lite/src/checkbox/checkbox.js
  123:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/icon-toggle/icon-toggle.js
  119:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/radio/radio.js
  133:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/switch/switch.js
  122:5  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/tabs/tabs.js
  88:7  warning  Do not use 'new' for side effects  no-new

/home/material-design-lite/src/textfield/textfield.js
  273:11  warning  Unexpected 'todo' comment  no-warning-comments

/home/material-design-lite/src/layout/layout.js
  520:11  warning  Do not use 'new' for side effects        no-new
  570:3   error    Block must not be padded by blank lines  padded-blocks

✖ 10 problems (3 errors, 7 warnings)

[21:18:56] 'lint:sources' errored after 3.59 s
[21:18:56] ESLintError in plugin 'gulp-eslint'
Message:
    Failed with 3 errors
[21:18:56] 'all' errored after 14 s
[21:18:56] Error in plugin 'run-sequence'
Message:
    An error occured in task 'lint:sources'.

But, when I serve it with gulp serve, it's run but just displaying this:

Screenshot

It's Just displaying the files! How to generate offline documentation for material-design-lite? Any ideas? Thanks.

Thank you;

PS:

I run this with on Docker with NodeJS Container.

Material Design Lite Website: https://getmdl.io


1 Answers

I have never try to clone the repo, but with this way i can get the offline docs. Only using wget tools. wget -mkEpnp https://getmdl.io And voila, you have the copies of website in your desktop.

like image 112
ian cikal Avatar answered Jan 23 '26 08:01

ian cikal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!