{"id":13451990,"url":"https://github.com/SaraVieira/fiddly","last_synced_at":"2025-03-23T19:33:25.109Z","repository":{"id":47312508,"uuid":"162922510","full_name":"SaraVieira/fiddly","owner":"SaraVieira","description":"Create beautiful and simple HTML pages from your Readme.md files","archived":false,"fork":false,"pushed_at":"2023-05-04T19:09:36.000Z","size":937,"stargazers_count":1011,"open_issues_count":5,"forks_count":40,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-18T02:08:29.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fiddly.netlify.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaraVieira.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-23T20:40:28.000Z","updated_at":"2025-02-23T23:20:51.000Z","dependencies_parsed_at":"2024-06-21T17:37:34.799Z","dependency_job_id":"f95989ec-e99f-4495-89c0-87fb64588e33","html_url":"https://github.com/SaraVieira/fiddly","commit_stats":{"total_commits":114,"total_committers":13,"mean_commits":8.76923076923077,"dds":"0.16666666666666663","last_synced_commit":"ba89a90d86e560008710db9b81a4b0a70104d0a2"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraVieira%2Ffiddly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraVieira%2Ffiddly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraVieira%2Ffiddly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraVieira%2Ffiddly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaraVieira","download_url":"https://codeload.github.com/SaraVieira/fiddly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245158871,"owners_count":20570279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:01:09.382Z","updated_at":"2025-03-23T19:33:24.681Z","avatar_url":"https://github.com/SaraVieira.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# Fiddly\n\nCreate beautiful and simple HTML pages from your Readme.md files\n\n- 🛠 No config\n- 👩‍💻 Code Highlighting\n- 💯 Emoji Support\n- ✨ Creates Static files (only JS is prism)\n- 🏳️‍🌈 Pretty Pages\n- 🦄 Customizable\n- 🖼 Image minification\n- 🧠 Custom Meta Tags\n- 🇳🇱 [CodeSandbox](https://codesandbox.io) and iframe Support\n\n```bash\nyarn add fiddly --dev\n```\n\n```bash\nnpm install fiddly --save-dev\n```\n\n## Usage\n\n```json\n{\n  ...\n  \"scripts\": {\n    \"build:demo\": \"fiddly\",\n    ....\n  }\n```\n\nDeploy automatically to netlify 🎉\n\n[This Readme on Netlify](https://fiddly.netlify.com/)\n\n[This Readme with white theme](https://5c2678b67b891f18dc5a2a42--fiddly.netlify.com/)\n\n## Usage with npx\n\n\u003c!-- markdownlint-disable --\u003e\n\nIf 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.\n\n\u003c!-- markdownlint-enable --\u003e\n\n```bash\n  npx fiddly\n```\n\nBy running this in the root folder you will also get a public folder\n\n## Options\n\nOptions are placed in a `.fiddly.config.json` or as a `fiddly` key in `package.json`.\nIt can contain the following options:\n\n\u003c!-- markdownlint-disable --\u003e\n\n| Option          | Default                            | Description                                                                                                  |\n| --------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------ |\n| file            | Readme.md, readme.md, or README.md | Your Readme.md name                                                                                          |\n| name            | name in package.json               | The project name that is in the title and the header                                                         |\n| logo            | ''                                 | The project logo that is in the header                                                                       |\n| shareCard       | ''                                 | URL to social media preview image for meta tags (recommended size: 1200x628, URL cannot be relative)         |\n| description     | description in package.json        | The project description for meta tags                                                                        |\n| homepage        | null                               | The project homepage for meta tags                                                                           |\n| noHeader        | false                              | Show no header and just the markdown content                                                                 |\n| darkTheme       | false                              | Dark theme ofc 🎉                                                                                            |\n| favicon         | ''                                 | Favicon url or local path                                                                                    |\n| dist            | public                             | To what folder to render your HTML                                                                           |\n| styles          | {}                                 | Styles to apply to the page. Object or path to css/scss file                                                 |\n| additionalFiles | []                                 | Any other pages to create. It expects an array of paths of markdown files                                    |\n| repo            | null                               | Link to point the github corner                                                                              |\n| pathPrefix      | Environment var PATH_PREFIX or '/' | Host your fiddly files at e.g. /my-fiddly-project                                                            |\n| meta            | []                                 | Any extra meta tags you would like                                                                           |\n| remoteStyles    | []                                 | Array of any remote styles you want to include (eg: Google Fonts)                                            |\n| remoteScripts   | []                                 | Array of any remote scripts you want to include (eg: Google Analytics)                                       |\n| deployment      | {}                                 | Deployment options for github pages. Accepts all options [here](https://github.com/tschaub/gh-pages#options) |\n\n\u003c!-- markdownlint-enable --\u003e\n\n### Example of styles\n\nFor styles you can either use a style object like so and that will override the\ndefault styles applied. Like so:\n\n```json\n{\n  \"styles\": {\n    \"h1\": {\n      \"color\": \"blue\",\n      \"backgroundColor\": \"red\"\n    }\n  }\n}\n```\n\nAnother option is to give the path to a local css or scss file.\nIn this case you need to override any specificity issues.\nYou can by using the `#fiddly` id.\nExample:\n\n```css\nbody {\n  background: #fff;\n}\n\n#fiddly {\n  h1 {\n    text-transform: uppercase;\n  }\n}\n```\n\n## Meta Tags\n\nTo create any meta tags it uses an array system like so:\n\n```json\n  \"meta\": [\n    { \"name\": \"description\", \"content\": \"A cool page\" },\n    { \"property\": \"robots\", \"content\": \"robots.txt\" }\n  ]\n```\n\nThis will create the following HTML:\n\n```html\n\u003cmeta name=\"description\" content=\"A cool page\" /\u003e\n\u003cmeta property=\"robots\" content=\"robots.txt\" /\u003e\n```\n\nThe first key on the object can have any name and will be applied as presented, the second one must have the name of content and will work as presented above.\n\n## Images\n\nAny images linked in your markdown that are local will be minified and copied to your dist folder.\nIf some image is not found it will be ignored.\n\n## GitHub Corner\n\nThe GitHub corner comes from either the `repo` option in your `.fiddly.config.json`\nor from the repository url in your `package.json`.\nIf none is present it will not be shown.\n\n## Lint\n\nFiddly also exports a command to let you lint all the markdown files you specified.\n\nYou can run this by using the `lint` command\n\n```json\n\"lint:md\" : \"fiddly lint\"\n```\n\n## Deploy\n\nFiddly also exports a command to let you deploy your new site to GitHub pages\n\nYou can run this by using the `deploy` command\n\n```json\n\"deploy\" : \"fiddly deploy\"\n```\n\nOptions for this can be passed in a `deployment` key in your config file.\nAll options can be found here: [https://github.com/tschaub/gh-pages#options](https://github.com/tschaub/gh-pages#options)\n\n## Acknowledgements\n\n- Base styles from [medium.css](https://github.com/lucagez/medium.css)\n- Logo from [OpenMoji](http://www.openmoji.org/library.html?search=beautiful\u0026emoji=2728)\n\n## Contributors\n\n\u003c!-- markdownlint-disable --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars0.githubusercontent.com/u/1051509?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSara Vieira\u003c/b\u003e\u003c/sub\u003e](http://iamsaravieira.com)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=SaraVieira \"Code\") [🎨](#design-SaraVieira \"Design\") [🤔](#ideas-SaraVieira \"Ideas, Planning, \u0026 Feedback\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/4772980?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBruno Scheufler\u003c/b\u003e\u003c/sub\u003e](https://brunoscheufler.com)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=BrunoScheufler \"Code\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/1863771?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSiddharth Kshetrapal\u003c/b\u003e\u003c/sub\u003e](https://sid.studio)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=siddharthkp \"Code\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/1479215?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJamon Holmgren\u003c/b\u003e\u003c/sub\u003e](https://jamonholmgren.com)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=jamonholmgren \"Code\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/1695613?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTimothy\u003c/b\u003e\u003c/sub\u003e](http://timothy.is)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=timothyis \"Code\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/13808724?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAndrew Cherniavskii\u003c/b\u003e\u003c/sub\u003e](https://github.com/cherniavskii)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=cherniavskii \"Code\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/16899513?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003etimkolberger\u003c/b\u003e\u003c/sub\u003e](https://github.com/TimKolberger)\u003cbr /\u003e[💻](https://github.com/SaraVieira/fiddly/commits?author=TimKolberger \"Code\") |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST: START - Do not remove or modify this section --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\u003c!-- markdownlint-enable --\u003e\n\n## License\n\nMIT - see [LICENSE](https://github.com/SaraVieira/fiddly/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaraVieira%2Ffiddly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSaraVieira%2Ffiddly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaraVieira%2Ffiddly/lists"}