{"id":16189316,"url":"https://github.com/caolan/petrify","last_synced_at":"2025-05-12T03:31:54.273Z","repository":{"id":998160,"uuid":"809383","full_name":"caolan/petrify","owner":"caolan","description":"A flexible static site generator for node.js","archived":false,"fork":false,"pushed_at":"2012-07-17T21:52:17.000Z","size":1814,"stargazers_count":258,"open_issues_count":8,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T23:51:08.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/caolan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-07-31T15:40:11.000Z","updated_at":"2025-01-22T20:16:06.000Z","dependencies_parsed_at":"2022-07-06T01:00:30.091Z","dependency_job_id":null,"html_url":"https://github.com/caolan/petrify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fpetrify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fpetrify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fpetrify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fpetrify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caolan","download_url":"https://codeload.github.com/caolan/petrify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253668072,"owners_count":21944973,"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-10-10T07:35:01.778Z","updated_at":"2025-05-12T03:31:53.968Z","avatar_url":"https://github.com/caolan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Petrify\n\n_A simple and flexible static site generator for node.js_\n\n\n## Why use a static site generator?\n\n* __Static files are fast__ - You never know, you might just get slashdotted...\n* __Plays well with version control__ - You can have a complete history of both\n  the content and the code in git, easily backed up.\n* __You can use your text editor of choice__ - I like to write my content in\n  Vim, not in a textarea!\n* __Less security concerns__ - No SQL injections or other attacks associated\n  with dynamic content or exposing your admin area to the web.\n* __Easy to deploy__ - You can just rsync or FTP the site to your server,\n  nothing fancy needs to be installed on it. You could have git do this\n  automatically on commit if you like... or, like me, you can have the server\n  rebuild the site automatically when you push to it.\n* __You no longer need to serve your own dynamic content__ - Lots of content you\n  would normally want a database for can now be included using JavaScript. You\n  can add comments via [Disqus](http://disqus.com), you can embed calendars from\n  [Google Calendar](http://calendar.google.com)... Many of these problems have\n  already been solved. better. ;)\n\n\n## Why use Petrify?\n\n* __Flexibility__ - Most other site generators focus on blogs, but Petrify can\n  be used for a wide range of sites, from project documentation to event\n  listings. This is achieved through allowing you to parse the content data in\n  whichever way you like.\n* __Write your views in JavaScript__ - Petrify uses JavaScript for parsing\n  content. JavaScript is a widely used language, and if you know enough about\n  HTML to want to use a static site generator, you probably know enough\n  JavaScript to use Petrify.\n* __Write your content in Markdown__ -\n  [Markdown](http://daringfireball.net/projects/markdown/) is an easy to write,\n  easy to read markup language inspired by the way people write in plain text\n  emails. This works well if you host projects on GitHub, which is already very\n  markdown friendly. You can run a Petrify site generator on the doc directory\n  of your project and have pretty HTML docs for your own domain.\n\n## Getting started\n\nFirst, install the latest version of [node.js](http://nodejs.org/#download).\nPetrify uses git submodules for the rest of its dependencies. Once you've\ncloned the repository, do:\n\n    git submodule update --init --recursive\n\nThen, cd to the examples directory and run the build script. This will create\na www directory with a bunch of HTML files inside. Voila! you've just generated\nyour first site. For now, the example site and the files in the doc directory\nwill have to be enough to get you started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fpetrify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaolan%2Fpetrify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fpetrify/lists"}