{"id":22739867,"url":"https://github.com/ehnap/vuepress-mdgen-cli","last_synced_at":"2025-04-12T20:53:04.776Z","repository":{"id":267383868,"uuid":"901079393","full_name":"ehnap/vuepress-mdgen-cli","owner":"ehnap","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-11T03:11:35.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T20:53:00.592Z","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/ehnap.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}},"created_at":"2024-12-10T02:16:15.000Z","updated_at":"2024-12-11T03:08:28.000Z","dependencies_parsed_at":"2024-12-10T03:22:52.055Z","dependency_job_id":"104cc47d-f266-4a9e-ae12-3dcb58b2da16","html_url":"https://github.com/ehnap/vuepress-mdgen-cli","commit_stats":null,"previous_names":["ehnap/vuepress-mdgen-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehnap%2Fvuepress-mdgen-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehnap%2Fvuepress-mdgen-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehnap%2Fvuepress-mdgen-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehnap%2Fvuepress-mdgen-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehnap","download_url":"https://codeload.github.com/ehnap/vuepress-mdgen-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631725,"owners_count":21136560,"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-12-10T23:06:27.628Z","updated_at":"2025-04-12T20:53:04.750Z","avatar_url":"https://github.com/ehnap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vuepress-mdgen-cli\n\nA CLI tool to generate Markdown files with your custom meta info by templates for VuePress2 project.\n\n## Install\n\n```shell\nnpm install -g vuepress-mdgen-cli\n```\n\n## Use\n\n```shell\nmdgen \u003cfilename\u003e [templatename]\n```\n\n## Custom Templates\n\nYou can add custom templates in your project directory by creating a `.mdgen-templates` folder. The folder should include a `config.json` file and any additional template files.\n\n### Example\n\n1. Create a `.mdgen-templates` folder at `{You vuepress project root}\\src` or `{You vuepress project root}\\docs`:\n\n2. Add a `config.json` file at the folder to define your templates:\n\n```json\n{\n  \"default\": {\n    \"directory\": \"./src\",\n    \"categories\": \"Uncategorized\",\n    \"template\": \"default.md\"\n  },\n  \"custom-template\": {\n    \"directory\": \"./docs/custom\",\n    \"categories\": \"Custom\",\n    \"template\": \"custom.md\"\n  }\n}\n```\n\n3. Add a Markdown template file, e.g., custom-template.md:\n\n```markdown\n---\ntitle: {{ title }}\ndate: {{ date }}\ncategories: {{ categories }}\n---\n\n# {{ title }}\n\nWelcome to your custom markdown template.\n\n\u003c!-- more --\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehnap%2Fvuepress-mdgen-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehnap%2Fvuepress-mdgen-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehnap%2Fvuepress-mdgen-cli/lists"}