-
Notifications
You must be signed in to change notification settings - Fork 236
Fix logo redirect to main CircuitVerse homepage on Learn web page #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <header class="site-header" role="banner"> | ||
| <div class="site-header-inner"> | ||
| <a href="https://circuitverse.org" class="site-title lh-tight"> | ||
| CircuitVerse | ||
| </a> | ||
|
|
||
| {% if site.search_enabled %} | ||
| <button | ||
| class="search-toggle" | ||
| aria-label="Toggle search" | ||
| aria-controls="search" | ||
| aria-expanded="false"> | ||
|
Comment on lines
+8
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find repository structure and JavaScript files
find . -type f -name "*.js" | head -20
find . -name "_includes" -type d
ls -la _includes/ 2>/dev/null || echo "Not in root"Repository: CircuitVerse/Interactive-Book Length of output: 2057 🏁 Script executed: # Search for the site-header.html file and check its content
find . -name "site-header.html" -type fRepository: CircuitVerse/Interactive-Book Length of output: 101 🏁 Script executed: # Search for JavaScript that handles aria-expanded, search-toggle, or menu-button
rg -n "aria-expanded|search-toggle|menu-button" --type js
rg -n "addEventListener.*click|setAttribute.*aria" --type js -A 3Repository: CircuitVerse/Interactive-Book Length of output: 50386 🏁 Script executed: # Read the site-header.html file to see the actual button implementation
cat -n _includes/site-header.htmlRepository: CircuitVerse/Interactive-Book Length of output: 1141 🏁 Script executed: # Search for toggle or aria-related code in global_scripts.js
cat -n assets/js/global_scripts.js | head -100Repository: CircuitVerse/Interactive-Book Length of output: 1659 Add JavaScript handlers to dynamically update Both the search toggle (lines 8-12) and menu button (lines 20-25) have Applies to lines 8-12 and 20-25. 🤖 Prompt for AI Agents |
||
| <svg viewBox="0 0 24 24" width="24" height="24"> | ||
| <path d="M21 21l-4.35-4.35"></path> | ||
| <circle cx="10" cy="10" r="7"></circle> | ||
| </svg> | ||
| </button> | ||
| {% endif %} | ||
|
|
||
| <button | ||
| id="menu-button" | ||
| class="menu-button" | ||
| aria-label="Toggle menu" | ||
| aria-controls="site-nav" | ||
| aria-expanded="false"> | ||
| <svg viewBox="0 0 24 24" width="24" height="24"> | ||
| <path d="M3 6h18M3 12h18M3 18h18"></path> | ||
| </svg> | ||
| </button> | ||
| </div> | ||
| </header> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 103
🏁 Script executed:
# Check the full content of site-header.html to verify SVG attributes and structure cat -n _includes/site-header.htmlRepository: CircuitVerse/Interactive-Book
Length of output: 1141
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 345
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 118
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 1659
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 211
🏁 Script executed:
# Check the complete _layouts/home.html file cat -n _layouts/home.htmlRepository: CircuitVerse/Interactive-Book
Length of output: 239
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 158
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 267
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 1022
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 126
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 207
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 4669
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 133
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 1319
🏁 Script executed:
# Check if there's a _layouts directory structure ls -la _layouts/Repository: CircuitVerse/Interactive-Book
Length of output: 309
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 101
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 211
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 226
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 247
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 211
🏁 Script executed:
# Check if there might be a head_custom or similar override mechanism cat -n _includes/head_custom.htmlRepository: CircuitVerse/Interactive-Book
Length of output: 433
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 142
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 211
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 658
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 3256
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 3101
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 188
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 128
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 303
🏁 Script executed:
# Check the docs directory ls -la docs/Repository: CircuitVerse/Interactive-Book
Length of output: 785
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 454
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 55
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 211
🏁 Script executed:
# Check if maybe there's a theme customization or override mechanism we're missing cat -n _includes/content_header.htmlRepository: CircuitVerse/Interactive-Book
Length of output: 226
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 219
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 1339
🏁 Script executed:
Repository: CircuitVerse/Interactive-Book
Length of output: 57
File not being used—needs integration or different approach.
The
site-header.htmlfile was created but is not referenced anywhere in the site layouts. Just-the-docs renders the page header via_includes/components/header.htmlfrom the theme. To fix the logo redirect, you need to either:_includes/components/header.htmlwith the custom logo link, or_layouts/default.htmlor the appropriate layout file.Additionally, the SVG paths lack fill/stroke attributes and will require CSS styling to be visible. The
aria-expandedattributes are hardcoded as "false"—ensure corresponding JavaScript exists to toggle these values.