From d68dd38ca30e8e7ecceefe2b1e08e14fc241b9c0 Mon Sep 17 00:00:00 2001 From: Arvydas Silanskas Date: Sat, 11 May 2024 23:52:29 +0300 Subject: [PATCH] work --- .github/workflows/build_site.yml | 4 +--- docs/site/copycontent.sh | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_site.yml b/.github/workflows/build_site.yml index 5c0cf03..35c85f8 100644 --- a/.github/workflows/build_site.yml +++ b/.github/workflows/build_site.yml @@ -19,9 +19,7 @@ jobs: sudo apt-get -y install asciidoctor - name: 'Build docs' run: | - cd docs; - asciidoctor *.adoc; - cd site; + cd docs/site bash copycontent.sh; hugo; - uses: actions/upload-pages-artifact@v3 diff --git a/docs/site/copycontent.sh b/docs/site/copycontent.sh index 37048af..1d78eb6 100644 --- a/docs/site/copycontent.sh +++ b/docs/site/copycontent.sh @@ -3,7 +3,7 @@ cd .. for doc in *.adoc ; do if [ -f docs/content/_frontmatter/$doc ]; then - cat docs/content/_frontmatter/$doc > docs/content/$doc - cat $doc >> docs/content/$doc + cat site/content/_frontmatter/$doc > site/content/$doc + cat $doc >> site/content/$doc fi done \ No newline at end of file