fiddly

Create beautiful and simple HTML pages from your Readme.md files

  • 所有者: SaraVieira/fiddly
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Fiddly

Create beautiful and simple HTML pages from your Readme.md files

  • ? No config
  • ?‍? Code Highlighting
  • ?Emoji Support
  • ✨Creates Static files (only JS is prism)
  • ?️‍? Pretty Pages
  • ? Customizable
  • ? Image minification
  • ?? CodeSandbox and iframe Support
yarn add fiddly --dev
npm install fiddly --save-dev

Usage

{
  ...
  "scripts": {
    "build:demo": "fiddly",
    ....
  }

Deploy automatically to netlify ?

This Readme on Netlify

This Readme with white theme

Usage with npx

If you just want a quick fancy HTML page from the Readme but don't care about running this in continuous deployment you can also use npx to run it as a one time thing.

  npx fiddly

By running this in the root folder you will also get a public folder

Options

Options are placed in a .fiddly.config.json or as a fiddly key in package.json.
It can contain the following options:

Example of styles

For styles you can either use a style object like so and that will override the
default styles applied. Like so:

{
  "styles": {
    "h1": {
      "color": "blue",
      "backgroundColor": "red"
    }
  }
}

Another option is to give the path to a local css or scss file.
In this case you need to override any specificity issues.
You can by using the #fiddly id.
Example:

body {
  background: #fff;
}

#fiddly {
  h1 {
    text-transform: uppercase;
  }
}

Images

Any images linked in your markdown that are local will be minified and copied to your dist folder.
If some image is not found it will be ignored.

GitHub Corner

The GitHub corner comes from either the repo option in your .fiddly.config.json
or from the repository url in your package.json.
If none is present it will not be shown.

Lint

Fiddly also exports a command to let you lint all the markdown files you specified.

You can run this by using the lint command

"lint:md" : "fiddly lint"

Deploy

Fiddly also exports a command to let you deploy your new site to GitHub pages

You can run this by using the deploy command

"deploy" : "fiddly deploy"

Options for this can be passed in a deployment key in your config file.
All options can be found here: https://github.com/tschaub/gh-pages#options

Acknowledgements

Contributors

License

MIT - see LICENSE

主要指標

概覽
名稱與所有者SaraVieira/fiddly
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-12-23 20:40:28
推送於2023-05-04 19:09:36
最后一次提交2023-05-04 20:09:36
發布數20
最新版本名稱v0.12.0 (發布於 2021-09-13 20:12:57)
第一版名稱v0.1.0 (發布於 2018-12-24 17:11:42)
用户参与
星數1k
關注者數11
派生數41
提交數119
已啟用問題?
問題數14
打開的問題數4
拉請求數17
打開的拉請求數1
關閉的拉請求數14
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?