Commit graph

180 commits

Author SHA1 Message Date
Thang Hoang Van
d601b68f94
Merge pull request #4 from mainwp/mainwp.dev.coder
Mainwp.dev.coder
2025-06-10 13:27:58 +07:00
thanghv
c5f77948b8 Update: changelogs 2025-06-10 13:27:12 +07:00
thanghv
08f5a0bd1d Update; changelogs 2025-05-12 23:35:59 +07:00
Thang Hoang Van
c5e1fac41f
Merge pull request #3 from mainwp/mainwp.dev.coder
Mainwp.dev.coder
2025-05-08 22:59:37 +07:00
thanghv
2540890336 Update changelogs 2025-05-08 22:56:27 +07:00
thanghv
83f8b07e8f Update changelogs 2025-05-06 15:34:01 +07:00
thanghv
f68e0deeba Update: changelogs 2025-04-28 12:32:19 +07:00
Thang Hoang Van
ebce448481
Merge pull request #2 from mainwp/mainwp.dev.coder
Mainwp.dev.coder
2025-04-23 14:41:33 +07:00
thanghv
ef493612fc Update: changelog 2025-04-23 14:41:16 +07:00
thanghv
fcf5e008c3 Update changelogs 2025-04-15 16:06:43 +07:00
thanghv
4888fd6492 Update changelogs 2025-04-15 12:58:14 +07:00
Thang Hoang Van
67986adf9f
Merge pull request #1 from mainwp/mainwp.dev.coder
Mainwp.dev.coder
2025-04-15 12:56:57 +07:00
thanghv
2f355368b7 Update changelogs 2025-04-15 12:56:07 +07:00
GitHub Action
d6324062b1 Update hooks documentation 2025-04-13 00:49:31 +00:00
Dennis Dornon
5c17040bf0
Create .readthedocs.yaml
Read the docs test
2025-04-08 15:16:08 -04:00
thanghv
dccef1f7c5 Update changelogs 2025-04-07 15:03:49 +07:00
thanghv
c58fe1121d Update changelogs 2025-04-07 15:02:31 +07:00
GitHub Action
8664cc48e4 Update hooks documentation 2025-04-06 00:25:48 +00:00
Dennis Dornon
aeb78c5bb1 Restore getting-started-template.md to working version without front matter 2025-04-04 11:22:36 -04:00
Dennis Dornon
138d47bd41 Update getting-started-template.md with front matter 2025-04-04 11:17:59 -04:00
Dennis Dornon
5c852c8149 Update getting-started-template.md 2025-04-04 11:10:39 -04:00
Dennis Dornon
df4149d06d Update getting-started-template.md with improved formatting 2025-04-04 10:06:33 -04:00
Dennis Dornon
00b6090908 Fixing Mermaid 2025-04-03 19:31:22 -04:00
Dennis Dornon
6019e3ddab fix: convert Mermaid code blocks to div format for proper rendering 2025-04-03 16:04:30 -04:00
thanghv
2c6542292c Update changelog 2025-04-03 23:54:42 +07:00
Dennis Dornon
0cad3cbf9c fix: add Mermaid to documentation-single layout
- Mermaid scripts were missing from documentation-single.html layout
- All guide pages with diagrams use documentation-single layout, not default layout
- Fixed JavaScript syntax errors in documentation-single.html
- Added exact Mermaid implementation to the correct template
- This should now correctly render diagrams in all guide pages
2025-04-02 21:50:21 -04:00
Dennis Dornon
a22c68be61 fix: implement Mermaid exactly as directed
- Add Mermaid CDN script tag just before closing body tag
- Add exact initialization script with DOMContentLoaded event
- Follow recommended implementation verbatim
- Fix HTML syntax by adding missing commas and parentheses
2025-04-02 20:00:42 -04:00
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