arello-mobile / confluence-publisher Goto Github PK
View Code? Open in Web Editor NEWTool for publishing Sphinx generated documents to Confluence
License: MIT License
Tool for publishing Sphinx generated documents to Confluence
License: MIT License
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:
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 ?
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
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.
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
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")
Am happy to join as a collaborator to help develop and maintain this package.
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
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?
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.