kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
988 stars 147 forks source link

Include fails if Space is only defined in config file #346

Open SPFZ opened 12 months ago

SPFZ commented 12 months ago

What happened? I put all my configuration in a config file:

base-url = "https://confluence.company.com"
space = "MYSPACE"
parents = "Dokumentation"
files = "Dokumentation/[^_]*.md"
title-from-h1 = false
drop-h1 = false

I was trying to include toc and another file.

Dokumentation/dokumentation.md

<!-- Title: Dokumentation-->

<!-- Include: ac:toc -->
<!-- Include: _disclaimer.md -->

Dokumentation ...

I ran mark in a Pipeline: mark --debug -p $CONFLUENCE_TOKEN -c mark.conf

The page was successfully created but without the disclaimer and without the toc.

When I added <!-- Space: MYSPACE--> to the dokumentation file the includes worked.

What did you expect to happen? That the includes work.

How can we reproduce the behavior you experienced? I hope the "What happend?" part is sufficient - if not please tell me what is needed.

Information (please complete the following information):

Logs or other output

Additional context