Commit Graph

36 Commits

Author SHA1 Message Date
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: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/6
v0.3.1
2023-02-24 16:30:07 +00:00
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: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/1
v0.3.0
2023-02-24 08:40:21 +00:00
04600fbbe4 Upload attachments on post page to support other mkdocs plugins (#15) 2022-10-14 13:13:01 +02:00
2935251528 use session object to allow reusing auth across requests (#14) 2022-10-14 12:14:34 +02:00
e35c4bf0cc Add missing pkgs into install_requires in setup.py 2022-08-22 07:39:14 +02:00
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
70844b3532 Merge pull request #4 from pawelsikora/rel_0.2.5
Handle the case when nav section is missing in mkdocs.yml
2022-03-23 20:35:34 +01:00
9e2541c5fe cleanup and bump to 0.2.5 2022-01-04 22:17:21 +01:00
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
7ed94bd919 black reformatting of plugin.py after merge 2021-06-22 06:54:27 +02:00
916bfecdb3 Merge pull request #1 from StreetHawkInc/main
Change: get auth defaults from os.environ
2021-06-22 06:50:07 +02:00
8273b42c9e Fix get auth defaults from os.environ 2021-06-13 16:27:08 +10:00
86e26cd530 fix the link to mkdocs plugins 2021-05-30 20:32:35 +02:00
fd5bf17a7a fix source and include files for coveragecv 2021-05-30 20:30:21 +02:00
8bd06ba37a more prints to verbose mode, add more exception handling 2021-05-05 06:56:58 +02:00
2e8f641260 fix obtaining parents ids 2021-05-05 06:28:07 +02:00
6d03168d83 add test.py with example commands 2021-05-04 17:47:04 +02:00
25da96739b add nosetests 2021-04-29 22:59:04 +02:00
63d816da1a add coverage report to travis ci 2021-04-29 22:44:28 +02:00
97dd5b32ba install dev requirements in travis ci 2021-04-29 22:37:13 +02:00
da16554f64 add black and flake8 checks for travis ci 2021-04-29 22:28:22 +02:00
97b47e7e48 add .coveragerc 2021-04-28 23:08:20 +02:00
fd630a47a6 make an order! 2021-04-28 23:07:17 +02:00
8064af4871 add travis CI build status 2021-04-28 23:04:24 +02:00
f577a80d13 update travis.yml 2021-04-28 22:59:51 +02:00
83c101cc36 update codecov.yml 2021-04-28 22:54:10 +02:00
450a824fb1 update codecov yml config 2021-04-28 22:49:32 +02:00
f187dd1c02 update travis.yml 2021-04-28 22:46:56 +02:00
cb8e7871a3 fix mimetypes pip package in requirements 2021-04-28 22:46:37 +02:00
abb83bafeb Fix pypi license 2021-04-28 22:05:47 +02:00
a6c0d8df3d Fix syntax 2021-04-28 22:03:06 +02:00
88db9014a7 Fix Action status badge 2021-04-28 21:48:52 +02:00
fa283ffaff Update README, LICENSE, and yaml workflow files 2021-04-23 20:04:21 +02:00
0120ec2e07 update requirements in setup 2021-04-14 23:01:59 +02:00
2630e94bbb Add initial v0.1.0 plugin code 2021-04-14 22:58:26 +02:00
84e528263b Initial commit 2021-04-14 22:49:00 +02:00