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
0.2.1
  • Fix: breadcrumb 404 on nested pages without a section index. Directory crumbs now resolve to the section's index.html when one 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

Features

  • navigationOrder(array $order) — configure the sidebar page sequence. Entries match a page title, sidebar_label, relative Markdown path, or output path (case-insensitive); unlisted pages keep their existing order. Wired through Builder → SiteMetadata → SiteBuilder (incl. versioned builds).
  • Configurable DocSmith attribution badge (showDocsmithBadge()) with aria-label="Built with DocSmith".
  • Code copy button — anchored to the active code block (block whose center is closest to a 45%-viewport probe line), positioned at its top-right and clamped into view. Hover-only on pointer devices; always visible over the active block on touch devices.
  • Scrollable tables — .doc-body table { display: block; overflow-x: auto }; tables scroll internally instead of breaking the layout.
  • Long-token wrapping — overflow-wrap: anywhere on .doc-body, .doc-head, .hero; mobile .shell uses minmax(0, 1fr). Zero horizontal overflow verified at 320/390/768 px (<pre> still scrolls internally).
  • Mobile drawer positioning — the sidebar panel is pinned to the sticky header's bottom edge (re-synced on open/resize/load/fonts) so content never hides behind the header.
  • Modern hamburger toggle — borderless ghost button with a two-bar SVG icon (bottom bar shorter) that swaps to an X when open; hover tint, :focus-visible ring, press scale, icon-only everywhere.

Markdown rendering

  • Tables wrapped in .table-scroll containers server-side (CommonMarkRenderer::wrapTables()).
  • Trailing newlines trimmed from code blocks before highlighting.

Open Graph cards

  • Refreshed slate design (#0f172a base / #1e293b accents / #94a3b8 muted / #334155 divider).
  • Title (2 lines) and description (3 lines) line-clamped to prevent overflow.

Fixes & tooling

  • PHPStan fixes in sortNavigationDocuments() (docblock formatting, typed casts); Rector cleanup.
0.1.10
  • Configurable DocSmith attribution badge in the sidebar (showDocsmithBadge() builder option).
0.1.9
  • Fix: corrected the Edit this page link generation.
0.1.8
  • Fix: improved og:image handling for subpath base URLs.
0.1.7
  • Fix: OG image generation edge cases ("og image stuff").
0.1.6

Open Graph images

  • OG image generation with capturist cache — ogGeneratedPerPage(), ogTemplate(), captureOg() support.
  • Uses capturist 0.1.3 native cache for incremental OG builds (no re-render on unchanged pages).
  • Playwright + capturist explicitly required as OG dependencies.

CI & packaging

  • Docs GitHub Actions without npm lockfile cache.
  • .gitattributes / .gitignore updated for /docs and /node_modules.
  • laravel/pao added to require-dev.
0.1.5

Features

  • Standalone bin/docsmith CLI command.
  • Fix: llms.txt / llms-full.txt export for versioned builds.

Chore

  • composer.lock added to .gitignore.
  • Docs: CLI usage documented.
0.1.4

Features

  • Versioned documentation with a version switcher — switcher links respect baseUrl and preserve the current page; default (no versions) builds to root without duplication.
  • Keyboard-navigation search overlay (⌘K) with live results, "1 character" minimum, and fixed reopen/close loop bugs.
  • AI-agent exports: llmsExport() generates llms.txt, llms-full.txt, and a plain-Markdown export page.
  • Front-matter hidden support — pages marked hidden are excluded from the site/nav.
  • GitHub Actions workflow for automatic documentation builds.

Docs

  • Pages added for versioned docs, LLM export, search overlay, frontmatter hidden, and a CI example.
0.3.0-beta.1

Features

  • Docs Hub — build several independent documentation sets into one site via ->hub(). Each entry gets a single dropdown option mounted at /{slug}/; the root forwards to the first entry. A hub entry may embed its own versions list: it stays one dropdown item while its pages carry v1/v2 pills.
  • Remote Sources — pull Markdown documentation from other Git repositories into your project via a new docsmith.sources.php manifest and docsmith sync / build --sync. Implemented on top of mrpunyapal/git-reader, a standalone read-only Git smart-HTTP client (protocol v0, shallow deepen 1 fetches, streaming packfile parser with ofs/ref delta support): no provider APIs, no system git binary, no clones, works with GitHub/GitLab/Bitbucket/Gitea/self-hosted over plain HTTPS. Includes ref resolution (branch/tag/annotated-tag peel/tip SHA), SHA-keyed incremental sync via docsmith.sources.lock.json, atomic staging materialization with path-traversal/symlink/device-name guards, size & file-count budgets, typed error taxonomy, and a deterministic offline wire-protocol test suite.

Changed

  • Versioned docs refined (existing feature): the header dropdown switcher is replaced by v1/v2 pill buttons on every page; per-version sidebar order via a navigation key with fallback to global ->navigationOrder(); versioned builds are fully decoupled from hub builds internally.
  • Hub dropdown UI uses .hub-switcher / .hub-select (data-docsmith-hub-*) so hub and version markup are named after their own features.
  • Generated assets renamed to assets/app.css / assets/app.js consistently across single-site, versioned, and hub builds.

Fixed

  • Stale root assets: previously built sites kept their old app.js / app.css forever because assets were only copied when the output assets/ directory did not exist. Root assets now refresh on every build.
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