承接 schmunk42/yii2-markdocs-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

schmunk42/yii2-markdocs-module

最新稳定版本:1.2.0

Composer 安装命令:

composer require schmunk42/yii2-markdocs-module

包简介

Renders markdown files from local folder as views

README 文档

README

Renders markdown files from URLs or local files in views.

You can either display the documentation of your online GitHub repo nicely rendered in a custom theme. Or provide application documention in the backend from local files.

Requirements

  • configured pheme/yii2-settings module and component
  • configured RBAC access control, permission: docs_default

Installation

The preferred way to install this extension is through composer.

Run

composer require schmunk42/yii2-markdocs-module "*"

Configuration

Usage

Configuration

Via Settings module

Section: <module-id>

Keys

  • markdownUrl
  • forkUrl
  • defaultIndexFile
  • cachingTime

Keys can also be prefixed with a schema key, eg guide.markdownUrl and selected via URL parameter docs/?schema=guide, so you can include multiple documentations within a single module.

Render Markdown markdocs/default

Can render local files or raw data from an URL.

Render API documentation markdocs/html

Example command for dmstr/phd5-app

$ php -dmemory_limit=512M vendor/bin/apidoc api \
    --template=online \
    --exclude=yiisoft,Test,Tests,test,tests,ezyang,phpdocumentor,nikic,php_codesniffer,phptidy,php-cs-fixer,faker \
    src/,vendor/ \
    runtime/html

dmstr logo Built by dmstr

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-16