{"id":16798812,"url":"https://github.com/simonguo/docsify-docx-converter","last_synced_at":"2025-04-11T00:14:00.281Z","repository":{"id":154744923,"uuid":"632336178","full_name":"simonguo/docsify-docx-converter","owner":"simonguo","description":"A tool for building docx based on your docsify project","archived":false,"fork":false,"pushed_at":"2024-09-25T06:42:54.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T00:13:49.832Z","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/simonguo.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,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T07:44:52.000Z","updated_at":"2024-09-25T06:42:20.000Z","dependencies_parsed_at":"2025-02-18T08:32:31.134Z","dependency_job_id":"a4d39ad2-f174-472f-8a09-9ff4cdf081d2","html_url":"https://github.com/simonguo/docsify-docx-converter","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/simonguo%2Fdocsify-docx-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fdocsify-docx-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fdocsify-docx-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fdocsify-docx-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonguo","download_url":"https://codeload.github.com/simonguo/docsify-docx-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317730,"owners_count":21083530,"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-10-13T09:26:58.608Z","updated_at":"2025-04-11T00:14:00.273Z","avatar_url":"https://github.com/simonguo.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# docsify-docx-converter\n\n📖 A tool for building docx based on your docsify project\n\n## Install\n\n```\nnpm install --save-dev docsify-docx-converter\n\n```\n\n## Usage\n\nCreate config file `.docsifytodocxrc.js` in your project root directory.\n\n```js\nmodule.exports = {\n  /** \"table of contents\" file path */\n  contents: '_sidebar.md',\n\n  /** Whether to enable title degradation, if enabled, replace \u003ch1\u003e with \u003ch2\u003e, \u003ch2\u003e with \u003ch3\u003e, and so on. */\n  titleDowngrade: true,\n\n  /** Document root directory */\n  rootPath: './docs',\n\n  /** Path where docx will stored */\n  pathToPublic: './README.docx',\n\n  /**\n   * The maximum width of the image in the document, and the height will be adaptive according to the width.\n   * The default is 468, which is the maximum width of a word document.\n   */\n  imgMaxWidth: 468,\n\n  /** The title of the cover page. */\n  coverTitle: null,\n\n  /** The style of the body. */\n  bodyStyles: 'font-family: 微软雅黑;',\n\n  /** landscape or portrait (default) */\n  orientation: 'portrait',\n\n  /** map of margin sizes\n   * expressed in twentieths of point, see WordprocessingML documentation for details):\n   * http://officeopenxml.com/WPSectionPgMar.php\n   * */\n  margins: {}\n};\n```\n\nAdd script into package.json:\n\n```\n{\n  \"scripts\": {\n    \"convert\": \"node_modules/.bin/docsify-docx-converter\"\n  }\n}\n```\n\nRun converter:\n\n```\nnpm run convert\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fdocsify-docx-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonguo%2Fdocsify-docx-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fdocsify-docx-converter/lists"}