From e6937c7e6353023e0bed7441257bb255a93b7df7 Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Mon, 16 Oct 2023 10:41:28 -0700 Subject: [PATCH] Re-arrange publish --- .github/workflows/publish-demo.yml | 16 ++++++++++++---- {docs/examples => examples}/book/.gitignore | 0 {docs/examples => examples}/book/_extensions | 0 {docs/examples => examples}/book/_quarto.yml | 0 .../examples => examples}/book/example-page.qmd | 0 {docs/examples => examples}/book/index.qmd | 0 .../html-document/_extensions | 0 .../html-document/_quarto.yml | 0 .../html-document/index.qmd | 0 {docs/examples => examples}/website/_extensions | 0 {docs/examples => examples}/website/_quarto.yml | 0 .../website/example-page.qmd | 0 {docs/examples => examples}/website/index.qmd | 0 13 files changed, 12 insertions(+), 4 deletions(-) rename {docs/examples => examples}/book/.gitignore (100%) rename {docs/examples => examples}/book/_extensions (100%) rename {docs/examples => examples}/book/_quarto.yml (100%) rename {docs/examples => examples}/book/example-page.qmd (100%) rename {docs/examples => examples}/book/index.qmd (100%) rename {docs/examples => examples}/html-document/_extensions (100%) rename {docs/examples => examples}/html-document/_quarto.yml (100%) rename {docs/examples => examples}/html-document/index.qmd (100%) rename {docs/examples => examples}/website/_extensions (100%) rename {docs/examples => examples}/website/_quarto.yml (100%) rename {docs/examples => examples}/website/example-page.qmd (100%) rename {docs/examples => examples}/website/index.qmd (100%) diff --git a/.github/workflows/publish-demo.yml b/.github/workflows/publish-demo.yml index 2cae56c3..eb7b4a71 100644 --- a/.github/workflows/publish-demo.yml +++ b/.github/workflows/publish-demo.yml @@ -51,19 +51,27 @@ jobs: - name: Render sample deployment HTML document template uses: quarto-dev/quarto-actions/render@v2 with: - path: "docs/examples/html-document/index.qmd" + path: "examples/html-document/index.qmd" - name: Render sample deployment website template uses: quarto-dev/quarto-actions/render@v2 with: - path: "docs/examples/website" + path: "examples/website" - name: Render sample deployment book template uses: quarto-dev/quarto-actions/render@v2 with: - path: "docs/examples/book" + path: "examples/book" - # Collect and, then, publish onto gh-pages the output + # Collect the output into the docs/ directory + - name: Copy examples into the docs directory + run: | + mkdir -p docs/examples && \ + cp -rp examples/book/_book docs/examples/book && \ + cp -rp examples/website/_site docs/examples/website && \ + cp -rp examples/html-document/ docs/examples/html-document && \ + + # Publish the docs directory onto gh-pages - name: "Render and Publish" uses: quarto-dev/quarto-actions/publish@v2 with: diff --git a/docs/examples/book/.gitignore b/examples/book/.gitignore similarity index 100% rename from docs/examples/book/.gitignore rename to examples/book/.gitignore diff --git a/docs/examples/book/_extensions b/examples/book/_extensions similarity index 100% rename from docs/examples/book/_extensions rename to examples/book/_extensions diff --git a/docs/examples/book/_quarto.yml b/examples/book/_quarto.yml similarity index 100% rename from docs/examples/book/_quarto.yml rename to examples/book/_quarto.yml diff --git a/docs/examples/book/example-page.qmd b/examples/book/example-page.qmd similarity index 100% rename from docs/examples/book/example-page.qmd rename to examples/book/example-page.qmd diff --git a/docs/examples/book/index.qmd b/examples/book/index.qmd similarity index 100% rename from docs/examples/book/index.qmd rename to examples/book/index.qmd diff --git a/docs/examples/html-document/_extensions b/examples/html-document/_extensions similarity index 100% rename from docs/examples/html-document/_extensions rename to examples/html-document/_extensions diff --git a/docs/examples/html-document/_quarto.yml b/examples/html-document/_quarto.yml similarity index 100% rename from docs/examples/html-document/_quarto.yml rename to examples/html-document/_quarto.yml diff --git a/docs/examples/html-document/index.qmd b/examples/html-document/index.qmd similarity index 100% rename from docs/examples/html-document/index.qmd rename to examples/html-document/index.qmd diff --git a/docs/examples/website/_extensions b/examples/website/_extensions similarity index 100% rename from docs/examples/website/_extensions rename to examples/website/_extensions diff --git a/docs/examples/website/_quarto.yml b/examples/website/_quarto.yml similarity index 100% rename from docs/examples/website/_quarto.yml rename to examples/website/_quarto.yml diff --git a/docs/examples/website/example-page.qmd b/examples/website/example-page.qmd similarity index 100% rename from docs/examples/website/example-page.qmd rename to examples/website/example-page.qmd diff --git a/docs/examples/website/index.qmd b/examples/website/index.qmd similarity index 100% rename from docs/examples/website/index.qmd rename to examples/website/index.qmd