Skip to content

Commit

Permalink
Merge pull request #92 from BU-Spark/quarto
Browse files Browse the repository at this point in the history
initial quarto commit
  • Loading branch information
trgardos authored Sep 3, 2024
2 parents 0b1c329 + 9f96ca8 commit 500186f
Show file tree
Hide file tree
Showing 12 changed files with 562 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,48 @@ jobs:
run:
working-directory: ./websites/fa2024
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
working-directory: '${{ github.workspace }}/websites/fa2024'

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

# Downloads and isntalls the OS specific version of Quarto
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install Python and Dependencies
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: pip install jupyter
- run: pip install -r requirements.txt
- run: pip list

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
path: ./quarto-lectures-source
env:
QUARTO_DENO_V8_OPTIONS: --stack-size=8192

- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
# run: bundle exec jekyll build --baseurl "/ml-549-course/fa2024"
env:
JEKYLL_ENV: production

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
Expand Down
2 changes: 2 additions & 0 deletions websites/fa2024/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ _site/
# Ignore folders generated by Bundler
.bundle/
vendor/

quarto-lectures-website/
1 change: 1 addition & 0 deletions websites/fa2024/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ url: "https://bu-spark.github.io"
exclude:
- README.md
- schedule-google-docs.md
- quarto-lectures-source/

# Set a path/url to a logo that will be displayed instead of the title
#logo: /assets/images/logo.png
Expand Down
5 changes: 5 additions & 0 deletions websites/fa2024/quarto-lectures-source/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

/.quarto/

# virtual environments
.quarto_env/
Loading

0 comments on commit 500186f

Please sign in to comment.