定制 marko/docs-markdown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marko/docs-markdown

Composer 安装命令:

composer require marko/docs-markdown

包简介

Canonical Marko documentation content package

README 文档

README

Canonical Marko documentation as a Composer package — provides MarkdownRepository for content access by docs search drivers.

Overview

marko/docs-markdown ships the raw Markdown source of the Marko documentation tree. It is not a search package; it is a data package. The MarkdownRepository class exposes the doc files so that driver packages (marko/docs-fts, marko/docs-vec) can index them without bundling their own copy of the content. This ensures all drivers always index the same canonical documentation.

Installation

composer require marko/docs-markdown

Docs search drivers (marko/docs-fts, marko/docs-vec) require this automatically — you typically do not need to install it directly.

Usage

use Marko\DocsMarkdown\MarkdownRepository;

$repo = $container->get(MarkdownRepository::class);

foreach ($repo->all() as $doc) {
    echo $doc->path;    // Relative path, e.g. "getting-started/installation.md"
    echo $doc->title;   // Extracted from first H1
    echo $doc->content; // Raw Markdown content
}

$doc = $repo->find('getting-started/installation');

API Reference

  • MarkdownRepository::all() — Return all documentation files as MarkdownDoc[]
  • MarkdownRepository::find(string $path) — Return a single doc by path (without .md extension)
  • MarkdownDoc::$path — Relative path within the docs tree
  • MarkdownDoc::$title — Title extracted from first H1 heading
  • MarkdownDoc::$content — Full Markdown content

Documentation

Full usage: marko/docs-markdown

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固