From 3c2e3e7790fb1b1c1834a24e5bdc72318f0dc42e Mon Sep 17 00:00:00 2001 From: TheSt1tch Date: Mon, 24 Jun 2024 13:50:14 +0500 Subject: [PATCH 1/2] =?UTF-8?q?=D0=A1=D0=BE=20=D0=BC=D0=BD=D0=BE=D0=B9=20?= =?UTF-8?q?=D1=81=D0=B2=D1=8F=D0=B7=D0=B0=D0=BB=D1=81=D1=8F=20=D0=A0=D0=9A?= =?UTF-8?q?=D0=9D=20=D0=B8=20=D0=BF=D1=80=D0=B8=D0=B3=D1=80=D0=BE=D0=B7?= =?UTF-8?q?=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 1d920e4..c35d68f 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -198,7 +198,7 @@ nav: - Split-DNS: network/mikrotik/split-dns.md - Hairpin NAT: network/mikrotik/hairpin-nat.md - UPnP: network/mikrotik/upnp.md - - Обход блокировок: network/mikrotik/unblock-site.md + #- Обход блокировок: network/mikrotik/unblock-site.md - Ubiquiti: - Добавление новой точки: network/ubi/add-new-ap.md - Ошибка обновления: network/ubi/failed-update.md From a1edb4ea4b416103ab8fbd09fa67ffa8a3c746ec Mon Sep 17 00:00:00 2001 From: TheSt1tch Date: Mon, 24 Jun 2024 14:48:53 +0500 Subject: [PATCH 2/2] add woodpacker ci file --- woodpacker.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/woodpacker.yml b/woodpacker.yml index bfea819..5eddbc7 100755 --- a/woodpacker.yml +++ b/woodpacker.yml @@ -1,3 +1,36 @@ steps: - buildDocs: - image: woodpeckerci/plugin-mkdocs:latest \ No newline at end of file + build-docs: + # build the docs in /docs with mkdocs and + # add the .domains file for codeberg pages + image: squidfunk/mkdocs-material + commands: + - mkdocs build -f ./mkdocs.yml -d docs_build + - git switch --orphan pages + - mv docs_build/* . + - echo -e 'openfindata.org\nopenfindata.codeberg.page\npages.openfindata.codeberg.page' > .domains + when: + path: + include: + - 'mkdocs.yml' + - 'docs/**' + + deploy-docs: + # Push the resulting files to openfindata/pages + # to deploy + name: Push built docs to codeberg pages + image: appleboy/drone-git-push + settings: + branch: main + remote: git@codeberg.org:openfindata/pages.git + force: true + commit: true + ssh_key: + # created using woodpecker cli with: + # woodpecker secret add -repository openfindata/openfindata \ + # -name codeberg_push_from_ci_priv_key -value @ + from_secret: codeberg_push_from_ci_priv_key + when: + path: + include: + - 'mkdocs.yml' + - 'docs/**' \ No newline at end of file