Commit graph

153 commits

Author SHA1 Message Date
Dennis Dornon
957fdd9f66 fix: implement Mermaid exactly per documentation
- Move Mermaid scripts to just before closing </body> tag as recommended
- Add DOMContentLoaded event listener for proper timing
- Follow the exact implementation from Mermaid documentation
- Use exact code structure as provided in troubleshooting guide
2025-04-02 16:26:03 -04:00
Dennis Dornon
9c05a12abd fix: simplify Mermaid to absolute bare minimum
- Remove all overcomplicated code
- Use the single-line initialization from Mermaid docs
- Eliminate event listeners and extra methods
- Implement KISS principle with just load + initialize
2025-04-02 16:18:44 -04:00
Dennis Dornon
a6dd8fadcf fix: improve Mermaid initialization with belt-and-suspenders approach
- Added DOMContentLoaded event listener to ensure Mermaid only runs after page is loaded
- Used both initialization methods for redundancy:
  * mermaid.initialize({ startOnLoad: true })
  * mermaid.run({ querySelector: '.mermaid' })
- This belt-and-suspenders approach should catch edge cases where one method fails
- Following exact approach recommended by Jekyll/Mermaid expert feedback
2025-04-02 16:08:37 -04:00
Dennis Dornon
9803b180ab fix: simplify Mermaid diagram implementation
- Removed complex JS that was looking for non-existent <pre><code> elements
- Since Jekyll already outputs <div class='mermaid'> directly, conversion was unnecessary
- Simplified to use Mermaid's built-in initialization with startOnLoad:true
- Fixed various HTML syntax errors in default.html template
- Applied KISS and DRY principles for a more robust implementation
2025-04-02 16:01:02 -04:00
Dennis Dornon
ecea6a5876 fix: update Mermaid JavaScript to properly replace code blocks
- Fixed DOM manipulation to correctly replace code block elements
- Changed from using replaceWith to parentNode.replaceChild
- This ensures proper replacement of Jekyll-rendered code blocks
- Follows recommended implementation for GitHub Pages with Jekyll
2025-04-02 15:47:53 -04:00
Dennis Dornon
13a666fd0c fix: correct syntax error in Mermaid initialization
- Fixed missing comma in document.addEventListener('DOMContentLoaded', function()) call
- This syntax error was preventing Mermaid diagrams from rendering properly
- Ensures JavaScript properly initializes for Mermaid diagrams
2025-04-02 15:43:51 -04:00
Dennis Dornon
2d95e28d4b Update mermaid diagrams to use markdown code blocks 2025-04-02 15:33:35 -04:00
Dennis Dornon
b0164ce7fb fix: restore CSS file to correct location
- Move style.scss back to assets/css/ to fix Jekyll build path
- Remove backup file
- Keep Mermaid diagram format changes

This fixes the broken CSS on the live site while preserving
the Mermaid diagram improvements.
2025-04-02 14:57:06 -04:00
Dennis Dornon
4817e78725 fix: convert Mermaid diagrams to use pre tags
- Updated all Mermaid diagrams to use <pre class='mermaid'> format
- Verified Mermaid library inclusion in default template
- Confirmed proper CSS styling for diagrams
- Updated memory bank documentation

Files modified:
- getting-started-template.md
- extension-lifecycle.md
- api-integration-patterns.md
- getting-started-index-template.md
- guide-template.md
- social-media-integration.md
- woocommerce-integration.md
- memory-bank/activeContext.md
- memory-bank/progress.md
2025-04-02 14:50:16 -04:00
Dennis Dornon
688228e542 Simplify Mermaid implementation with standard approach 2025-04-02 14:33:58 -04:00
Dennis Dornon
53941de9ef Switch to non-module Mermaid loading and move initialization to DOMContentLoaded 2025-04-02 14:19:05 -04:00
Dennis Dornon
1c07125597 Update Mermaid implementation to use ES modules and direct diagram format 2025-04-02 14:09:20 -04:00
Dennis Dornon
27ca3e5a33 Update Mermaid diagram format to use pre/code tags 2025-04-02 13:56:31 -04:00
Dennis Dornon
f8a412501b Add Mermaid diagram support with dark theme styling 2025-04-02 13:44:41 -04:00
Dennis Dornon
99bea9063d Add submodule.active false to Git config and remove invalid persist-credentials param 2025-04-02 13:27:50 -04:00
Dennis Dornon
658e1869c2 Configure Git submodules for MainWP repositories 2025-04-02 13:23:26 -04:00
Dennis Dornon
07f70a5aea Add empty .gitmodules file to prevent false submodule detection in CI 2025-04-02 13:16:20 -04:00
Dennis Dornon
7020375f22 Fix CSS path resolution
- Move style.scss to dox-theme/assets/css/ to match live site path
- Update default.html layout to reference correct CSS path
- Update GitHub Actions workflow to verify correct output path
- Backup original style.scss as style.scss.backup
2025-04-02 13:08:25 -04:00
Dennis Dornon
ab1a933ece fix(css): trigger build to verify SCSS compilation 2025-04-02 12:45:07 -04:00
Dennis Dornon
1204e0d330 Update workflow to check CSS at standard Jekyll output path 2025-04-02 12:22:48 -04:00
Dennis Dornon
ff204d5f20 Move style.scss to _sass directory and update asset paths to follow Jekyll conventions 2025-04-02 12:13:43 -04:00
Dennis Dornon
3475404255 Modify workflow to verify CSS compilation and remove redundant JS copy step 2025-04-02 11:59:57 -04:00
Dennis Dornon
834efebf12 fix: update asset paths to use site.baseurl
- Replace absolute_url filter with site.baseurl for CSS and JS assets
- Ensure consistent path handling across all assets
- Fix 404 errors for theme assets on GitHub Pages
2025-04-01 15:57:49 -04:00
Dennis Dornon
54fdf91e34 fix: improve code block styling and accessibility
- Add max-width constraint to prevent overflow
- Implement proper word wrapping for long lines
- Remove redundant borders from nested elements
- Enhance copy button positioning and styling
2025-04-01 15:34:51 -04:00
Dennis Dornon
76641a3b77 feat: Add navigation structure to hooks documentation
- Add navigation structure to main hooks documentation page
- Add navigation structure to child hooks documentation page
- Maintain consistent navigation pattern across hook documentation

This extends the sidebar navigation fix to additional hook documentation pages,
ensuring consistent navigation across the documentation site.
2025-04-01 15:02:11 -04:00
Dennis Dornon
6aba2d5adf fix: Add navigation structure and fix asset paths
- Add proper front matter with navigation structure to guides/index.md
- Add proper front matter with navigation structure to mainwp-hooks/dashboard/index.md
- Update template path handling to use site.baseurl consistently
- Fix asset path resolution in documentation-single.html and homepage.html

This fixes the left sidebar navigation issues on the guides and hooks documentation pages by:
1. Adding proper navigation structure in front matter
2. Ensuring consistent path handling for assets
3. Maintaining scroll-spy functionality

Testing:
- Verified navigation structure matches working pages
- Confirmed proper asset path resolution
- Tested scroll-spy behavior
2025-04-01 14:52:46 -04:00
Dennis Dornon
fbbcc1b610 Refactor code block styling to use Jekyll's SCSS processing:
- Move highlight theme to _sass/vendors/_code-highlight.scss
- Update code block styles in _sass/components/_code.scss
- Fix CSS variable definitions in style.scss
- Update layout templates to properly load Highlight.js
- Simplify code block selectors for better compatibility
2025-04-01 14:17:08 -04:00
Dennis Dornon
76e3850784 fix: add Highlight.js language packs and remove conflicting initialization
- Added CDN links for PHP, JavaScript, HTML/XML, CSS, and Bash language packs
- Removed deprecated hljs.initHighlightingOnLoad() initialization
- Let code-blocks.js handle initialization with hljs.highlightAll()
- This fixes missing code block headers and copy buttons on live site
2025-04-01 13:51:34 -04:00
Dennis Dornon
93c85c3c5d Fix code block styling by adding code-blocks.js to layout templates 2025-04-01 13:24:55 -04:00
Dennis Dornon
8434e8bd50 Fix code block styling by importing components/_code.scss 2025-04-01 13:14:58 -04:00
Dennis Dornon
469841eca9 fixing code look - increased left padding for better code block readability 2025-04-01 12:54:30 -04:00
Dennis Dornon
1271c99747 fixing highlightJS 2025-04-01 12:22:48 -04:00
Dennis Dornon
ebf08eb898 Docs: Verify hooks documentation generation is working correctly 2025-03-31 14:52:37 -04:00
Dennis Dornon
5e2bf76abf Fix PHP version compatibility issues in documentation workflows 2025-03-30 15:07:16 -04:00
Dennis Dornon
984df18c9e Fix: Update GitHub Actions workflows to use PHP 8.2 2025-03-30 12:58:49 -04:00
Dennis Dornon
8136a95d6b Fix: Load navigation.js in homepage layout 2025-03-30 12:28:24 -04:00
Dennis Dornon
1b4fe8d14f Fix: Increase dropdown hover delay to 500ms 2025-03-30 12:17:09 -04:00
Dennis Dornon
d39af17839 Fix: Improve header dropdown hover behavior and ensure background visibility 2025-03-30 11:45:26 -04:00
Dennis Dornon
73133e9ae2 Refactor: Remove light mode, enforce permanent dark theme 2025-03-30 11:09:51 -04:00
Dennis Dornon
12d76fd69a Fix: Directly set dropdown background color in dark mode 2025-03-30 10:55:26 -04:00
Dennis Dornon
6d7de3bc21 Fix: Ensure dropdown background variable is defined in .dark-mode scope 2025-03-30 10:50:36 -04:00
Dennis Dornon
e2984279f3 Fix: Improve dropdown contrast using brand dark gray and white text 2025-03-30 08:59:55 -04:00
Dennis Dornon
dc1d83d58a Fix: Improve dropdown link visibility in dark mode 2025-03-28 20:21:23 -04:00
Dennis Dornon
771194e27a Fix: Correct dropdown background color variable in dark mode 2025-03-28 17:13:57 -04:00
Dennis Dornon
c811eda523 Fix: Add defer attribute to scripts in documentation-single layout 2025-03-28 16:57:07 -04:00
Dennis Dornon
35b92e25c9 Fix: Directly set header z-index to 1000 2025-03-28 16:41:34 -04:00
Dennis Dornon
d5ee5b5884 Fix: Define z-index CSS variables in :root 2025-03-28 16:13:47 -04:00
Dennis Dornon
8f5816d255 Fix: Remove sticky position from page nav to resolve header overlap 2025-03-28 16:07:39 -04:00
Dennis Dornon
aa18a99c2f Fix SCSS import for navigation styles (Retry)
Corrects import in style.scss to use _navigation.scss.
2025-03-28 14:07:43 -04:00
Dennis Dornon
485e29f79a Fix SCSS import for navigation styles
Changed style.scss to import _navigation.scss instead of _nav.scss. Renamed _nav.scss to _nav.scss.bak.
2025-03-28 13:58:34 -04:00