{"id":28160943,"url":"https://github.com/pachacamac/jing","last_synced_at":"2025-05-15T10:15:19.671Z","repository":{"id":56879118,"uuid":"170778555","full_name":"pachacamac/jing","owner":"pachacamac","description":"A tiny static site generator packing a punch - 静态网页生成器","archived":false,"fork":false,"pushed_at":"2021-06-03T15:04:27.000Z","size":73,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T20:48:08.914Z","etag":null,"topics":["erb-template","filewatcher","markdown","minimal","ruby-gem","sass","scss","small-projects","static-server","static-site-generator","static-website","tiny","typescript"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/pachacamac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-15T00:40:02.000Z","updated_at":"2023-02-07T18:46:14.000Z","dependencies_parsed_at":"2022-08-20T11:40:39.939Z","dependency_job_id":null,"html_url":"https://github.com/pachacamac/jing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachacamac%2Fjing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachacamac%2Fjing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachacamac%2Fjing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachacamac%2Fjing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pachacamac","download_url":"https://codeload.github.com/pachacamac/jing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319632,"owners_count":22051077,"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":["erb-template","filewatcher","markdown","minimal","ruby-gem","sass","scss","small-projects","static-server","static-site-generator","static-website","tiny","typescript"],"created_at":"2025-05-15T10:15:15.984Z","updated_at":"2025-05-15T10:15:19.646Z","avatar_url":"https://github.com/pachacamac.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nPlease consider using [pachacamac/sessg] instead. It should be considerably better than this one. Also this one is not further developed anymore.\n\n# Jing\n\nA tiny static site generator packing a punch\n\nJing tai wang ye sheng cheng qi\n静态网页生成器\n\n---\n\nHas built in support for Erb - and Markdown templates, Typescript compiler, Sass compiler, JavaScript/Css minifier, partial- and layout support, variable support, easily extendable, updates your page as soon as you change a file.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'jing'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jing\n\n## Usage\n\ncall `jing` on the command line or have a look at the code (it's tiny) :)\n\nCreates a new folder `mypage` or updates an existing one and adds a basic setup:\n\n    $ jing create mypage\n    $ cd mypage\n\nBuild the current project:\n\n    $ jing build\n\nAutomatically build the page whenever a file in the project folder changes:\n\n    $ jing watch\n    $ jing watch -full_build true   # to not skip uglifying js files (slower)\n\nServes the current projects _dst folder on `http://0.0.0.0:8000`:\n\n    $ jing serve\n    $ jing serve -no_auto_reload true       # to not inject auto page reload code into html files\n    $ jing serve -port 1234 -root somepath  # to change port and root directory\n\nOptions that work in all commands:\n\n    -src somepath     # changes the source folder - default: ./ (current folder)\n    -dst somepath     # changes the output folder - default: ./_dst\n    -layouts folder   # changes the layouts folder - default: ./_layouts\n    -partials folder  # changes the partials folder - default: ./_partials\n\n\nShow current version\n\n    $ jing version\n\nFile endings work like Russian dolls: They get converted from outer to inner. Rails folks should be somewhat familiar with that but here it's a bit stricter.\n\nFolders starting with `_` have special meaning, they generally won't get copied into the destination folder `_dst`.\n\n`_partials` holds partials (TODO: explanation)\n\n`_layouts` holds layouts (TODO: explanation)\n\n`_dst' holds the generated site\n\n`.meta.yml` holds global meta variables available in templates when not overwritten\n\n~~I'll try and add a basic example project soon.~~ Check out the examples folder. If you feel like giving this a try and have questions feel free to open an issue or reach out otherwise. Pull requests welcome too.\n\n## Development\n\nExtending is fairly easy.\n\n`@converters` variable in the initialize method holds a bunch of converters. Just add one in the spirit of the others.\n\nClass methods that end in a bang `!` automatically are registered as cli commands. If you wish to add a command just add a bang-method and you should be done.\n\nFeel free to open issues for questions / ideas etc that you don't know how to work on or have no time working on as well as actual bugs and quirky etc. I'm sure there are some.\n\nPlease fork and make a pull request if you want to contribute.\n\n## Examples\n\nCheck out the examples folder, or [this repository](https://github.com/pachacamac/JingExampleSite) for a full fledged example that is directly deployable to netlify.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/pachacamac/jing.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachacamac%2Fjing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpachacamac%2Fjing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachacamac%2Fjing/lists"}