dernorberto / confluenceDumpWithPython

Download Confluence pages including attachments and emoticons using Atlassian API and Python
MIT License
14 stars 6 forks source link

Publication structure #10

Open gbebie-valerian-antidot opened 4 months ago

gbebie-valerian-antidot commented 4 months ago

Among the improvements, I see this one: "Create an index of the pages to use as a TOC."

I have been able to adapt the script to generate an index which includes some info about the author, date and space key, as it is generated from a space export in Confluence. However, I don't have a clue about the structure itself, what is retained to make sure the structure from an index.html could be reproduced?

dernorberto commented 4 months ago

thanks for your interest.

each exported page gets space and parentpage data put in its headers:

                'page_id' : n['id'],
                'pageTitle' : n['title'],
                'parentId' : n['parentId'],
                'space_id' : n['spaceId'],

I'd need to run the script to refresh my memory.

ref: https://github.com/dernorberto/confluenceDumpWithPython/blob/feede8eead8b7c8539681f255a0742af616b6d83/confluenceDumpWithPython.py#L149