From 9b27c792ebce9f483395e19df0286417b4f600d3 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 18:42:26 +0200 Subject: [PATCH 01/26] Initial site skeleton --- .github/workflows/deploy.yml | 144 +++++++++++++++++++++++++++++++++++ .gitignore | 21 +++++ Gemfile | 24 ++++++ README.md | 2 +- _config.yml | 38 +++++++++ index.md | 12 +++ 6 files changed, 240 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 _config.yml create mode 100644 index.md diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..cc27a19 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,144 @@ +name: Deploy Jekyll site to GitHub Pages + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pages: write + id-token: write + pull-requests: write + +concurrency: + group: "pages-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'main' }}" + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + run: | + if [ "${{ github.event_name }}" == "pull_request" ]; then + # For PRs, build with baseurl pointing to PR-specific folder + bundle exec jekyll build --baseurl "/pr-${{ github.event.pull_request.number }}" + else + # For main branch, build to root + bundle exec jekyll build + fi + env: + JEKYLL_ENV: production + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: _site + + # Deploy to main domain when merged into main + deploy-main: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + + # Deploy to PR-specific folder on pull requests + deploy-pr: + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout gh-pages branch + uses: actions/checkout@v4 + with: + ref: gh-pages + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: github-pages + path: ./artifact + + - name: Extract artifact + run: | + mkdir -p pr-${{ github.event.pull_request.number }} + tar -xvf ./artifact/artifact.tar -C pr-${{ github.event.pull_request.number }} + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Commit and push PR preview + run: | + git add pr-${{ github.event.pull_request.number }} + git commit -m "Deploy PR #${{ github.event.pull_request.number }} preview" || echo "No changes to commit" + git push origin gh-pages + + - name: Comment PR with preview URL + uses: actions/github-script@v7 + with: + script: | + const prNumber = context.payload.pull_request.number; + const previewUrl = `https://php-debugger.github.io/pr-${prNumber}/`; + + const comment = `## 🚀 Preview Deployment + + Your changes have been deployed to a preview environment: + + **Preview URL:** ${previewUrl} + + This preview will be updated automatically when you push new commits to this PR.`; + + // Find existing preview comment + const { data: comments } = await github.rest.issues.listComments({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + }); + + const existingComment = comments.find(c => + c.user.login === 'github-actions[bot]' && + c.body.includes('Preview Deployment') + ); + + if (existingComment) { + // Update existing comment + await github.rest.issues.updateComment({ + owner: context.repo.owner, + repo: context.repo.repo, + comment_id: existingComment.id, + body: comment + }); + } else { + // Create new comment + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + body: comment + }); + } diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c5bd949 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Jekyll +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata +vendor/ + +# Ruby +Gemfile.lock +*.gem +.bundle/ + +# macOS +.DS_Store + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo +*~ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..d1461ca --- /dev/null +++ b/Gemfile @@ -0,0 +1,24 @@ +source "https://rubygems.org" + +gem "jekyll", "~> 4.3" +gem "minimal-mistakes-jekyll" + +group :jekyll_plugins do + gem "jekyll-feed" + gem "jekyll-seo-tag" + gem "jekyll-include-cache" + gem "jekyll-remote-theme" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", ">= 1", "< 3" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin] + +# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem +# do not have a Java counterpart. +gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] diff --git a/README.md b/README.md index 9e152e9..ee4526e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# website +# Website The code behind the public php-debugger.dev website diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..cf0654d --- /dev/null +++ b/_config.yml @@ -0,0 +1,38 @@ +# Site Settings +title: PHP Debugger +email: +description: >- + A PHP debugger extension focused on step debugging with near-zero overhead. +baseurl: "" +url: "https://php-debugger.github.io" +repository: "php-debugger/php-debugger" + +# Build settings +markdown: kramdown +remote_theme: "mmistakes/minimal-mistakes@4.26.2" + +# Minimal Mistakes theme settings +minimal_mistakes_skin: "default" + +# Site Author +author: + name: "PHP Debugger" + links: + - label: "GitHub" + icon: "fab fa-fw fa-github" + url: "https://github.com/php-debugger/php-debugger" + +# Defaults +defaults: + - scope: + path: "" + type: pages + values: + layout: single + author_profile: false + +# Plugins +plugins: + - jekyll-feed + - jekyll-seo-tag + - jekyll-include-cache diff --git a/index.md b/index.md new file mode 100644 index 0000000..d8ee1fa --- /dev/null +++ b/index.md @@ -0,0 +1,12 @@ +--- +layout: single +title: "Welcome to PHP Debugger" +--- + +## About PHP Debugger + +A PHP debugger extension focused on step debugging with near-zero overhead. Forked from [Xdebug](https://xdebug.org/), with profiling, coverage, and tracing removed. + +### Main Repository + +Visit the [PHP Debugger GitHub repository](https://github.com/php-debugger/php-debugger) to get started, view documentation, and contribute to the project. From 1f072be7c0cea13feffc9110a66cce78c995cd71 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 19:06:18 +0200 Subject: [PATCH 02/26] Use PR preview action --- .github/workflows/deploy.yml | 72 +++++------------------------------- 1 file changed, 10 insertions(+), 62 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc27a19..68fb05a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -69,13 +69,10 @@ jobs: if: github.event_name == 'pull_request' runs-on: ubuntu-latest needs: build + permissions: + contents: write + pull-requests: write steps: - - name: Checkout gh-pages branch - uses: actions/checkout@v4 - with: - ref: gh-pages - token: ${{ secrets.GITHUB_TOKEN }} - - name: Download artifact uses: actions/download-artifact@v4 with: @@ -84,61 +81,12 @@ jobs: - name: Extract artifact run: | - mkdir -p pr-${{ github.event.pull_request.number }} - tar -xvf ./artifact/artifact.tar -C pr-${{ github.event.pull_request.number }} - - - name: Configure Git - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - - name: Commit and push PR preview - run: | - git add pr-${{ github.event.pull_request.number }} - git commit -m "Deploy PR #${{ github.event.pull_request.number }} preview" || echo "No changes to commit" - git push origin gh-pages + mkdir -p preview + tar -xvf ./artifact/artifact.tar -C preview - - name: Comment PR with preview URL - uses: actions/github-script@v7 + - name: Deploy PR Preview + uses: rossjrw/pr-preview-action@v1 with: - script: | - const prNumber = context.payload.pull_request.number; - const previewUrl = `https://php-debugger.github.io/pr-${prNumber}/`; - - const comment = `## 🚀 Preview Deployment - - Your changes have been deployed to a preview environment: - - **Preview URL:** ${previewUrl} - - This preview will be updated automatically when you push new commits to this PR.`; - - // Find existing preview comment - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - }); - - const existingComment = comments.find(c => - c.user.login === 'github-actions[bot]' && - c.body.includes('Preview Deployment') - ); - - if (existingComment) { - // Update existing comment - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: existingComment.id, - body: comment - }); - } else { - // Create new comment - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - body: comment - }); - } + source-dir: preview + preview-branch: gh-pages + umbrella-dir: pr-preview From 1e404a2ae949db7957030e92a3a80511901b9683 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 19:28:23 +0200 Subject: [PATCH 03/26] Proper workflow --- .github/workflows/deploy.yml | 75 +++++------------------------------ .github/workflows/preview.yml | 39 ++++++++++++++++++ 2 files changed, 48 insertions(+), 66 deletions(-) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 68fb05a..eb868b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,24 +1,15 @@ -name: Deploy Jekyll site to GitHub Pages +name: Deploy to GitHub Pages on: push: branches: - main - pull_request: - types: [opened, synchronize, reopened] permissions: - contents: read - pages: write - id-token: write - pull-requests: write - -concurrency: - group: "pages-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'main' }}" - cancel-in-progress: true + contents: write jobs: - build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout @@ -30,63 +21,15 @@ jobs: ruby-version: '3.2' bundler-cache: true - - name: Setup Pages - id: pages - uses: actions/configure-pages@v4 - - name: Build with Jekyll - run: | - if [ "${{ github.event_name }}" == "pull_request" ]; then - # For PRs, build with baseurl pointing to PR-specific folder - bundle exec jekyll build --baseurl "/pr-${{ github.event.pull_request.number }}" - else - # For main branch, build to root - bundle exec jekyll build - fi + run: bundle exec jekyll build env: JEKYLL_ENV: production - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: _site - - # Deploy to main domain when merged into main - deploy-main: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 - - # Deploy to PR-specific folder on pull requests - deploy-pr: - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - needs: build - permissions: - contents: write - pull-requests: write - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: github-pages - path: ./artifact - - - name: Extract artifact - run: | - mkdir -p preview - tar -xvf ./artifact/artifact.tar -C preview - - - name: Deploy PR Preview - uses: rossjrw/pr-preview-action@v1 + uses: JamesIves/github-pages-deploy-action@v4 with: - source-dir: preview - preview-branch: gh-pages - umbrella-dir: pr-preview + folder: _site + branch: gh-pages + clean-exclude: pr-preview + force: false diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..588b293 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,39 @@ +name: Deploy PR previews + +concurrency: preview-${{ github.ref }} + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + if: github.event.action != 'closed' + + - name: Build with Jekyll + run: bundle exec jekyll build + env: + JEKYLL_ENV: production + if: github.event.action != 'closed' + + - name: Deploy PR Preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: _site + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto From 59b139c43f1b85bcac4a3c3ed007623fdc99f46b Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 19:42:02 +0200 Subject: [PATCH 04/26] Use checkout V6 --- .github/workflows/deploy.yml | 2 +- .github/workflows/preview.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eb868b0..f98c7bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Ruby uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 588b293..c31ce0a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Ruby uses: ruby/setup-ruby@v1 From da11c0e9d2e619ce7f2bcbfdce78f195a002dd52 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 19:49:37 +0200 Subject: [PATCH 05/26] Minimal mistakes setup --- Gemfile | 23 ++--------------------- _config.yml | 4 +--- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/Gemfile b/Gemfile index d1461ca..7de4793 100644 --- a/Gemfile +++ b/Gemfile @@ -1,24 +1,5 @@ source "https://rubygems.org" -gem "jekyll", "~> 4.3" -gem "minimal-mistakes-jekyll" +gem "github-pages", group: :jekyll_plugins +gem "jekyll-include-cache", group: :jekyll_plugins -group :jekyll_plugins do - gem "jekyll-feed" - gem "jekyll-seo-tag" - gem "jekyll-include-cache" - gem "jekyll-remote-theme" -end - -# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem -platforms :mingw, :x64_mingw, :mswin, :jruby do - gem "tzinfo", ">= 1", "< 3" - gem "tzinfo-data" -end - -# Performance-booster for watching directories on Windows -gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin] - -# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem -# do not have a Java counterpart. -gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] diff --git a/_config.yml b/_config.yml index cf0654d..4cbea69 100644 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,7 @@ repository: "php-debugger/php-debugger" # Build settings markdown: kramdown -remote_theme: "mmistakes/minimal-mistakes@4.26.2" +remote_theme: "mmistakes/minimal-mistakes@4.28.0" # Minimal Mistakes theme settings minimal_mistakes_skin: "default" @@ -33,6 +33,4 @@ defaults: # Plugins plugins: - - jekyll-feed - - jekyll-seo-tag - jekyll-include-cache From b1e1e557650b06c6cc5ab852cffacb749ce1e4e5 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:02:58 +0200 Subject: [PATCH 06/26] Use baseUrl --- .github/workflows/preview.yml | 2 +- Gemfile | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index c31ce0a..46ba607 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -25,7 +25,7 @@ jobs: if: github.event.action != 'closed' - name: Build with Jekyll - run: bundle exec jekyll build + run: bundle exec jekyll build --baseurl "/pr-preview/pr-${{ github.event.pull_request.number }}" env: JEKYLL_ENV: production if: github.event.action != 'closed' diff --git a/Gemfile b/Gemfile index 7de4793..5c41b36 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,17 @@ source "https://rubygems.org" gem "github-pages", group: :jekyll_plugins -gem "jekyll-include-cache", group: :jekyll_plugins +gem "tzinfo-data" +gem "wdm", "~> 0.1.0" if Gem.win_platform? + +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-paginate" + gem "jekyll-sitemap" + gem "jekyll-gist" + gem "jekyll-feed" + gem "jemoji" + gem "jekyll-include-cache" + gem "jekyll-algolia" +end From a45aea772ddb99405ac7a8c2c051788ca188f4e6 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:08:58 +0200 Subject: [PATCH 07/26] Use repo name in base url --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 46ba607..d67e56b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -25,7 +25,7 @@ jobs: if: github.event.action != 'closed' - name: Build with Jekyll - run: bundle exec jekyll build --baseurl "/pr-preview/pr-${{ github.event.pull_request.number }}" + run: bundle exec jekyll build --baseurl "/${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.pull_request.number }}" env: JEKYLL_ENV: production if: github.event.action != 'closed' From 3ff400b7b0e3625e3a8c837081c802d1a09aec43 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:16:24 +0200 Subject: [PATCH 08/26] Add logo, remove title --- _config.yml | 2 +- index.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 4cbea69..b02ee61 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,5 @@ # Site Settings -title: PHP Debugger +logo: "https://raw.githubusercontent.com/php-debugger/art/main/php-debugger-lockup.png" email: description: >- A PHP debugger extension focused on step debugging with near-zero overhead. diff --git a/index.md b/index.md index d8ee1fa..e03baed 100644 --- a/index.md +++ b/index.md @@ -1,9 +1,8 @@ --- layout: single -title: "Welcome to PHP Debugger" --- -## About PHP Debugger +## What is PHP Debugger? A PHP debugger extension focused on step debugging with near-zero overhead. Forked from [Xdebug](https://xdebug.org/), with profiling, coverage, and tracing removed. From 9f46449a79d76906de1d9268d1d26bb58bcd4d14 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:24:12 +0200 Subject: [PATCH 09/26] Modify logo size --- _config.yml | 1 + assets/css/main.scss | 14 ++++++++++++++ index.md | 1 + 3 files changed, 16 insertions(+) create mode 100644 assets/css/main.scss diff --git a/_config.yml b/_config.yml index b02ee61..5358338 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,5 @@ # Site Settings +title: logo: "https://raw.githubusercontent.com/php-debugger/art/main/php-debugger-lockup.png" email: description: >- diff --git a/assets/css/main.scss b/assets/css/main.scss new file mode 100644 index 0000000..49413ee --- /dev/null +++ b/assets/css/main.scss @@ -0,0 +1,14 @@ +--- +# Only the main Sass file needs front matter (the dashes are enough) +search: false +--- + +@charset "utf-8"; + +@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin +@import "minimal-mistakes"; // main partials + +// Custom styles +.site-logo img { + max-height: 4rem !important; +} diff --git a/index.md b/index.md index e03baed..7a9fe91 100644 --- a/index.md +++ b/index.md @@ -1,5 +1,6 @@ --- layout: single +title: --- ## What is PHP Debugger? From be8fc7b83d09d797313bad6a939ba735ec6d56d6 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:30:10 +0200 Subject: [PATCH 10/26] Remove feed and title --- _config.yml | 12 +++++++++++- index.md | 4 +--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 5358338..c446e96 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,5 @@ # Site Settings -title: +title: " " logo: "https://raw.githubusercontent.com/php-debugger/art/main/php-debugger-lockup.png" email: description: >- @@ -35,3 +35,13 @@ defaults: # Plugins plugins: - jekyll-include-cache + +# Footer +footer: + links: + - label: "GitHub" + icon: "fab fa-fw fa-github" + url: "https://github.com/php-debugger/php-debugger" + +atom_feed: + hide: true diff --git a/index.md b/index.md index 7a9fe91..df330ac 100644 --- a/index.md +++ b/index.md @@ -1,10 +1,8 @@ --- layout: single -title: +title: What is PHP Debugger? --- -## What is PHP Debugger? - A PHP debugger extension focused on step debugging with near-zero overhead. Forked from [Xdebug](https://xdebug.org/), with profiling, coverage, and tracing removed. ### Main Repository From 9a9d093d16ef2298a12c04fe574a817c2b62a63f Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:42:19 +0200 Subject: [PATCH 11/26] remove copyright, use splash layout --- _includes/footer.html | 19 +++++++++++++++++++ index.md | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 _includes/footer.html diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..83d9312 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,19 @@ + diff --git a/index.md b/index.md index df330ac..296c072 100644 --- a/index.md +++ b/index.md @@ -1,5 +1,5 @@ --- -layout: single +layout: splash title: What is PHP Debugger? --- From dd29fd97179950641347c8e808a9906c81b40f38 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:53:52 +0200 Subject: [PATCH 12/26] Remove copyright, add title --- _includes/footer.html | 2 ++ index.md | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 83d9312..296c982 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -17,3 +17,5 @@ {% endunless %} + + diff --git a/index.md b/index.md index 296c072..c28525d 100644 --- a/index.md +++ b/index.md @@ -1,9 +1,17 @@ --- layout: splash -title: What is PHP Debugger? --- +
+# What is PHP Debugger? +
-A PHP debugger extension focused on step debugging with near-zero overhead. Forked from [Xdebug](https://xdebug.org/), with profiling, coverage, and tracing removed. +A PHP debugging extension focused on step debugging with near-zero overhead. + +- Forked from [Xdebug](https://xdebug.org/), and fully compatible with it. +- Just debugging, with profiling, coverage, and tracing removed. +- Near-zero overhead when not connected, and much faster when active. +- Always on, no need to enable and disable it. +- Can be statically linked to your PHP binary, removing the need for a PHP extension. ### Main Repository From 195ce2a696f8f4983009cccfedac0b1e983a775c Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 20:58:30 +0200 Subject: [PATCH 13/26] Add title, make footer smaller --- assets/css/main.scss | 8 ++++++++ index.md | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 49413ee..88a7050 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -12,3 +12,11 @@ search: false .site-logo img { max-height: 4rem !important; } + +.page__footer { + padding: 1em 0 !important; +} + +.page__footer-copyright { + font-size: 0.8em; +} diff --git a/index.md b/index.md index c28525d..0317c2e 100644 --- a/index.md +++ b/index.md @@ -1,9 +1,7 @@ --- layout: splash --- -
# What is PHP Debugger? -
A PHP debugging extension focused on step debugging with near-zero overhead. From 090c8f9080606f9f1921ef4350f26281676a8d25 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:03:51 +0200 Subject: [PATCH 14/26] Make footer smaller --- assets/css/main.scss | 6 +----- index.md | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 88a7050..01d251b 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -14,9 +14,5 @@ search: false } .page__footer { - padding: 1em 0 !important; -} - -.page__footer-copyright { - font-size: 0.8em; + padding: 0.5em 0 !important; } diff --git a/index.md b/index.md index 0317c2e..940713a 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,7 @@ --- layout: splash --- + # What is PHP Debugger? A PHP debugging extension focused on step debugging with near-zero overhead. From 2a35d21d22681662a0124b75e5d0155aa5bd5674 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:10:32 +0200 Subject: [PATCH 15/26] Make footer smaller --- assets/css/main.scss | 6 ++++-- index.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 01d251b..ba1f7d3 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -13,6 +13,8 @@ search: false max-height: 4rem !important; } -.page__footer { - padding: 0.5em 0 !important; +.page__footer footer { + padding: 0 !important; + margin-top: 1em; !important; + margin-bottom: 1em; !important; } diff --git a/index.md b/index.md index 940713a..8845f42 100644 --- a/index.md +++ b/index.md @@ -1,7 +1,7 @@ --- layout: splash --- - +
# What is PHP Debugger? A PHP debugging extension focused on step debugging with near-zero overhead. From b84622422ba8d2540a0572a8bfdf710643f7b01d Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:12:13 +0200 Subject: [PATCH 16/26] Make footer smaller --- assets/css/main.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index ba1f7d3..5c6a017 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -15,6 +15,6 @@ search: false .page__footer footer { padding: 0 !important; - margin-top: 1em; !important; - margin-bottom: 1em; !important; + margin-top: 1em !important; + margin-bottom: 1em !important; } From 5865cbead34932892cb5edae7868038ebf0334e6 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:17:51 +0200 Subject: [PATCH 17/26] Make footer smaller --- assets/css/main.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 5c6a017..23833f2 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -13,7 +13,7 @@ search: false max-height: 4rem !important; } -.page__footer footer { +footer { padding: 0 !important; margin-top: 1em !important; margin-bottom: 1em !important; From 237678a9a2ddcbb8f2da78aaa211ae3d9a839b3e Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:24:07 +0200 Subject: [PATCH 18/26] Make footer smaller --- assets/css/main.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 23833f2..c1f9d21 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -13,8 +13,12 @@ search: false max-height: 4rem !important; } -footer { +.page__footer { padding: 0 !important; - margin-top: 1em !important; - margin-bottom: 1em !important; + + footer { + padding: 0 !important; + margin-top: 0.5em !important; + margin-bottom: 0.5em !important; + } } From 00d51286d9e66b919d641da8fc53fddfa18c3a82 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Thu, 14 May 2026 21:29:22 +0200 Subject: [PATCH 19/26] Make footer smaller --- assets/css/main.scss | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index c1f9d21..5294f5a 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -14,11 +14,8 @@ search: false } .page__footer { - padding: 0 !important; - footer { - padding: 0 !important; - margin-top: 0.5em !important; - margin-bottom: 0.5em !important; + margin-top: 1em !important; + margin-bottom: 1em !important; } } From 7d294f2b0c870bafbb88d79e06c873702df80bc2 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Fri, 15 May 2026 15:50:55 +0200 Subject: [PATCH 20/26] Make footer smaller --- assets/css/main.scss | 7 ------- 1 file changed, 7 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 5294f5a..49413ee 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -12,10 +12,3 @@ search: false .site-logo img { max-height: 4rem !important; } - -.page__footer { - footer { - margin-top: 1em !important; - margin-bottom: 1em !important; - } -} From e7a2cdbc50e318d2365eb44f803544d2608eca7a Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Fri, 15 May 2026 15:58:36 +0200 Subject: [PATCH 21/26] dark/light mode --- _config.yml | 4 ++- _includes/head.html | 67 +++++++++++++++++++++++++++++++++++++++++ _includes/masthead.html | 44 +++++++++++++++++++++++++++ assets/css/theme2.scss | 7 +++++ 4 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 _includes/head.html create mode 100644 _includes/masthead.html create mode 100644 assets/css/theme2.scss diff --git a/_config.yml b/_config.yml index c446e96..ccd5a19 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,7 @@ # Site Settings title: " " logo: "https://raw.githubusercontent.com/php-debugger/art/main/php-debugger-lockup.png" +logo_dark: "https://raw.githubusercontent.com/php-debugger/art/main/php-debugger-lockup-white.png" email: description: >- A PHP debugger extension focused on step debugging with near-zero overhead. @@ -13,7 +14,8 @@ markdown: kramdown remote_theme: "mmistakes/minimal-mistakes@4.28.0" # Minimal Mistakes theme settings -minimal_mistakes_skin: "default" +minimal_mistakes_skin: "contrast" +minimal_mistakes_skin2: "dark" # Site Author author: diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..8fa62fc --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,67 @@ + + +{% include seo.html %} + +{% unless site.atom_feed.hide %} + +{% endunless %} + + + + + + + + +{% if site.minimal_mistakes_skin2 %} + + +{% endif %} + + + + +{% if site.head_scripts %} + {% for script in site.head_scripts %} + + {% endfor %} +{% endif %} diff --git a/_includes/masthead.html b/_includes/masthead.html new file mode 100644 index 0000000..9a3e75a --- /dev/null +++ b/_includes/masthead.html @@ -0,0 +1,44 @@ +{% capture logo_path %}{{ site.logo }}{% endcapture %} +{% capture logo_path_dark %}{{ site.logo_dark }}{% endcapture %} + +
+
+
+ +
+
+
diff --git a/assets/css/theme2.scss b/assets/css/theme2.scss new file mode 100644 index 0000000..441edad --- /dev/null +++ b/assets/css/theme2.scss @@ -0,0 +1,7 @@ +--- +--- + +@charset "utf-8"; + +@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin2 | default: 'default' }}"; // skin +@import "minimal-mistakes"; // main partials From 33beb6d233929f9fce337e0b243a7f1319ba58a2 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Fri, 15 May 2026 16:06:41 +0200 Subject: [PATCH 22/26] dark/light mode --- _includes/head.html | 1 + assets/css/custom.scss | 7 +++++++ assets/css/main.scss | 5 ----- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 assets/css/custom.scss diff --git a/_includes/head.html b/_includes/head.html index 8fa62fc..1677cd4 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -15,6 +15,7 @@ + {% if site.minimal_mistakes_skin2 %}