Giter VIP home page Giter VIP logo

Comments (4)

hunyadi avatar hunyadi commented on August 14, 2024 1

The switch -r (root page) is a contributed feature. I have tested it with a couple of examples, and the code looked OK. However, if we proceed top to bottom, creating the topmost page first, I believe the implementation could be extended to tackle directory hierarchies.

from md2conf.

hunyadi avatar hunyadi commented on August 14, 2024

That's strange. Can you share some context, specifically, a minimal set of steps to reproduce the issue? When a Markdown file to be exported has no Confluence page ID associated with it via Markdown comments, the function get_or_create_page would look up the page ID based on the page title, and if no match is found, invoke the function create_page to create a child page under the root page (set with -r). However, from what you write, it seems as if this feature is not working as expected under some circumstances.

from md2conf.

pavelkestefran avatar pavelkestefran commented on August 14, 2024

Hello everyone 👋

I believe this issue is about creating hierarchies deeper than just one common ancestor provided by -r

This is something that is not supported as per my brief checks.


Currently it doesn't matter what is the structure of the directory containing md files.

See screenshot below sample/childpages

Screenshot 2024-02-19 at 22 51 34

After running

python3 -m md2conf -p "/" -d confluence.example.com -s "SPACE" -r "406278878" sample/childpages/

the produced confluence pages hierarchy is flat under common ancerstor

Screenshot 2024-02-19 at 22 50 55

rather than something like this

Screenshot 2024-02-19 at 22 52 20

@gbava Please correct me if Im wrong.


This is interesting to me as well. Do you consider to include something like this or would you invite such contribution?

from md2conf.

ojacques avatar ojacques commented on August 14, 2024

Note: there is an in-progress fix in the dev branch.

from md2conf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.