fiddly

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

  • Owner: SaraVieira/fiddly
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With OwnerSaraVieira/fiddly
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2018-12-23 20:40:28
Pushed At2023-05-04 19:09:36
Last Commit At2023-05-04 20:09:36
Release Count20
Last Release Namev0.12.0 (Posted on 2021-09-13 20:12:57)
First Release Namev0.1.0 (Posted on 2018-12-24 17:11:42)
用户参与
Stargazers Count1k
Watchers Count11
Fork Count41
Commits Count119
Has Issues Enabled
Issues Count14
Issue Open Count4
Pull Requests Count17
Pull Requests Open Count1
Pull Requests Close Count14
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private