Giter Site home page Giter Site logo

confluence-docs-sync's People

Contributors

kevingdialpad avatar

Watchers

 avatar  avatar  avatar  avatar

confluence-docs-sync's Issues

Delete/archive wiki page when source file is deleted

When foo.md is deleted, or renamed bar.md or moved to baz/qux.md, the original page should be deleted as well.

This is tricky because you don't really delete a page in Confluence - you archive it, then it can be deleted from the archive. There are several problems:

  • the user may have permission to archive a page, but not to delete it
  • if the file is added back later and the page is still in the archived state, the script will try to update it (since it already exists), but won't be able to (because an archived page is read-only)

Properly handle relative links

Relative links like ../src/my_source_file.py don't work when seen on wiki. One can navigate to the original page on GitHub and click on the link there, but we could detect these links and figure out how to replace them:

  • for image files, embed the image
  • for files that have an associated Confluence page, add a link to that page
  • for everything else, link to GitHub

Add test framework

It should be fairly easy to add tests for the method that checks whether a file should be synced.

Even better would be to be able to mock the Confluence client and assert on the calls to update_or_create(), for example.

Add mechanism to handle dependency updates

The third-party dependencies are currently pinned to what their latest version was when this project started.

When they release a new version, we need to know about it, check the release notes and the code changes, and update requirements.txt.

Look into Renovate.

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.