Skip to content

Standalone blog broken on Insiders #5922

@StarfallProjects

Description

@StarfallProjects

Context

No response

Bug description

I am using Insiders to build a standalone blog site. I just realised my latest builds aren't actually generating the blog: the blog posts aren't getting added to the nav or displayed on the site.

Related links

Reproduction

9.2.5+insiders.4.40.1-insiders-blog-borked.zip

Steps to reproduce

  1. Create a fresh project and fresh virtual env, per the reproduction guide
  2. Install the latest Insider with pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git (replace token with your token)
  3. Set the site up to be a standalone blog site:
plugins:
  - blog:
      blog_dir: .

My full mkdocs.yml:

site_name: My Docs
theme:
  name: material
plugins:
  - info
  - blog:
      blog_dir: .
nav:
  - index.md
  1. Run locally with mkdocs serve

Result is the site builds. It warns you the blog posts aren't included in the navigation, and they do not appear on the site.

Python version 3.11.2 when creating the reproduction, but have seen the issue on 3.10.x as well. Issue has occurred both locally and on my live site built with Cloudflare Pages. Worth noting I updated to a newer Python version as a fix for another issue (which I believe has already been reported here: #5916)

This issue only appeared recently, but I can't pinpoint when exactly (I have a horrible feeling my blog has been down a couple of days without me noticing) As a temporary fix I replaced Insiders with normal Material, and that's working fine (also worked fine with the minimal reproduction)

The issue only seems to affect standalone blogs. When I changed the minimal repro to use the default blog directory, it worked.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions