mykemeynell/inkstone 问题修复 & 功能扩展

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

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

mykemeynell/inkstone

Composer 安装命令:

composer require mykemeynell/inkstone

包简介

Generate beautiful deployable Laravel documentation sites from Markdown with minimal configuration.

README 文档

README

Inkstone generates static documentation sites from Markdown for Laravel projects and standalone PHP package repositories.

View the Demo Documentation

Install

composer require mykemeynell/inkstone --dev

Standalone Usage

Use the package binary when the target project is not a full Laravel application:

vendor/bin/inkstone docs:build --source=docs --output=build/docs

Useful options:

  • --source=docs sets the Markdown source directory.
  • --output=build/docs sets the generated static site directory.
  • --base-url=/docs sets the base URL when the generated site is mounted below a subdirectory.
  • --config=inkstone.php loads an optional PHP config file and merges it over the defaults.

Laravel Usage

Inside a Laravel application, use the Artisan commands registered by the service provider:

php artisan docs:install
php artisan docs:build
php artisan docs:serve
php artisan docs:clean

docs:install publishes Inkstone configuration, starter docs, theme assets, and deployment examples. docs:build writes deployable static HTML into build/docs by default.

Configuration

Inkstone uses config/inkstone.php inside Laravel applications. In standalone package repositories, create inkstone.php or config/inkstone.php in the package root.

<?php

use Phiki\Theme\Theme;

return [
    'source_path' => __DIR__.'/docs',
    'output_path' => __DIR__.'/build/docs',

    'site' => [
        'title' => env('INKSTONE_TITLE', 'Package Documentation'),
        'description' => env('INKSTONE_DESCRIPTION', 'Static documentation site.'),
        'base_url' => env('INKSTONE_BASE_URL', ''),
    ],

    'theme' => [
        'syntax_highlighting' => [
            'enabled' => true,
            'theme' => [
                'light' => Theme::GithubLight,
                'dark' => Theme::GithubDark,
            ],
        ],
    ],

    'search' => [
        'enabled' => true,
        'driver' => env('INKSTONE_SEARCH_DRIVER', 'json'),
    ],

    'github' => [
        'repository' => env('INKSTONE_GITHUB_REPOSITORY', 'https://github.com/vendor/package'),
        'branch' => env('INKSTONE_GITHUB_BRANCH', 'main'),
    ],
];

Build Output

Generated sites use pretty URLs by default:

build/docs/index.html
build/docs/installation/index.html
build/docs/search-index.json

The output can be deployed to GitHub Pages, Cloudflare Pages, Netlify, Vercel, or any static host.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固