Skip to content

Conversation

@virtualguard101
Copy link
Owner

@virtualguard101 virtualguard101 commented Nov 4, 2025

Note

Major v3 refactor introducing a new CLI, simplified configuration, streamlined plugin with recent-notes and network graph, and extensive doc/test updates while removing legacy code.

  • Core Architecture (v3):
    • Replace legacy modules with utils.scanner, utils.meta, and revamped graph utilities; remove old assets/docs handlers and custom logger.
    • Rename/simplify config to MkdocsNoteConfig with notes_root, recent_notes_config, graph_config.
  • CLI:
    • Rewritten mkdocs-note with commands: new, remove/rm, move/mv, clean; shared utils in utils/cli/commands and utils/cli/common.
    • Improved versioning, help, confirmations, dry-run, and asset co-location handling.
  • Plugin:
    • Streamlined file scanning and frontmatter validation; insert recent notes via single <!-- recent_notes --> marker.
    • Integrated network graph: static resource injection, options injection, and graph.json generation post-build.
  • Docs & Config:
    • Update docs to focus on CLI, recent-notes single marker, and graph graph_config; deprecate/unpublish older pages.
    • Update mkdocs.yml to new config schema; pyproject.toml version bump to 3.0.0.
  • Tooling & Tests:
    • Switch tests to pytest; add extensive tests for CLI, config, plugin; remove obsolete tests.
    • Update justfile test command; remove vercel.json; refresh lockfile.

Written by Cursor Bugbot for commit 3d46ed8. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.


except Exception as e:
log.error(f"Error executing new command: {e}")
return
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate asset directory creation on success.

In NewCommand.execute, the asset directory is created twice when validation succeeds. The code on lines 72-73 duplicates the asset directory creation logic already present on lines 66-67, leading to redundant operations.

Fix in Cursor Fix in Web

Returns:
MkdocsNoteConfig: The plugin configuration
"""
return plugin.config
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Static attribute access causes runtime AttributeError

The get_plugin_config function tries to access plugin.config. Since plugin refers to the MkdocsNotePlugin class rather than an instance, and config is an instance attribute, this will result in an AttributeError at runtime.

Fix in Cursor Fix in Web

@virtualguard101 virtualguard101 merged commit 1f80108 into main Nov 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants