Now the whole logic is wrapped by `try`, so if plugin is failed, it won't break the whole build
Also, there were several changes
- Add header_message, so header_warning is still there ("‼️ This page is created automatically, all your changes will be overwritten during the next MKDocs deployment. Do not edit a page here ‼️") when you want to add a custom message
- Add upstream_url, so now there is a link to the original page, if it's provided
- Migrate to default python logging lib
Co-authored-by: Nikolai Rodionov <nikolai.rodionov@grandcentrix.net>
Reviewed-on: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/6
This PR is very far from perfect, and there are some things that do not work yet, but I think it's good enough to merge
Co-authored-by: Shyam Saraswati <shyam.saraswati@gmail.com>
Co-authored-by: Nikolai Rodionov <nikolai.rodionov@grandcentrix.net>
Reviewed-on: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/1
* Only upload images that have changed by recording a file hash as the image comment
* Add image to attachments based markdown formatted image links
Allow dash in attachment filename (#13)
Co-authored-by: Simon Stamm <simon.stamm@tui.com>
Signed-off-by: Pawel Sikora <sikor6@gmail.com>
Add handling of missing (may be on purpose)
navigation section (nav) in mkdocs.yml config file.
If pages are missing in nav, plugin will create the
required pages from the filesystem structure, e.g.
parent1/parent2/.../your_page.md:
# My Page
...
In the following manner:
Confluence Space:
* Main Parent:
* Parent1:
* Parent2:
...:
- My Page
Fix for Issue: #2