From 825eb1c343a6c5f460c7fca2823bf5821490f814 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:50:42 +0000 Subject: [PATCH] Fix GitHub Pages deployment and broken links The GitHub Pages site was not building correctly because the Jekyll build source in the `pages.yml` workflow was set to the repository root (`./`) instead of the `docs/` directory, where the website content resides. This commit fixes the site by: 1. Moving all website-related files and directories (`index.html`, `_*.html` partials, `script.js`, `style.css`, `features/`, `games/`, `guides/`, `tools/`) into the `docs/` directory. 2. Updating the `.github/workflows/pages.yml` to set the Jekyll build `source` to `./docs`. 3. Converting all navigation links in `_nav.html` to be relative paths for better portability. 4. Moving the `LICENSE` file into `docs/` to fix a broken link in the footer. These changes ensure that the correct homepage is deployed and that all internal links and CSS references are resolved correctly. --- .github/workflows/pages.yml | 2 +- _nav.html | 26 ------------------- LICENSE => docs/LICENSE | 0 _footer.html => docs/_footer.html | 0 _header.html => docs/_header.html | 0 docs/_nav.html | 26 +++++++++++++++++++ {features => docs/features}/browser-apis.html | 0 {features => docs/features}/clipboard.html | 0 {features => docs/features}/drag-drop.html | 0 .../features}/filter-search.html | 0 {features => docs/features}/forms.html | 0 {features => docs/features}/json-viewer.html | 0 .../features}/live-js-runner.html | 0 .../features}/markdown-converter.html | 0 .../features}/mermaid-diagrams.html | 0 {features => docs/features}/notes-app.html | 0 {features => docs/features}/page-state.html | 0 {features => docs/features}/spa-routing.html | 0 .../features}/theme-switcher.html | 0 {games => docs/games}/clicker.html | 0 {games => docs/games}/drag-drop-puzzle.html | 0 {games => docs/games}/index.html | 0 {games => docs/games}/maze.html | 0 {games => docs/games}/memory-match.html | 0 {games => docs/games}/number-guessing.html | 0 .../games}/rock-paper-scissors.html | 0 {games => docs/games}/script.js | 0 {games => docs/games}/simon-says.html | 0 {games => docs/games}/style.css | 0 {games => docs/games}/tic-tac-toe.html | 0 {games => docs/games}/typing-speed.html | 0 {games => docs/games}/wordle.html | 0 {guides => docs/guides}/best-practices.html | 0 {guides => docs/guides}/markdown-usage.html | 0 {guides => docs/guides}/resources.html | 0 index.html => docs/index.html | 0 script.js => docs/script.js | 0 style.css => docs/style.css | 0 {tools => docs/tools}/tech-tools.html | 0 39 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 _nav.html rename LICENSE => docs/LICENSE (100%) rename _footer.html => docs/_footer.html (100%) rename _header.html => docs/_header.html (100%) create mode 100644 docs/_nav.html rename {features => docs/features}/browser-apis.html (100%) rename {features => docs/features}/clipboard.html (100%) rename {features => docs/features}/drag-drop.html (100%) rename {features => docs/features}/filter-search.html (100%) rename {features => docs/features}/forms.html (100%) rename {features => docs/features}/json-viewer.html (100%) rename {features => docs/features}/live-js-runner.html (100%) rename {features => docs/features}/markdown-converter.html (100%) rename {features => docs/features}/mermaid-diagrams.html (100%) rename {features => docs/features}/notes-app.html (100%) rename {features => docs/features}/page-state.html (100%) rename {features => docs/features}/spa-routing.html (100%) rename {features => docs/features}/theme-switcher.html (100%) rename {games => docs/games}/clicker.html (100%) rename {games => docs/games}/drag-drop-puzzle.html (100%) rename {games => docs/games}/index.html (100%) rename {games => docs/games}/maze.html (100%) rename {games => docs/games}/memory-match.html (100%) rename {games => docs/games}/number-guessing.html (100%) rename {games => docs/games}/rock-paper-scissors.html (100%) rename {games => docs/games}/script.js (100%) rename {games => docs/games}/simon-says.html (100%) rename {games => docs/games}/style.css (100%) rename {games => docs/games}/tic-tac-toe.html (100%) rename {games => docs/games}/typing-speed.html (100%) rename {games => docs/games}/wordle.html (100%) rename {guides => docs/guides}/best-practices.html (100%) rename {guides => docs/guides}/markdown-usage.html (100%) rename {guides => docs/guides}/resources.html (100%) rename index.html => docs/index.html (100%) rename script.js => docs/script.js (100%) rename style.css => docs/style.css (100%) rename {tools => docs/tools}/tech-tools.html (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index dc0e364..d00ec5c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -32,7 +32,7 @@ jobs: - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: - source: ./ + source: ./docs destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/_nav.html b/_nav.html deleted file mode 100644 index 5f80245..0000000 --- a/_nav.html +++ /dev/null @@ -1,26 +0,0 @@ -
- - -
diff --git a/LICENSE b/docs/LICENSE similarity index 100% rename from LICENSE rename to docs/LICENSE diff --git a/_footer.html b/docs/_footer.html similarity index 100% rename from _footer.html rename to docs/_footer.html diff --git a/_header.html b/docs/_header.html similarity index 100% rename from _header.html rename to docs/_header.html diff --git a/docs/_nav.html b/docs/_nav.html new file mode 100644 index 0000000..ee4d051 --- /dev/null +++ b/docs/_nav.html @@ -0,0 +1,26 @@ +
+ + +
diff --git a/features/browser-apis.html b/docs/features/browser-apis.html similarity index 100% rename from features/browser-apis.html rename to docs/features/browser-apis.html diff --git a/features/clipboard.html b/docs/features/clipboard.html similarity index 100% rename from features/clipboard.html rename to docs/features/clipboard.html diff --git a/features/drag-drop.html b/docs/features/drag-drop.html similarity index 100% rename from features/drag-drop.html rename to docs/features/drag-drop.html diff --git a/features/filter-search.html b/docs/features/filter-search.html similarity index 100% rename from features/filter-search.html rename to docs/features/filter-search.html diff --git a/features/forms.html b/docs/features/forms.html similarity index 100% rename from features/forms.html rename to docs/features/forms.html diff --git a/features/json-viewer.html b/docs/features/json-viewer.html similarity index 100% rename from features/json-viewer.html rename to docs/features/json-viewer.html diff --git a/features/live-js-runner.html b/docs/features/live-js-runner.html similarity index 100% rename from features/live-js-runner.html rename to docs/features/live-js-runner.html diff --git a/features/markdown-converter.html b/docs/features/markdown-converter.html similarity index 100% rename from features/markdown-converter.html rename to docs/features/markdown-converter.html diff --git a/features/mermaid-diagrams.html b/docs/features/mermaid-diagrams.html similarity index 100% rename from features/mermaid-diagrams.html rename to docs/features/mermaid-diagrams.html diff --git a/features/notes-app.html b/docs/features/notes-app.html similarity index 100% rename from features/notes-app.html rename to docs/features/notes-app.html diff --git a/features/page-state.html b/docs/features/page-state.html similarity index 100% rename from features/page-state.html rename to docs/features/page-state.html diff --git a/features/spa-routing.html b/docs/features/spa-routing.html similarity index 100% rename from features/spa-routing.html rename to docs/features/spa-routing.html diff --git a/features/theme-switcher.html b/docs/features/theme-switcher.html similarity index 100% rename from features/theme-switcher.html rename to docs/features/theme-switcher.html diff --git a/games/clicker.html b/docs/games/clicker.html similarity index 100% rename from games/clicker.html rename to docs/games/clicker.html diff --git a/games/drag-drop-puzzle.html b/docs/games/drag-drop-puzzle.html similarity index 100% rename from games/drag-drop-puzzle.html rename to docs/games/drag-drop-puzzle.html diff --git a/games/index.html b/docs/games/index.html similarity index 100% rename from games/index.html rename to docs/games/index.html diff --git a/games/maze.html b/docs/games/maze.html similarity index 100% rename from games/maze.html rename to docs/games/maze.html diff --git a/games/memory-match.html b/docs/games/memory-match.html similarity index 100% rename from games/memory-match.html rename to docs/games/memory-match.html diff --git a/games/number-guessing.html b/docs/games/number-guessing.html similarity index 100% rename from games/number-guessing.html rename to docs/games/number-guessing.html diff --git a/games/rock-paper-scissors.html b/docs/games/rock-paper-scissors.html similarity index 100% rename from games/rock-paper-scissors.html rename to docs/games/rock-paper-scissors.html diff --git a/games/script.js b/docs/games/script.js similarity index 100% rename from games/script.js rename to docs/games/script.js diff --git a/games/simon-says.html b/docs/games/simon-says.html similarity index 100% rename from games/simon-says.html rename to docs/games/simon-says.html diff --git a/games/style.css b/docs/games/style.css similarity index 100% rename from games/style.css rename to docs/games/style.css diff --git a/games/tic-tac-toe.html b/docs/games/tic-tac-toe.html similarity index 100% rename from games/tic-tac-toe.html rename to docs/games/tic-tac-toe.html diff --git a/games/typing-speed.html b/docs/games/typing-speed.html similarity index 100% rename from games/typing-speed.html rename to docs/games/typing-speed.html diff --git a/games/wordle.html b/docs/games/wordle.html similarity index 100% rename from games/wordle.html rename to docs/games/wordle.html diff --git a/guides/best-practices.html b/docs/guides/best-practices.html similarity index 100% rename from guides/best-practices.html rename to docs/guides/best-practices.html diff --git a/guides/markdown-usage.html b/docs/guides/markdown-usage.html similarity index 100% rename from guides/markdown-usage.html rename to docs/guides/markdown-usage.html diff --git a/guides/resources.html b/docs/guides/resources.html similarity index 100% rename from guides/resources.html rename to docs/guides/resources.html diff --git a/index.html b/docs/index.html similarity index 100% rename from index.html rename to docs/index.html diff --git a/script.js b/docs/script.js similarity index 100% rename from script.js rename to docs/script.js diff --git a/style.css b/docs/style.css similarity index 100% rename from style.css rename to docs/style.css diff --git a/tools/tech-tools.html b/docs/tools/tech-tools.html similarity index 100% rename from tools/tech-tools.html rename to docs/tools/tech-tools.html