Skip to content

Commit 3e39b6c

Browse files
committed
docs: add about and example to readme
1 parent d7d9a64 commit 3e39b6c

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

readme.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# node-confluence-content-id-parser
22

3+
## About
4+
5+
This project provides a Command Line Interface (CLI) for automatic data processing
6+
of Atlassian Confluence instances e.g. for localization purposes.
7+
8+
The `node-confluence-content-id-parser` requests a confluence instance with
9+
credentials and crawls all tables of a destination page. Afterwards all tables
10+
will be broke up into maps of language identifiers and string identifiers. All
11+
maps will be merged in the end and encoded into a JavaScript Object Notation
12+
string which will be persisted into a file named after its corresponding
13+
language identifier.
14+
15+
### Example
16+
17+
Your confluence instance hosts a page e.g. `Translations for our landingpage`
18+
with the page identifier `123456`. The page contains a table, e.g.
19+
20+
| String-Id | en | es |
21+
| ------------ | ----------------------- | --------------------------------- |
22+
| headline | Welcome to our page | Bienvenido a nuestra página |
23+
| sub-headline | This is our landingpage | Esta es nuestra página de destino |
24+
25+
When invoking the tool with the arguments
26+
27+
- --confluence-base-uri=https://ourcompanies.confluence
28+
- --confluence-page-id=123456
29+
- --confluence-username=MyUsername
30+
- --confluence-user-token=MyPassword
31+
- --recognition-pattern=^String-Id$
32+
- --output-directory=i18n
33+
34+
There will be two files in the `i18n` directory:
35+
36+
- en.json
37+
- es.json
38+
39+
With the following contents:
40+
41+
_en.json_
42+
43+
```
44+
json
45+
{
46+
"headline": "Welcome to our page",
47+
"sub-headline": "This is our landingpage"
48+
}
49+
```
50+
51+
_es.json_
52+
53+
```
54+
json
55+
{
56+
"headline": "Bienvenido a nuestra página",
57+
"sub-headline": "Esta es nuestra página de destino"
58+
}
59+
```
60+
361
## Installation
462

563
```shell

0 commit comments

Comments
 (0)