{"id":13716129,"url":"https://github.com/hrbrmstr/ohq2quarto","last_synced_at":"2025-03-21T12:30:55.147Z","repository":{"id":56868261,"uuid":"526724365","full_name":"hrbrmstr/ohq2quarto","owner":"hrbrmstr","description":"Save an Observable HQ Notebook to a Quarto project","archived":false,"fork":false,"pushed_at":"2022-10-07T10:41:20.000Z","size":125,"stargazers_count":28,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T01:11:13.723Z","etag":null,"topics":["observable-notebook","observablehq","quarto","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hrbrmstr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-19T19:11:18.000Z","updated_at":"2024-12-28T01:20:56.000Z","dependencies_parsed_at":"2022-08-20T06:10:16.847Z","dependency_job_id":null,"html_url":"https://github.com/hrbrmstr/ohq2quarto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fohq2quarto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fohq2quarto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fohq2quarto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fohq2quarto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/ohq2quarto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799215,"owners_count":20512206,"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":["observable-notebook","observablehq","quarto","rust"],"created_at":"2024-08-03T00:01:07.355Z","updated_at":"2025-03-21T12:30:54.719Z","avatar_url":"https://github.com/hrbrmstr.png","language":"Rust","funding_links":[],"categories":["Libraries/Packages/Scripts"],"sub_categories":["Miscellaneous"],"readme":"# ohq2quarto\n\nSave an [Observable HQ](https://observablehq.com) Notebook to a [Quarto](https://quarto.org/) project.\n\nGiven an Observable Notebook reference (full URL or `@user/slug`) and an output directory, this utility will make a Quarto project directory, build `qmd` \u0026 `_quarto.yml` files and download all `FileAttachment`s.\n\n## TODO\n\n- [ ] [Handle Collections](https://github.com/hrbrmstr/ohq2quarto/issues/2)\n- [ ] [Make this a lib+bin](https://github.com/hrbrmstr/ohq2quarto/issues/3)\n- [ ] [Publish on crates.io](https://github.com/hrbrmstr/ohq2quarto/issues/4)\n\n## Getting `ohq2quarto`\n\nThe [releases](https://github.com/hrbrmstr/ohq2quarto/releases) section has pre-built binaries for Linux (x86\\_64 \u0026 arm64), Windows and macOS (which is also a signed universal binary).\n\nDIY folks can:\n\n```shell\n$ cargo install --git https://github.com/hrbrmstr/ohq2quarto --branch batman # install it (~/.cargo/bin/ohq2quarto)\n```\n\n### Building/Using\n\n```shell\n$ cargo build # build it after cloning\n```\n\n````shell\n$ cargo run -- --ohq-ref @hrbrmstr/just-one-more-thing --output-dir ./examples --verbose # run it after cloning\n    Finished dev [unoptimized + debuginfo] target(s) in 0.08s\n     Running `target/debug/ohq2quarto --ohq-ref '@hrbrmstr/just-one-more-thing' --output-dir ./examples --verbose`\n      Title: Just One More Thing\n       Slug: just-one-more-thing\n  Author(s): boB Rudis\n  Copyright: Copyright 2022 boB Rudis\n    License: \"mit\"\n Observable: https://observablehq.com/@hrbrmstr/just-one-more-thing\n\n$ tree examples\n├── _quarto.yml\n├── columbo_data.csv\n└── just-one-more-thing.qmd\n\n$ head -16 examples/just-one-more-thing.qmd\n---\ntitle: 'Just One More Thing'\nauthor: 'boB Rudis'\nformat: html\necho: false\nobservable: 'https://observablehq.com/@hrbrmstr/just-one-more-thing'\n---\n\n```{ojs}\nmd`# Just One More Thing`\n```\n\n```{ojs}\nmd`This week, Chris Holmes tweeted something super dangerous:`\n```\n````\n\n```shell\n$ cargo run -- --help\n    Finished dev [unoptimized + debuginfo] target(s) in 0.08s\n     Running `target/debug/ohq2quarto --help`\nohq2quarto 0.1.0\nboB Rudis (@hrbrmstr)\nGiven an Observable Notebook reference, create a Quarto project with all FileAttachments\n\nUSAGE:\n    ohq2quarto [OPTIONS] --ohq-ref \u003cOHQ_REF\u003e --output-dir \u003cOUTPUT_DIR\u003e\n\nOPTIONS:\n        --echo                       turn cell echo on in the Quarto document (default is to not\n                                     echo)\n        --filename \u003cFILENAME\u003e        optional filename for the main Quarto document (will be taken\n                                     from the slug in `ohq_ref`; e.g. \"just-the-facts\" from the\n                                     example param)\n    -h, --help                       Print help information\n        --ohq-ref \u003cOHQ_REF\u003e          an Observable notebook short reference\n                                     (\"@hrbrmstr/just-the-facts\") or a full URL\n        --output-dir \u003cOUTPUT_DIR\u003e    directory to place Quarto project and files (will be created if\n                                     it does not exist)\n    -V, --version                    Print version information\n        --verbose                    Print Notebook metadata during processing\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fohq2quarto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Fohq2quarto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fohq2quarto/lists"}