reliqarts/laravel-docweaver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

reliqarts/laravel-docweaver

Composer 安装命令:

composer require reliqarts/laravel-docweaver

包简介

An easy-to-use product documentation package for Laravel.

README 文档

README

An easy-to-use product documentation package for Laravel.

Docweaver is suitable for product documentation and/or knowledge bases. Converts folder(s) of .md files into full-bread complete documentation. Docweaver is inspired by Laravel's very own documentation.

Built For Laravel Build Status (all) Scrutinizer Codecov Maintainability License Latest Stable Version Latest Unstable Version check it out!

 

Key Features

Docweaver provides the following features and more out of the box.

  • Multi-product support
    • Docweaver supports multiple products out-the-box. Just create your product folders and drop in your documentation version directories.
  • Plug and play
    • Just install and configure and you're golden! (approx. 2min)

Installation & Usage

Installation

Install via composer; in console:

composer require reliqarts/laravel-docweaver

or require in composer.json:

{
    "require": {
        "reliqarts/laravel-docweaver": "^2.0"
    }
}

then run composer update in your terminal to pull it in.

Once this has finished, you will need to add the service provider to the providers array in your app.php config as follows: (n.b. This package supports Laravel's package auto-discovery; if you are using Laravel 5.5 or above you can skip this step.)

ReliqArts\Docweaver\ServiceProvider::class,

Ensure that your applications public storage directory is linked and accessible via the browser.

php artisan storage:link

see: https://laravel.com/docs/master/filesystem

Finally, publish package resources and configuration:

php artisan vendor:publish --provider="ReliqArts\Docweaver\ServiceProvider"

You may opt to publish only configuration by using the docweaver-config tag:

php artisan vendor:publish --provider="ReliqArts\Docweaver\ServiceProvider" --tag="docweaver-config"

Setup

Set the desired environment variables so the package knows your image model, controller(s), etc.

Example environment config:

DOCWEAVER_ROUTE_PREFIX=docs
DOCWEAVER_DIR=resources/docs

These variables, and more are explained within the config file.

Documentation Directory

The documentation directory is the place where you put your project documentation directories. It may be changed with the config key docweaver.storage.dir or the environment variable DOCWEAVER_DIR. The default documentation directory is resources/docs.

Structure

Each project directory should contain separate folders for each documented version. Each version must have at least two (2) markdown files, namely documentation.md and installation.md, which serve as the sidebar and initial documentation pages respectively.

[doc dir]
    │
    └─── Project One
    │       └── 1.0 
    │       └── 2.1
    │            └── .docweaver.yml       # meta file (optional)
    │            └── documentation.md     # sidebar nav
    │            └── installation.md      # initial page
    │
    └─── Project Two

Meta File

Configurations for each doc version may be placed in .docweaver.yml. The supported settings are:

  • name

    Product name.

  • description

    Product description.

  • image_url

    Product image url. This may be an absolute url (e.g. http://mywebsite.com/myimage.jpg) or an image found in the images resource directory.

    To use the foo.jpg in the images directory you would set image_url to {{docs}}/images/foo.jpg.

    For more info. see: Assets

Acknowledgements

This package was inspired by Laravel's documentation and uses its underlying mechanism as a base.

reliqarts/laravel-docweaver 适用场景与选型建议

reliqarts/laravel-docweaver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 453 次下载、GitHub Stars 达 44, 最近一次更新时间为 2019 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「documentation」 「package」 「doc」 「generation」 「content」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 reliqarts/laravel-docweaver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 reliqarts/laravel-docweaver 我们能提供哪些服务?
定制开发 / 二次开发

基于 reliqarts/laravel-docweaver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 44
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-23