Skip to content

Commit

Permalink
Repo name changed; fixed error by updating the URL
Browse files Browse the repository at this point in the history
The repo name changed and that was what was causing the error. Fixed that here. I am such a dum dum
  • Loading branch information
shreyashguptas committed Nov 16, 2024
1 parent 758cd9c commit c22dfd7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
push:
branches:
- main
paths:
- '**'

jobs:
deploy-book:
Expand All @@ -19,10 +17,14 @@ jobs:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .git info
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -38,9 +40,14 @@ jobs:
run: |
jupyter-book build .
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
force_orphan: true
path: '_build/html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
5 changes: 3 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ html:
use_repository_button: true
use_edit_page_button: true
home_page_in_navbar: true
baseurl: /Machine-Learning-for-Dummies

# Important: Add these build settings
sphinx:
Expand All @@ -22,11 +23,11 @@ sphinx:
html_static_path: ['_static']
html_css_files: []
html_theme_options:
repository_url: https://github.com/shreyashgupta/Machine-Learning-Explained-With-Analogies
repository_url: https://github.com/shreyashguptas/Machine-Learning-for-Dummies
repository_branch: main
use_repository_button: true

repository:
url: https://github.com/shreyashgupta/Machine-Learning-Explained-With-Analogies
url: https://github.com/shreyashguptas/Machine-Learning-for-Dummies
path_to_book: ""
branch: main

0 comments on commit c22dfd7

Please sign in to comment.