{"id":19032681,"url":"https://github.com/bitbravo/diyar-contentful","last_synced_at":"2026-06-23T11:32:42.525Z","repository":{"id":120974935,"uuid":"201308078","full_name":"BitBravo/diyar-contentful","owner":"BitBravo","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-09T22:15:41.000Z","size":1302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T20:36:43.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BitBravo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-08-08T17:41:25.000Z","updated_at":"2020-10-13T20:47:40.000Z","dependencies_parsed_at":"2024-02-01T12:43:44.538Z","dependency_job_id":null,"html_url":"https://github.com/BitBravo/diyar-contentful","commit_stats":null,"previous_names":["bitbravo/diyar-contentful"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BitBravo/diyar-contentful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBravo%2Fdiyar-contentful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBravo%2Fdiyar-contentful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBravo%2Fdiyar-contentful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBravo%2Fdiyar-contentful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitBravo","download_url":"https://codeload.github.com/BitBravo/diyar-contentful/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitBravo%2Fdiyar-contentful/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34686727,"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-23T02:00:07.161Z","response_time":65,"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":[],"created_at":"2024-11-08T21:30:11.259Z","updated_at":"2026-06-23T11:32:42.508Z","avatar_url":"https://github.com/BitBravo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diyar Al Muharraq exporter\nExport diyar contentful content into markdown/PDF.\n\n### Requirements\n\n*  [Node.js](http://nodejs.org): v10.x.\n*  [Contentful](https://www.contentful.com/): Credentials for contentful diyar account.\n\n### Features\n\n* Console utility which exports all Diyar content into .docx document (excluding images and similar assets).\n* As intermedite step, between contentful content and .docx, utility will generate equivalent markdown document.\n\n### How to proceed\n1.  Clone.\n2.  Run: `npm i` to install the dependencies\n2.  Avail contenful credentials which allow access to Diyar content.\n3.  Install [contentful CLI](https://github.com/contentful/contentful-cli). This will run as CLI tool.\n4.  Install [Pandoc](https://pandoc.org/): universal document converter (this will convert markdown to .docx).\n5.  Invoke `contentful login` from console. This will open browser asking for contentful credentials to be used.\n6.  Browser will reply with contentful access token. Make note of it.\n7.  Setup $COTOKEN environment variable being equal to contentful access token from previous point.\n8.  Run: `npm run all`. This will:\n*   Fetch content from contentful as ./dist/contextpo.json,\n*   Parse content into markdown (./dist/output.md),\n*   Apply pandoc to generate .docx from markdown (see previous).\n9.  Tweak code or npm scripts if required.\n10.  Make coffee, listen to music and generally be happy.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbravo%2Fdiyar-contentful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbravo%2Fdiyar-contentful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbravo%2Fdiyar-contentful/lists"}