Commit Graph

40 Commits

Author SHA1 Message Date
Nikolai Rodionov
85cc3f5e86 Add a possibility to set the home page (#8)
Co-authored-by: Nikolai Rodionov <nikolai.rodionov@grandcentrix.net>
Reviewed-on: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/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: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/7
2023-02-28 10:42:32 +00:00
Nikolai Rodionov
36ae68be6b fix: typo in Readme.md 2023-02-24 17:41:10 +01:00
Nikolai Rodionov
c3a08433de Update README.md 2023-02-24 17:39:55 +01: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: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/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: https://git.badhouseplants.net/allanger/mkdocs-with-confluence/pulls/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
Pawel Sikora
e35c4bf0cc Add missing pkgs into install_requires in setup.py 2022-08-22 07:39:14 +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
pawelsikora
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
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
pawelsikora
916bfecdb3
Merge pull request #1 from StreetHawkInc/main
Change: get auth defaults from os.environ
2021-06-22 06:50:07 +02:00
Steven Joseph
8273b42c9e Fix get auth defaults from os.environ 2021-06-13 16:27:08 +10:00
Pawel Sikora
86e26cd530 fix the link to mkdocs plugins 2021-05-30 20:32:35 +02:00
Pawel Sikora
fd5bf17a7a fix source and include files for coveragecv 2021-05-30 20:30:21 +02: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
6d03168d83 add test.py with example commands 2021-05-04 17:47:04 +02:00
Pawel Sikora
25da96739b add nosetests 2021-04-29 22:59:04 +02:00
Pawel Sikora
63d816da1a add coverage report to travis ci 2021-04-29 22:44:28 +02:00
Pawel Sikora
97dd5b32ba install dev requirements in travis ci 2021-04-29 22:37:13 +02:00
Pawel Sikora
da16554f64 add black and flake8 checks for travis ci 2021-04-29 22:28:22 +02:00
Pawel Sikora
97b47e7e48 add .coveragerc 2021-04-28 23:08:20 +02:00
Pawel Sikora
fd630a47a6 make an order! 2021-04-28 23:07:17 +02:00
Pawel Sikora
8064af4871 add travis CI build status 2021-04-28 23:04:24 +02:00
Pawel Sikora
f577a80d13 update travis.yml 2021-04-28 22:59:51 +02:00
Pawel Sikora
83c101cc36 update codecov.yml 2021-04-28 22:54:10 +02:00
Pawel Sikora
450a824fb1 update codecov yml config 2021-04-28 22:49:32 +02:00
Pawel Sikora
f187dd1c02 update travis.yml 2021-04-28 22:46:56 +02:00
Pawel Sikora
cb8e7871a3 fix mimetypes pip package in requirements 2021-04-28 22:46:37 +02:00
Pawel Sikora
abb83bafeb Fix pypi license 2021-04-28 22:05:47 +02:00
Pawel Sikora
a6c0d8df3d Fix syntax 2021-04-28 22:03:06 +02:00
Pawel Sikora
88db9014a7 Fix Action status badge 2021-04-28 21:48:52 +02:00
Pawel Sikora
fa283ffaff Update README, LICENSE, and yaml workflow files 2021-04-23 20:04:21 +02:00
Pawel Sikora
0120ec2e07 update requirements in setup 2021-04-14 23:01:59 +02:00
Pawel Sikora
2630e94bbb Add initial v0.1.0 plugin code 2021-04-14 22:58:26 +02:00
pawelsikora
84e528263b
Initial commit 2021-04-14 22:49:00 +02:00