Here is the use case: imagine you have a repository with a lot of .md files. These .md files have references to each other, and now you want to migrate or synchronize these .md files with confluence.
Here is how you can do it by specifying the following parameter (there could be many --pages-map parameters):
Find all links to .md files i.e. <a href="https://bitbucket/repo/file.md">Title</a>.
Match these links to values specified in --pages-map parameter i.e. all <a href="https://bitbucket/repo/.."> which starts from https://bitbucket/repo/path will be matched.
Try to find local representation of files by appending rest of link to second part of --pages-map i.e. https://bitbucket/repo/file.md will become C:\document\repo/file.md
Read the first line (i.e. file title)
Find confluence page by title
Replace link with confluence link
Introduced parameters:
Name
Description
--pages-map
can be specified multiple times, each time it specifies a separate url to local directory map
P.S. This PR also includes changes from #21 and #22 (sorry for such a burden).
Here is the use case: imagine you have a repository with a lot of
.md
files. These.md
files have references to each other, and now you want to migrate or synchronize these.md
files with confluence.Here is how you can do it by specifying the following parameter (there could be many
--pages-map
parameters):This will trigger the following routine:
.md
files i.e.<a href="https://bitbucket/repo/file.md">Title</a>
.--pages-map
parameter i.e. all<a href="https://bitbucket/repo/..">
which starts fromhttps://bitbucket/repo/path
will be matched.--pages-map
i.e.https://bitbucket/repo/file.md
will becomeC:\document\repo/file.md
P.S. This PR also includes changes from #21 and #22 (sorry for such a burden).