Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Docsmith Laravel Package

mrpunyapal/docsmith

Docsmith builds static documentation sites from Markdown with zero frontend setup. It offers searchable sidebar navigation, syntax-highlighted code with copy buttons, an optional table of contents, and generated search index, sitemap, and .nojekyll files for GitHub Pages.

View on GitHub
Deep Wiki
Context7
v0.5.2

What's Changed

Full Changelog: https://github.com/MrPunyapal/docsmith/compare/v0.5.1...v0.5.2

v0.3.0

First stable release of the 0.3.0 line.

Docs Hub - new

Build several independent documentation sets into one site:

Docsmith::make()->output('docs')->hub([
    'package-a' => ['label' => 'Package A', 'source' => 'md/package-a'],
    'auth-jobs' => [
        'label' => 'Auth Jobs',
        'source' => 'md/auth-jobs',
        'versions' => [   // optional: one dropdown item, pills inside
            ['slug' => 'v2', 'label' => 'v2', 'default' => true],
            ['slug' => 'v1', 'label' => 'v1', 'source' => 'md/auth-jobs-1x'],
        ],
    ],
])->build();

Each entry mounts at /{slug}/ with one sidebar dropdown option; the root forwards to the first entry.

Versioned docs - refined

The existing versions() feature keeps its contract and gains a pill switcher on every page (replacing the header dropdown) plus per-version sidebar order through a navigation key.

Remote sources - new

docsmith sync pulls Markdown from any Git host over smart HTTPS: no git binary, no clones, incremental sync via docsmith.sources.lock.json, atomic materialization with safety guards. Private repositories are supported through mrpunyapal/git-reader 0.2: set token => ${ENV_VAR} in docsmith.sources.php, or rely on DOCSMITH_TOKEN / GITHUB_TOKEN fallbacks, or place values in a .env file next to your manifest (real environment variables always win; the .env is loaded automatically during sync and build --sync).

Fixed

  • Rebuilt sites kept stale assets/app.js and assets/app.css forever, which broke the theme toggle and hub dropdown after upgrading. Root assets are now refreshed on every build.

Notes

  • Requires PHP 8.3+.
  • Full details: CHANGELOG.md.
v0.3.0-beta.1

Pre-release of the 0.3.0 feature set.

New

  • Docs Hub - "hub()": independent doc sets with a sidebar dropdown, one option per package. A hub entry may embed its own versions list (one dropdown item, pills on its pages).
  • Remote Sources - "docsmith sync" / RemoteSources::sync() pulls Markdown from any Git host over smart HTTPS (no git binary, no clones) into md/. Works for single, versioned, and hub builds alike.

Refined

  • Versioned docs (existing feature): pill switcher on every page replaces the old header dropdown; per-version sidebar order via navigation key.

Fixed

  • Stale root assets on rebuilt sites: old app.js/app.css survived rebuilds and broke the theme toggle and hub select after upgrading.

All three features are independent - each works alone, none depends on another.

0.2.1

Fixes

  • Breadcrumb 404 on nested pages without a section index. Directory crumbs now resolve to the section's index.html when it exists, otherwise to the first page inside that directory (respecting frontmatter order / navigation sort) instead of linking to a page that was never generated.
0.2.0

What's new

  • navigationOrder() — configure the sidebar page sequence by matching page title, sidebar_label, relative Markdown path, or output path. Unlisted pages keep their existing order.
  • Scrollable tables — markdown tables are wrapped in horizontally scrollable containers so they never overflow the page.
  • Code blocks — trailing newlines are trimmed before highlighting.
  • Docs UI polish
    • Copy button anchored to the active code block's top-right; visible on hover on pointer devices, always visible over the active block on touch devices.
    • Long tokens wrap gracefully; tables scroll internally without page overflow.
    • Mobile drawer aligns flush below the sticky header; modern two-bar hamburger toggles to a close (X) icon.
  • OG cards — refreshed slate design with line-clamped title/description.
  • Accessibility — aria-label on the DocSmith attribution badge.

Chore

  • Docs regenerated.
0.1.10

What's new

  • Added a configurable "Built with DocSmith" attribution badge at the bottom of the sidebar.
    • Shown by default; disable via ->showDocsmithBadge(false), the showDocsmithBadge: false static API arg, or --no-docsmith-badge on the CLI.
    • Styled to match the docs theme (accent heart icon + wordmark; borderless and minimal).
  • Documented the badge in the Usage docs and CLI reference.
0.1.9

What's Changed

  • Added editPrefix option to correctly prefix edit-this-page URLs with source directory paths (e.g. md/)
  • Configurable via Builder, Facade, or CLI (--edit-prefix)

Usage

Docsmith::editPrefix('md')->build();

0.1.6
0.1.5

What's Changed

Full Changelog: https://github.com/MrPunyapal/docsmith/compare/0.1.4...0.1.5

0.1.4

What's Changed

New Contributors

Full Changelog: https://github.com/MrPunyapal/docsmith/compare/0.1.3...0.1.4

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings