From 91b30eda72bf3999db2a1ec8c5024166ef426881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 12 Jan 2024 10:19:08 +0100 Subject: [PATCH] Add specfile docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- .github/workflows/deploy.yml | 1 + Makefile | 7 +++++++ docusaurus.config.js | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1133d5956..d1c8c53fb3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,7 @@ on: types: - deployment-docs-updated - research-docs-updated + - specfile-docs-updated jobs: deploy: diff --git a/Makefile b/Makefile index 8db343a86d..70c2bc4e72 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,11 @@ import: git clone https://github.com/packit/research.git .research-docs mv .research-docs/research research + # specfile + ([[ -d .specfile-docs ]] && rm -rf .specfile-docs specfile) || true + git clone https://github.com/packit/specfile.git .specfile-docs + pip3 install pydoc-markdown + $(MAKE) -C .specfile-docs generate-api-docs + mv .specfile-docs/docs specfile + .PHONY: run-dev import diff --git a/docusaurus.config.js b/docusaurus.config.js index 8768721503..41fe9c0b98 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -67,6 +67,11 @@ const developmentSections = [ "Research", "https://github.com/packit/research/tree/main", ), + new Section( + "specfile", + "specfile library", + "https://github.com/packit/specfile/tree/main/docs", + ), ]; const sections = [