From b93fefa9e3eb1f1551ab7cf7a24b7072961d7f28 Mon Sep 17 00:00:00 2001
From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com>
Date: Mon, 18 Mar 2024 12:01:07 +0100
Subject: [PATCH] update remote link

---
 templates/md2conf/README.md                   | 48 +++++++++++++++++++
 templates/md2conf/md2conf.yml                 | 12 +++++
 templates/python/code_quality/black/black.yml |  2 +-
 .../python/code_quality/flake8/flake8.yml     |  2 +-
 templates/python/code_quality/isort/isort.yml |  2 +-
 ...e-commit.yml => pre-commit-autoupdate.yml} |  0
 .../requirements-compile.yml                  |  2 +-
 templates/python/testing/pytest/pytest.yml    |  2 +-
 8 files changed, 65 insertions(+), 5 deletions(-)
 create mode 100644 templates/md2conf/README.md
 create mode 100644 templates/md2conf/md2conf.yml
 rename templates/python/code_quality/pre-commit-autoupdate/{pre-commit.yml => pre-commit-autoupdate.yml} (100%)

diff --git a/templates/md2conf/README.md b/templates/md2conf/README.md
new file mode 100644
index 0000000..0c9cfbb
--- /dev/null
+++ b/templates/md2conf/README.md
@@ -0,0 +1,48 @@
+# HTTP-API
+
+## Documentation
+
+The documentation of this project is located in confluence:
+https://beebryte.atlassian.net/wiki/spaces/AQTMN/overview?homepageId=452002085
+
+## Installation
+
+```bash
+pip install -r requirements.txt
+```
+
+Define the following environment variables:
+
+```bash
+CONFLUENCE_API_KEY=<your api key>;
+CONFLUENCE_DOMAIN=beebryte.atlassian.net;
+CONFLUENCE_PATH=/wiki/;
+CONFLUENCE_SPACE_KEY=AQTMN;  # The space key of the space to which pages belongs
+CONFLUENCE_USER_NAME=<your username>;
+```
+
+## Usage
+
+```bash
+python -m md2conf .
+```
+
+## Pre-commit hooks
+
+Please use the pre-commit hooks provided in this repository to maintain consistency in
+the codebase.
+
+### Setup
+
+```bash
+pip install --upgrade pip
+pip install pre-commit
+pre-commit install
+pre-commit autoupdate
+```
+
+### Manual use
+
+```bash
+pre-commit run --all-files
+```
\ No newline at end of file
diff --git a/templates/md2conf/md2conf.yml b/templates/md2conf/md2conf.yml
new file mode 100644
index 0000000..6c0fa52
--- /dev/null
+++ b/templates/md2conf/md2conf.yml
@@ -0,0 +1,12 @@
+include:
+    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+
+black:
+    extends:
+        - .python_install
+    stage: production
+    variables:
+        PYTHON_SETUP: "pip install markdown-to-confluence"
+    script:
+        - !reference [.python_install, script]
+        - python -m md2conf ${PROJECT_PATH}
diff --git a/templates/python/code_quality/black/black.yml b/templates/python/code_quality/black/black.yml
index 3be5bb4..19eac16 100644
--- a/templates/python/code_quality/black/black.yml
+++ b/templates/python/code_quality/black/black.yml
@@ -1,5 +1,5 @@
 include:
-    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba-templates/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+  - remote: 'https://gitlab.com/dorianturba-templates/r2devops_catalog/-/raw/main/templates/python/partial/python_install/python_install.yml'
 
 black:
     extends:
diff --git a/templates/python/code_quality/flake8/flake8.yml b/templates/python/code_quality/flake8/flake8.yml
index 21abd6c..7254dfd 100644
--- a/templates/python/code_quality/flake8/flake8.yml
+++ b/templates/python/code_quality/flake8/flake8.yml
@@ -1,5 +1,5 @@
 include:
-    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba-templates/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+  - remote: 'https://gitlab.com/dorianturba-templates/r2devops_catalog/-/raw/main/templates/python/partial/python_install/python_install.yml'
 
 flake8:
     extends:
diff --git a/templates/python/code_quality/isort/isort.yml b/templates/python/code_quality/isort/isort.yml
index 8f87229..e0dec8f 100644
--- a/templates/python/code_quality/isort/isort.yml
+++ b/templates/python/code_quality/isort/isort.yml
@@ -1,5 +1,5 @@
 include:
-    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba-templates/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+  - remote: 'https://gitlab.com/dorianturba-templates/r2devops_catalog/-/raw/main/templates/python/partial/python_install/python_install.yml'
 
 isort:
     extends:
diff --git a/templates/python/code_quality/pre-commit-autoupdate/pre-commit.yml b/templates/python/code_quality/pre-commit-autoupdate/pre-commit-autoupdate.yml
similarity index 100%
rename from templates/python/code_quality/pre-commit-autoupdate/pre-commit.yml
rename to templates/python/code_quality/pre-commit-autoupdate/pre-commit-autoupdate.yml
diff --git a/templates/python/dependency_management/requirements-compile/requirements-compile.yml b/templates/python/dependency_management/requirements-compile/requirements-compile.yml
index 4288360..40c87cb 100644
--- a/templates/python/dependency_management/requirements-compile/requirements-compile.yml
+++ b/templates/python/dependency_management/requirements-compile/requirements-compile.yml
@@ -1,5 +1,5 @@
 include:
-    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba-templates/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+  - remote: 'https://gitlab.com/dorianturba-templates/r2devops_catalog/-/raw/main/templates/python/partial/python_install/python_install.yml'
 
 requirements-compile:
     extends:
diff --git a/templates/python/testing/pytest/pytest.yml b/templates/python/testing/pytest/pytest.yml
index cb384ee..7751d7f 100644
--- a/templates/python/testing/pytest/pytest.yml
+++ b/templates/python/testing/pytest/pytest.yml
@@ -1,5 +1,5 @@
 include:
-    - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba-templates/r2devops_catalog/r2_metadata/python_install@latest.yaml'
+  - remote: 'https://gitlab.com/dorianturba-templates/r2devops_catalog/-/raw/main/templates/python/partial/python_install/python_install.yml'
 
 pytest:
     extends:
-- 
GitLab