Skip to content

Commit

Permalink
Merge pull request #16 from orzih/feature/use-headless-chrome
Browse files Browse the repository at this point in the history
Supports the use of `Headless Chrome`.
  • Loading branch information
orzih authored Sep 12, 2020
2 parents a845d27 + 1e5471b commit efc424f
Show file tree
Hide file tree
Showing 40 changed files with 12,516 additions and 674 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,32 @@ plugins:
@see [Sample of _MkDocs Material_](https://github.com/orzih/mkdocs-with-pdf/blob/master/samples/mkdocs-material/)
##### Renderer for JavaScript
* `render_js`
Set the value to `true` if you're using '[MathJax](https://www.mathjax.org/)', '[Twemoji](https://twemoji.twitter.com/)' or any more.
Require "Chrome" which has "headless" mode.
**default**: `false`
_**since**: `v0.7.0`_
* `headless_chrome_path`
Set the "Headless Chrome" program path.
If `render_js` is _`false`_, this value will be ignored.
**default**: `google-chrome`
> Check on your system:
>
> ```
> $ <PROGRAM_PATH> --headless \
> --disable-gpu \
> --dump-dom \
> <ANY_SITE_URL(eg. 'https://google.com')>
> ```
##### ... and more
* `output_path`
Expand Down
18 changes: 18 additions & 0 deletions custum_style_src/material-polyfills/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
serviceworker: true,
browser: true,
node: true
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2015
},
extends: ['prettier', 'plugin:prettier/recommended'],
plugins: ['prettier'],
// add your custom rules here
rules: {
'unicorn/number-literal-case': 'off'
}
}
6 changes: 6 additions & 0 deletions custum_style_src/material-polyfills/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "none"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions custum_style_src/material-polyfills/dev-site/assets/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@media print {
.md-typeset {
line-height: 1.4;
}
.md-typeset ul li,
.md-typeset ol li {
margin-bottom: .25rem;
}

#doc-toc ul li>a>span,
.md-typeset h1>span,
.md-typeset h2>span,
.md-typeset h3>span {
display: inline-block;
}

.md-typeset h1>span,
.md-typeset h2>span,
.md-typeset h3>span {
padding-right: 0.5rem;
}

/** workaround [[ */
.md-typeset h2>span.twemoji,
.md-typeset h2>span.twemoji>img {
height: 1.363em;
}
.md-typeset h2>span.twemoji>img {
margin-top: -0.3em;
}
#doc-toc span.twemoji,
#doc-toc span.twemoji img {
height: 1.125rem;
vertical-align: middle;
}
/* ]] **/

.md-typeset .tx-content__footer hr {
background-color: transparent;
border-bottom: 0.5px solid #e91e63;
}

section.md-typeset[data-url="/changelog/"] h4+ul {
margin: 0;
}
section.md-typeset[data-url="/changelog/"] ul>li {
margin-bottom: 0;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit efc424f

Please sign in to comment.