Skip to content

Commit

Permalink
Revert "adds cookbook as a separate site"
Browse files Browse the repository at this point in the history
This reverts commit 019f5e2.
  • Loading branch information
nickbradley committed Sep 2, 2024
1 parent d31129c commit 98d018e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 38 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build reader with Hugo
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
Expand All @@ -61,23 +61,10 @@ jobs:
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Build cookbook with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIORNMENT: production
TZ: America/Vancouver
run: |
cd cookbook \
&& hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: |
./reader/public
./cookbook/public
path: ./reader/public

# Deployment job
deploy:
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Hugo
.hugo_build.lock
reader/public
cookbook/public
reader/public
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "reader/themes/hugo-theme-relearn"]
path = reader/themes/hugo-theme-relearn
url = https://github.com/McShelby/hugo-theme-relearn.git
[submodule "cookbook/themes/hugo-theme-relearn"]
path = cookbook/themes/hugo-theme-relearn
url = https://github.com/McShelby/hugo-theme-relearn.git
5 changes: 0 additions & 5 deletions cookbook/archetypes/default.md

This file was deleted.

6 changes: 0 additions & 6 deletions cookbook/content/_index.md

This file was deleted.

6 changes: 0 additions & 6 deletions cookbook/hugo.toml

This file was deleted.

1 change: 0 additions & 1 deletion cookbook/themes/hugo-theme-relearn
Submodule hugo-theme-relearn deleted from 28975d

0 comments on commit 98d018e

Please sign in to comment.