Commit Graph

16 Commits

Author SHA1 Message Date
Nikolai Rodionov f3553e9dfd fix: do not add ancestors if page is in the root 2023-02-28 16:34:54 +01:00
Nikolai Rodionov 85cc3f5e86 Add a possibility to set the home page (#8)
Co-authored-by: Nikolai Rodionov <nikolai.rodionov@grandcentrix.net>
Reviewed-on: #8
2023-02-28 15:18:22 +00:00
Nikolai Rodionov 162cb4a1bb Update variable naming (#7)
Co-authored-by: Nikolai Rodionov <nikolai.rodionov@grandcentrix.net>
Reviewed-on: #7
2023-02-28 10:42:32 +00:00
Nikolai Rodionov dba633cccf Plugin shouldn't break the whole build (#6)
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: #6
2023-02-24 16:30:07 +00:00
Nikolai Rodionov 8efe5ceda6 Refactoring (#1)
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: #1
2023-02-24 08:40:21 +00:00
Shyam Saraswati 04600fbbe4 Upload attachments on post page to support other mkdocs plugins (#15) 2022-10-14 13:13:01 +02:00
Simon Stamm 2935251528
use session object to allow reusing auth across requests (#14) 2022-10-14 12:14:34 +02:00
Shyam Saraswati c022db9f5f Image upload only when changed (#10) (#12)
* 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>
2022-08-22 07:29:05 +02:00
Pawel Sikora 9e2541c5fe cleanup and bump to 0.2.5 2022-01-04 22:17:21 +01:00
Pawel Sikora edcb998af4 fix: handle missing pages in mkdocs nav section
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
2021-12-07 05:58:17 +01:00
Pawel Sikora 7ed94bd919 black reformatting of plugin.py after merge 2021-06-22 06:54:27 +02:00
Steven Joseph 8273b42c9e Fix get auth defaults from os.environ 2021-06-13 16:27:08 +10:00
Pawel Sikora 8bd06ba37a more prints to verbose mode, add more exception handling 2021-05-05 06:56:58 +02:00
Pawel Sikora 2e8f641260 fix obtaining parents ids 2021-05-05 06:28:07 +02:00
Pawel Sikora a6c0d8df3d Fix syntax 2021-04-28 22:03:06 +02:00
Pawel Sikora 2630e94bbb Add initial v0.1.0 plugin code 2021-04-14 22:58:26 +02:00