开源软件名称(OpenSource Name):justmiles/go-markdown2confluence开源软件地址(OpenSource Url):https://github.com/justmiles/go-markdown2confluence开源编程语言(OpenSource Language):Go 96.5%开源软件介绍(OpenSource Introduction):markdown2confluencePush markdown files to Confluence Cloud InstallationDownload the latest
release
and add the binary in your local
Use with Dockerdocker run justmiles/markdown2confluence --version Build using dockerdocker run -v $PWD:/src -w /src goreleaser/goreleaser --snapshot --skip-publish --rm-dist Environment VariablesFor best practice we recommend you authenticate using an API token.
Usage
ExamplesUpload a local directory of markdown files called markdown2confluence \
--space 'MyTeamSpace' \
markdown-files Upload the same directory, but only those modified in the last 30 minutes. This is particurlarly useful for cron jobs/recurring one-way syncs. markdown2confluence \
--space 'MyTeamSpace' \
--modified-since 30 \
markdown-files Upload a single file markdown2confluence \
--space 'MyTeamSpace' \
markdown-files/test.md Upload a directory of markdown files in space markdown2confluence \
--space 'MyTeamSpace' \
--parent 'API Docs' \
markdown-files Upload a directory of markdown files in space markdown2confluence \
--space 'MyTeamSpace' \
--parent 'API/Docs' \
--exclude '.*generated.*' \
--exclude '.*temp.md' \
markdown-files Upload a directory of markdown files in space markdown2confluence \
--space 'MyTeamSpace' \
--parent 'API Docs' \
--use-document-title \
markdown-files EnhancementsIt is possible to insert Confluence macros using fenced code blocks.
The "language" for this is # Title
```CONFLUENCE-MACRO
name:toc
schema-version:1
minLevel:2
```
## Section 1 In general almost all macros should be possible. The general syntax is: ```CONFLUENCE-MACRO
name:Name of Macro
schema-version:Schema Version (use `1`)
attribute:Value of Attribute
parameter-name:Value of Parameter
next-parameter:Value of Parameter
``` So a fully fledged macro could look like: ```CONFLUENCE-MACRO
name:toc
schema-version:1
maxLevel:5
minLevel:2
exclude:Beispiel.*
style:none
type:flat
separator:pipe
``` Which will translate to: <ac:structured-macro ac:name="toc" ac:schema-version="1" >
<ac:parameter ac:name="maxLevel">5</ac:parameter>
<ac:parameter ac:name="minLevel">2</ac:parameter>
<ac:parameter ac:name="exclude">Beispiel.*</ac:parameter>
<ac:parameter ac:name="style">none</ac:parameter>
<ac:parameter ac:name="type">flat</ac:parameter>
<ac:parameter ac:name="separator">pipe</ac:parameter>
</ac:structured-macro> |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论