Giter Club home page Giter Club logo

confluence-publisher's People

Contributors

idlesign avatar ikeeip avatar jfaith-impinj avatar laqie avatar n-elloco avatar phobos1 avatar rastaman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

confluence-publisher's Issues

Compatibility with Confluence cloud (on-demand)

Is the published compatible with the current version of Confluence?

As of today our cloud version of Confluence reports version 1000.223.0

Also it seems really unclear on how can someone authenticate. For example we enabled Google OAuth so use off password would not be possible. I tried to look for a place to obtain a token from the web interface but failed to.

Note: if you do not have access to a cloud hosted version of Confluence I can arrange this for you. Atlassian was keen enough to provide me with a free version of hosted Jira+Confluence which I am using for testing Python-JIRA library via Travis CI. That instance is running at https://pycontribs.atlassian.net

Bump release ?

Pip version is not Python3 compatible due to iteritems in YAML serializer although I see master already has fix for that using standard, not memory-wise OrderedDict.items()

Is something blocking release ?

conf_page_maker throws unhandled exception

I'm calling conf_page_maker like

conf_page_maker publisher.yml --user [email protected] -pid 12345123

My publisher.yml config file:

version: 2
url: https://xy.atlassian.net/wiki
base_dir: _build/json/
pages:
- title: test me

As you can see, I'm trying to run this on Atlassian Cloud.
However, during execution I get the following exception:

Traceback (most recent call last):
...
  File "/home/daniel/workspace/envs/sphinx/lib/python3.5/site-packages/conf_publisher/confluence_api.py", line 64, in _request
    ret = r.json()
  File "/home/daniel/workspace/envs/sphinx/lib/python3.5/site-packages/requests/models.py", line 866, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I'm not sure if this error is thrown, because my config is a mess and the script can't open a file and therefore sends 0 bytes. Or if confluence is sending back 0 bytes.

Any ideas?

ValueError: No JSON object could be decoded

Maybe someone can help me out, I'm getting a ValueError: No JSON object could be decoded.

I'm just testing a basic publication of the fjson output of the sphinx-confluence output, but I can't seem to get it to work. I can do curl commands to our confluence server and that all works fine, I get the right json back and everything.

We do use a cloud version of confluence and Jira, maybe there are some incompatibility problems? Ow, and I also tried #8 changes from @rastaman

Any ideas?

my config

{
  version: 2,
  url: "https://xxxxx.atlassian.net/wiki",
  base_dir: "/documents/build/json",
  pages: [
    {
      id: 612335,
      source: "impediments"
    }
  ]
}

The whole error message:

Traceback (most recent call last):
  File "/usr/local/bin/conf_publisher", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/publish.py", line 190, in main
    publisher.publish(args.force, args.watermark, args.hold_titles)
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/publish.py", line 118, in publish
    pages_to_update = self._pages_to_update(force, watermark, hold_titles)
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/publish.py", line 94, in _pages_to_update
    current_page = self._page_manager.load(page_config.id)
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/confluence.py", line 84, in load
    data = self._api.get_content(content_id, 'ancestors,version,space,body.storage')
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/confluence_api.py", line 112, in get_content
    ret = self._get(url, params=params)
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/confluence_api.py", line 41, in _get
    return self._request(requests.get, url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/conf_publisher/confluence_api.py", line 64, in _request
    ret = r.json()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 866, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")

Confluence 6.x support?

Currently, we are using Confluence 6.2 with no apparent issues with confluence-publisher. I was wondering if there are any known issues with 6.x or plans to have it officially supported and updated in the readme.

Problem with create page

Hello, I am trying to use your package confluence-publisher. But I have some problems
When I want to create a new page I got nothing?
May be, I don't know how to right the config file:

In my config file I wrote:
version: 2
url: http://appsiege.xxxxxx.fr:97/confluence/
base_dir: /build/json

but on the section page, I don't know how to right it because I just have the number of my parent page and I want to create the others pages.

Can you help me please?

Thank you

HTML support

Hi,

I am trying to publish a documentation, generated with Sphinx in "html" format,
which is supposed to be supported according to the "confluence-publisher" documentation

More precisely:

  • there's an "index.html" located in "C:\DocDir"
  • I add a line "source: C:\DocDir\index" to the config.yaml

What I get is an error
IOError: [Errno 2] No such file or directory: C:\DocDir\index.fjson

Does it mean that only "fjson" documentation is currently supported ?

create config.yml from source

Hi,
is there a possibility to automatically create the config.yml file from the fjson files created with sphinx-confluence?
After that the config.yml could be used with conf_page_maker.

Thanks, Mark

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.