{"id":29823809,"url":"https://github.com/javier/md_code_extractor","last_synced_at":"2025-10-10T05:45:48.685Z","repository":{"id":240043398,"uuid":"801501617","full_name":"javier/md_code_extractor","owner":"javier","description":"extracts code blocks from markdown files","archived":false,"fork":false,"pushed_at":"2024-05-16T11:29:02.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T02:21:46.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javier.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-05-16T10:59:34.000Z","updated_at":"2024-05-16T11:29:06.000Z","dependencies_parsed_at":"2024-05-16T12:40:12.832Z","dependency_job_id":"b0d37cda-7f9f-4ee9-ab79-fb7de6a69818","html_url":"https://github.com/javier/md_code_extractor","commit_stats":null,"previous_names":["javier/md_code_extractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javier/md_code_extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmd_code_extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmd_code_extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmd_code_extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmd_code_extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javier","download_url":"https://codeload.github.com/javier/md_code_extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javier%2Fmd_code_extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272247469,"owners_count":24899578,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"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":"2025-07-29T02:08:51.021Z","updated_at":"2025-10-10T05:45:48.594Z","avatar_url":"https://github.com/javier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Extract Code Blocks from Markdown/Docusaurus Project\n\nThis Python script extracts all code blocks from a Markdown or Docusaurus project and outputs them to a specified markdown file. The code blocks are sorted by file paths in alphabetical order for easier navigation.\n\n## Features\n\n- Extracts fenced code blocks (`` ``` ``).\n- Outputs extracted code blocks to a specified markdown file.\n- Sorts files and folders alphabetically for easy navigation.\n\n## Requirements\n\n- Python 3.6 or higher\n\n## Usage\n\n1. Clone the repository to your local machine.\n    ```sh\n    git clone https://github.com/javier/md_code_extractor.git\n    cd md_code_extractor\n    ```\n\n2. Run the script, providing the path to the Docusaurus repository and the desired output markdown file name as arguments:\n    ```sh\n    python md_code_extractor.py \u003cproject_path\u003e \u003coutput_file.md\u003e\n    ```\n\n    Replace `\u003cproject_path\u003e` with the path to the project and `\u003coutput_file.md\u003e` with the desired name of the output markdown file.\n\n## Example\n\n```sh\npython md_code_extractor.py /path/to/your/docs extracted_code_blocks.md\n```\n\nThis command will create a `extracted_code_blocks.md` file containing all code blocks from the specified project.\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavier%2Fmd_code_extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavier%2Fmd_code_extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavier%2Fmd_code_extractor/lists"}