π
Coupage
Why is it called Coupage?
Confluence Unique Page Generator
π‘ Installing
$ git clone https://github.com/Kota4822/Coupage.git
$ cd Coupage
$ make
Make resources directory
$ cd "outputPath"
$ coupage init
Resources
.coupage
βββ templates
β βββ sample
β β βββ page_config.yml
β β βββ template.tpl
β βββ templateA
β βββ page_config.yml
β βββ template.tpl
βββ user_config.yml(Optional)
- user_config.yml
- id:
confluence user id
- apiKey:
confluence user APIKey
- id:
- .coupage/templates/
templateName
- Template name to use. As many as you like.
templateName
/page_config.yml- url:
target confluence base url
- default_space_key:
confluence spaceKey to generate page(optional)
- default_ancestors_key:
confluence ancestorsKey to generate page(optional)
- url:
templateName
/template.tpl- Confluence PageTemplate. (Confluence REST API examples)
- In the template, write as
{{ReplaceKey}}
. Replacing according to the parameters.
$ coupage ReplaceKey:Value aaa:bbb ...
π Usage
Generate page
$ coupage run pageTitle:XXX templateName:XXX
-
Requied Parameter
-
pageTitle:page title
-
templateName:template name to use
-
-
Optional Parrameter
- userId:
Confluence User Id
- apiKey:
Confluence User ApiKey
- spaceKey:
spaceKey to output(optionalοΌIf not in the parameter, use page_config.yml.)
- ancestorsKey:
ancestorsKey to output(optionalοΌIf not in the parameter, use page_config.yml.)
- template ReplaceKey and Values
- userId: