{"id":51054013,"url":"https://github.com/gdiasag/jekyll-database-tables","last_synced_at":"2026-06-22T19:32:40.247Z","repository":{"id":365042041,"uuid":"1265497758","full_name":"gdiasag/jekyll-database-tables","owner":"gdiasag","description":"Database-styled markdown tables for Jekyll","archived":false,"fork":false,"pushed_at":"2026-06-15T15:28:54.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-15T17:08:10.247Z","etag":null,"topics":["jekyll-plugin","nix-flakes","ruby"],"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/gdiasag.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T20:38:17.000Z","updated_at":"2026-06-15T15:31:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gdiasag/jekyll-database-tables","commit_stats":null,"previous_names":["gdiasag/jekyll-database-tables"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gdiasag/jekyll-database-tables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdiasag%2Fjekyll-database-tables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdiasag%2Fjekyll-database-tables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdiasag%2Fjekyll-database-tables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdiasag%2Fjekyll-database-tables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdiasag","download_url":"https://codeload.github.com/gdiasag/jekyll-database-tables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdiasag%2Fjekyll-database-tables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34663524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jekyll-plugin","nix-flakes","ruby"],"created_at":"2026-06-22T19:32:36.818Z","updated_at":"2026-06-22T19:32:40.230Z","avatar_url":"https://github.com/gdiasag.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jekyll-database-tables\n\nRender Markdown pipe tables as databse-styled terminal output inside `\u003cpre\u003e` blocks for [Jekyll](https://jekyllrb.com/).\n\n## Installation\n\nInstall via RubyGems:\n\n``` bash\ngem install jekyll-database-tables\n```\n\nOr add it to your `Gemfile`:\n\n``` ruby\ngem 'jekyll-database-tables'\n```\n\nThen enable the plugin in `_config.yml`:\n\n``` yaml\nplugins:\n  - jekyll-database-tables\n```\n\n## Usage\n\nWrite a standard GFM pipe table in any page or document:\n\n``` markdown\n| Name  | Age |\n|-------|-----|\n| Alice | 30  |\n| Bob   | 25  |\n```\n\nThe plugin replaces it with a `\u003cpre class=\"[db]-table\"\u003e` block during the build:\n\n``` html\nName  | Age\n------+----\nAlice | 30\nBob   | 25\n```\n\nContent inside fenced code blocks is never processed, so example tables in documentation stay intact.\n\n### Configuration\n\nAll options go under the `jekyll_database_tables` key in `_config.yml`:\n\n``` yaml\njekyll_database_tables:\n  formatter: psql\n```\n\n#### Formatters\n\n- **Default (`psql`)**: PostgreSQL-styled terminal output with space-padded columns separated by `|` and a `-+-` divider.\n\nCustom formatters can also be provided (see [Development](#development)).\n\n## Development\n\n### Nix\n\n``` bash\ngit clone https://github.com/gdiasag/jekyll-database-tables\ncd jekyll-database-tables\nnix develop\nrake test\n```\n\nStarting a shell with the build environment provided in `flake.nix` provides you with Ruby, Bundler, and all gem dependencies pinned to exact versions from the lock file, so no `bundle install` needed. Gem executables (e.g. `rake` and `rubocop`) are on `PATH` directly.\n\n### Others\n\nRequires [Ruby] v3.3+ and [Bundler] v2.7+.\n\n``` bash\ngit clone https://github.com/gdiasag/jekyll-database-tables\ncd jekyll-database-tables\nbundle install\nbundle exec rake test\n```\n\n[Ruby]: https://www.ruby-lang.org/en\n[Bundler]: https://bundler.io\n\n### Writing a custom formatter\n\nCreate a subclass of `Jekyll::DatabaseTables::Formatter` implementing `#render`, `#format_row`, and `#separator`. Then register it in `Jekyll::DatabaseTables::Converter#formatter_instance`:\n\n``` ruby\nclass CustomFormatter \u003c Jekyll::DatabaseTables::Formatter\n  include Formatter::Helpers\n\n  def render(table, title: nil)\n    # ...\n  end\n\n  def format_row(cells, widths)\n    # ...\n  end\n\n  def separator(widths)\n    # ...\n  end\nend\n```\n\nUsers select it via `_config.yml`:\n\n``` yaml\njekyll_database_tables:\n  formatter: custom\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdiasag%2Fjekyll-database-tables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdiasag%2Fjekyll-database-tables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdiasag%2Fjekyll-database-tables/lists"}