Convert reStructuredText to Confluence markup
Supported directives
bullet list
enumerated list
image, figure, confluence image galleries
definition list (with classifiers)
simple and grid tables
block quote
text effect
strong
emphasis
monospace
code blocks
links
admonitions
info
note
tip
warning
field lists
line blocks (except nested ones)
meta directives
substitutions
Additional features
Excerpts
When using the command line option --excerpt, your confluence code will mark up the first paragraph as excerpt.
Image galleries
Images and figures with class names that begin with gallery- form a gallery:
.. image:: cat.jpg
:class: gallery-1
.. image:: dog.jpg
:class: gallery-1
.. figure:: horse.jpg
:class: gallery-2
:scale: 50%
This creates two galleries: One with cat and dog, the other one with the horse picture only. All attributes are ignored on gallery images.
Gallery-classed images are converted to {gallery:include=a.jpg,b.jpg} Confluence markup.
Usage
./rst2confluence.py /path/to/file.rst
Installation
From git checkout:
$ sudo ./setup.py install
Without a git checkout:
$ pip install rst2confluence
Dependencies
python-docutils
colordiff (for running the tests)
Tests
We have some examples how rst2confluence should behave.
Check if it does what it should:
./run-tests.sh
Run a single test:
./run-test.sh test/figure.rst
Other tools
Use deploy-rst to automatically deploy rST documents into confluence.
Releasing a new version
Fill ChangeLog
Update version in setup.py
Create release tag
Upload to pip:
$ ./setup.py sdist upload
Metadata
Release files for rst2confluence 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rst2confluence-0.6.0.tar.gz | 6.1 kB | Without provenance | Details for rst2confluence-0.6.0.tar.gz |
Release files / rst2confluence-0.6.0.tar.gz
| Download URL | rst2confluence-0.6.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68c0554422db71c4f3364fa24861df8ded5dd4637ee5c42a5e9f645fbbfab6d8
|
|
BLAKE2b-256 checksum How to use checksums |
4fedfa64a680a1217dfb46fcb7108db384a2ada19cf87321234b44683d5f91e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rst2confluence 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.