This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+web-services/confluence/README.org

70 lines
2.4 KiB
Org Mode
Raw Normal View History

2016-11-18 14:40:51 +00:00
#+TITLE: Confluence layer
2019-05-02 21:49:30 +00:00
#+TAGS: layer|web service
2016-11-18 14:40:51 +00:00
[[file:img/confluence.png]]
2018-09-19 03:54:47 +00:00
* Table of Contents :TOC_4_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#features][Features:]]
2017-05-22 14:16:12 +00:00
- [[#install][Install]]
- [[#layer][Layer]]
- [[#configuration][Configuration]]
2019-03-23 12:19:52 +00:00
- [[#about-xml-and-wiki-formats][About xml and wiki formats]]
2017-05-22 14:16:12 +00:00
- [[#key-bindings][Key bindings]]
- [[#confluence-page][Confluence page]]
- [[#org][Org]]
2016-11-18 14:40:51 +00:00
* Description
This layer adds support for Atlassian [[https://www.atlassian.com/software/confluence][Confluence]].
** Features:
- Creating/editing of Confluence pages
- Exporting of org buffers to Confluence =wiki= format
2016-11-18 14:40:51 +00:00
* Install
** Layer
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =confluence= to the existing =dotspacemacs-configuration-layers= list in
this file.
* Configuration
Define the variable =confluence-url= to point on your Confluence server
=xmlrpc= endpoint.
#+BEGIN_SRC emacs-lisp
2018-09-19 03:54:47 +00:00
(setq confluence-url "https://<host>/confluence/rpc/xmlrpc")
2016-11-18 14:40:51 +00:00
#+END_SRC
To be able to convert from =xml= format to the =wiki= format you need to
install the tool =xsltproc=.
2019-03-23 12:19:52 +00:00
* About xml and wiki formats
2016-11-18 14:40:51 +00:00
In confluence version 4.0, Atlassian decided to change the wiki format. They did
away with the =wiki= format and changed the internal document format to =xml=.
By default the new =xml= format is used to edit the files. You can convert a
Confluence page buffer to =wiki= format with ~SPC m TAB~, it will be
automatically converted back to =xml= before sending it to the server.
Note that =xml= to =wiki= conversion is not 100% accurate.
Although it is not recommended you can set the variable
=confluence-xml-convert-to-wiki-on-load= to t in order to automatically
convert =xml= content to =wiki= content on page load.
* Key bindings
** Confluence page
| Key binding | Description |
2016-11-18 14:40:51 +00:00
|-------------+----------------------------------------------------------|
| ~SPC m TAB~ | toggle the content type to =wiki= format or =xml= format |
| ~SPC m s~ | save the buffer on the confluence server as a minor edit |
| ~SPC m S~ | save the buffer on the confluence server as a major edit |
** Org
| Key binding | Description |
2016-11-18 14:40:51 +00:00
|-------------+----------------------------------------------------------------|
| ~SPC m e c~ | in a org buffer, export the buffer to Confluence =wiki= format |