{"id":21344125,"url":"https://github.com/codeclou/advanced-codeblocks-cloud-migration-helper","last_synced_at":"2025-07-03T13:36:32.660Z","repository":{"id":214680037,"uuid":"727358676","full_name":"codeclou/advanced-codeblocks-cloud-migration-helper","owner":"codeclou","description":"Convert Server/DataCenter Confluence pages in storage format to their forge Cloud App equivalent ","archived":false,"fork":false,"pushed_at":"2023-12-30T20:39:07.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T03:23:18.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/codeclou.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":"2023-12-04T17:51:28.000Z","updated_at":"2025-01-09T10:15:55.000Z","dependencies_parsed_at":"2023-12-29T22:25:13.215Z","dependency_job_id":"b504d22a-23f4-4551-93df-300157a0ce21","html_url":"https://github.com/codeclou/advanced-codeblocks-cloud-migration-helper","commit_stats":null,"previous_names":["codeclou/advanced-codeblocks-cloud-migration-helper"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codeclou/advanced-codeblocks-cloud-migration-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclou%2Fadvanced-codeblocks-cloud-migration-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclou%2Fadvanced-codeblocks-cloud-migration-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclou%2Fadvanced-codeblocks-cloud-migration-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclou%2Fadvanced-codeblocks-cloud-migration-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeclou","download_url":"https://codeload.github.com/codeclou/advanced-codeblocks-cloud-migration-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclou%2Fadvanced-codeblocks-cloud-migration-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263335948,"owners_count":23450951,"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-22T01:17:18.066Z","updated_at":"2025-07-03T13:36:32.634Z","avatar_url":"https://github.com/codeclou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/12599965/56864901-501d8b80-69c8-11e9-9e87-c7e687615a0a.png\" align=\"right\" /\u003e\n\n# Advanced Codeblocks for Confluence\n\n## :rocket: Cloud Migration Helper\n\nThis migration helper transforms a Server/DataCenter Confluence page in \u003ca href=\"https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html\"\u003eStorage Format\u003c/a\u003e to\nCloud Confluence Storage Format. It will convert the \u003ca href=\"https://marketplace.atlassian.com/apps/1211159/advanced-codeblocks-for-confluence?hosting=datacenter\u0026tab=overview\"\u003eAdvanced Codeblocks for Confluence\u003c/a\u003e macros to their Cloud forge app equivalent.\n\n- :book: **[Read the complete migration guide here](https://codeclou.io/advanced-codeblocks-for-confluence/cloud/admin-guide/migration/)**\n\nFor example a Data Center Confluence page containing the Advanced Codeblocks Single Macro will look like this:\n\n```\n\u003cp\u003esome text\u003c/p\u003e\n\u003cac:structured-macro ac:name=\"advanced-single-codeblock-macro\" ac:schema-version=\"1\" ac:macro-id=\"0a76fb27-ee70-41a4-bead-063a0908804d\"\u003e\n  \u003cac:parameter ac:name=\"enableddl\"\u003etrue\u003c/ac:parameter\u003e\n  \u003cac:parameter ac:name=\"theme\"\u003elight-mono\u003c/ac:parameter\u003e\n  \u003cac:parameter ac:name=\"lang\"\u003eBash\u003c/ac:parameter\u003e\n  \u003cac:parameter ac:name=\"globaltitle\"\u003etest\u003c/ac:parameter\u003e\n  \u003cac:plain-text-body\u003e\u003c![CDATA[echo \"foo\"]]\u003e\u003c/ac:plain-text-body\u003e\n\u003c/ac:structured-macro\u003e\n```\n\nThe Cloud App equivalent will look like this:\n\n```\n\u003cp\u003esome text\u003c/p\u003e\n\u003cac:adf-extension\u003e\n  \u003cac:adf-node type=\"extension\"\u003e\n    \u003cac:adf-attribute key=\"extension-type\"\u003ecom.atlassian.ecosystem\u003c/ac:adf-attribute\u003e\n    \u003cac:adf-attribute key=\"extension-key\"\u003e9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f/static/advancedsinglecodeblockmacro\u003c/ac:adf-attribute\u003e\n    \u003cac:adf-attribute key=\"parameters\"\u003e\n      \u003cac:adf-parameter key=\"local-id\"\u003e0658e817-aaf6-7e1d-8000-36a917095fd3\u003c/ac:adf-parameter\u003e\n      \u003cac:adf-parameter key=\"extension-id\"\u003eari:cloud:ecosystem::extension/9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f/static/advancedsinglecodeblockmacro\u003c/ac:adf-parameter\u003e\n      \u003cac:adf-parameter key=\"extension-title\"\u003eAdvanced Codeblocks Single\u003c/ac:adf-parameter\u003e\n      \u003cac:adf-parameter key=\"guest-params\"\u003e\n        \u003cac:adf-parameter key=\"globaltitle\"\u003etest\u003c/ac:adf-parameter\u003e\n        \u003cac:adf-parameter key=\"code\"\u003eecho \"foo\"\u003c/ac:adf-parameter\u003e\n        \u003cac:adf-parameter key=\"enableddl\"\u003e\n          \u003cac:adf-parameter-value\u003etrue\u003c/ac:adf-parameter-value\u003e\n        \u003c/ac:adf-parameter\u003e\n        \u003cac:adf-parameter key=\"theme\"\u003elight-mono\u003c/ac:adf-parameter\u003e\n        \u003cac:adf-parameter key=\"lang\"\u003eBash\u003c/ac:adf-parameter\u003e\n      \u003c/ac:adf-parameter\u003e\n    \u003c/ac:adf-attribute\u003e\n    \u003cac:adf-attribute key=\"text\"\u003eAdvanced Codeblocks Single\u003c/ac:adf-attribute\u003e\n    \u003cac:adf-attribute key=\"layout\"\u003edefault\u003c/ac:adf-attribute\u003e\n    \u003cac:adf-attribute key=\"local-id\"\u003e0658e817-aaf6-7d86-8000-4dd60f28b018\u003c/ac:adf-attribute\u003e\n  \u003c/ac:adf-node\u003e\n  \u003cac:adf-fallback\u003e\n    \u003c!-- shortened ... --\u003e\n  \u003c/ac:adf-fallback\u003e\n\u003c/ac:adf-extension\u003e\n```\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n### Installation\n\n```\ngit clone https://github.com/codeclou/advanced-codeblocks-cloud-migration-helper.git\ncd advanced-codeblocks-cloud-migration-helper\npython3 -m pip install -r requirements.txt\n```\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n### Disclaimer\n\n**:bangbang: Please check the output storage file for errors before submitting it into your Confluence page. codeclou GmbH is not responsible for damages to your Confluence installation and/or content. Please test the output on a test instance first. This tool is provided as an example on how to transform your storage format from server to cloud. It might need further adaption to your specific needs.**\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n### Run transformer\n\nThe extension key must be extracted from the cloud page, see the documentation for details.\n\n```\n# single macro\npython3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \\\n                 -if ./lib/input/ac-single-test1.input.storage \\\n                 -of ./lib/output/ac-single-test1.output.storage\n\n# multi macro\npython3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \\\n                 -if ./lib/input/ac-multi-test1.input.storage \\\n                 -of ./lib/output/ac-multi-test1.output.storage\n\n# multi remote macro\npython3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \\\n                 -if ./lib/input/ac-remote-test1.input.storage \\\n                 -of ./lib/output/ac-remote-test1.output.storage\n```\n\nWill produce an output like this:\n\n```\n======================================\n ADVANCED CODEBLOCKS MIGRATION HELPER\n======================================\n\nextension key part: 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f\n\nSTART \u003e reading storage format file from: ./lib/input/ac-single-test1.input.storage\n\n\u003e\u003e advanced-single-codeblock-macro\n    macro param lang        : Bash\n    macro param enableddl   : true\n    macro param globaltitle : test\n    macro param theme       : light-mono\n    macro body (shortened)  : echo \"foo\"\n    macro attr local id     : 0658e829-ab6b-7f11-8000-c612fa7cbd38\n    macro param local id    : 0658e829-ab6b-7fa8-8000-1b5180ffb326\n\nDONE \u003e written transformed storage format to: ./lib/output/ac-single-test1.output.storage\n```\n\nThe local ids will be auto generated using uuid v7. The classic server/DC macro-id is not used in Cloud and will be discarded.\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n### Run tests\n\nyou might need to add pytest to $PATH first, then:\n\n```\npytest\n```\n\n---\n\n\u0026nbsp;\n\n### License\n\n[MIT](./LICENSE) © [codeclou GmbH](https://github.com/codeclou)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclou%2Fadvanced-codeblocks-cloud-migration-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeclou%2Fadvanced-codeblocks-cloud-migration-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclou%2Fadvanced-codeblocks-cloud-migration-helper/lists"}