Skip to content

Commit

Permalink
Attempt to evaluate nested quarto projects in GitHub Action Render & …
Browse files Browse the repository at this point in the history
…Publish action
  • Loading branch information
coatless committed Oct 16, 2023
1 parent 39518d8 commit 4cb41fa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/publish-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,32 @@ jobs:
- name: "Set up Quarto"
uses: quarto-dev/quarto-actions/setup@v2

- name: "Initialize a quarto project"
run: |
quarto create project website .
shell: bash
# Generate the documentation website
- name: Render Documentation website
uses: quarto-dev/quarto-actions/render@v2
with:
path: "docs"

# Attempt to render the nested deployment template Quarto projects
- name: Render sample deployment HTML document template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "examples/html-document/index.qmd"

- name: Render sample deployment website template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "examples/website"

- name: Render sample deployment book template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "examples/book"

# Collect and, then, publish onto gh-pages the output
- name: "Render and Publish"
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
render: false
8 changes: 4 additions & 4 deletions docs/qwebr-deployment-templates.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ Discover a range of sample deployment templates for the `quarto-webr` extension

This template is designed for creating standalone HTML documents with interactive webR functionality. It's suitable for individual reports or interactive documents.

- **Example**: You can find an example of an HTML document template [here](examples/html-document/index.qmd).
- **Example**: You can find an example of an HTML document template [here](https://quarto-webr.thecoatlessprofessor.com/examples/html-document/).
- **Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/html-document).

# Website Template**
# Website Template

This template is meant for building interactive websites with multiple webR-powered pages. It's ideal for creating blog posts, educational platforms, or any web content that requires interactive data analysis.

- **Example**: Explore an example of a website template [here](examples/website/index.qmd).
- **Example**: Explore an example of a website template [here](https://quarto-webr.thecoatlessprofessor.com/examples/website/).
- **Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/website).


# Book Template

The book template is designed for creating interactive web-based books or documentation. It allows you to compile a collection of chapters, sections, and interactive content into a cohesive digital book.

- **Example**: You can view an example of a book template [here](examples/book/index.qmd).
- **Example**: You can view an example of a book template [here](https://quarto-webr.thecoatlessprofessor.com/examples/book).

- **Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/book).

0 comments on commit 4cb41fa

Please sign in to comment.