{"id":19969027,"url":"https://github.com/pwright/pmodel","last_synced_at":"2025-07-25T17:35:46.780Z","repository":{"id":57164913,"uuid":"371966403","full_name":"pwright/pmodel","owner":"pwright","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-30T15:25:32.000Z","size":1190,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T15:48:16.397Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwright.png","metadata":{"files":{"readme":"README.adoc","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":"2021-05-29T12:22:23.000Z","updated_at":"2021-05-30T15:35:00.000Z","dependencies_parsed_at":"2022-09-05T16:30:14.749Z","dependency_job_id":null,"html_url":"https://github.com/pwright/pmodel","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/pwright%2Fpmodel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fpmodel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fpmodel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fpmodel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwright","download_url":"https://codeload.github.com/pwright/pmodel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404220,"owners_count":19957650,"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-11-13T02:48:31.495Z","updated_at":"2025-03-01T17:44:20.284Z","avatar_url":"https://github.com/pwright.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[id='analysing_{context}']\n\n= Analysing AsciiDoc using `pmodel`\n\n[role=\"_abstract\"]\n`pmodel` runs against `adoc` files and produces reports.\n\nTo install pmodel:\n\n`npm i -g @techwriter/pmodel`\n\nTo test an adoc file:\n\n`pmodel \u003cadoc-file\u003e`\n\nExample output shows that all elements exist:\n\n```\n{\n\"filename\":\"README.adoc\",\n\"ID\":\"analysing_{context}\", \n\"heading\":\"Analysing AsciiDoc using `pmodel`\", \n\"abstract\":\"`pmodel` runs against `adoc` files and produces reports.\", \n\"dummy\":0}\n```\n\nTo test a directory:\n\n```\ncd \u003cdir\u003e\npmodel parse\n```\n\nThe `parse` keyword triggers pmodel to recursively search for AsciiDoc files and run the test, output can be queried with link:https://alasql-wiki.readthedocs.io/en/latest/index.html[alasql].\n\n```\npmodel parse \u003e test.json\n\nalasql 'select heading, abstract from JSON(\"test.json\") where abstract is not null'\n```\n\n\n== Tests\n\nThe following tests are performed:\n\n* Capture Level 1 heading. If there are two level 1 headings, both are captured.\n* Capture first line after `[role=\"_ abstract\"]`\n* Capture id value\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwright%2Fpmodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwright%2Fpmodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwright%2Fpmodel/lists"}