orbit-sys-dev/laravel-dev-docs-viewer
最新稳定版本:v0.1.0
Composer 安装命令:
composer require orbit-sys-dev/laravel-dev-docs-viewer
包简介
Docs viewer dashboard for Laravel projects (browsing docs directory).
README 文档
README
Live site (GitHub Pages): EN / JA
Read in Japanese: README.ja.md
Development docs usage (JA): docs/guide/development_usage.md
App docs usage (JA): docs/guide/app_docs_usage.md
Contributing: CONTRIBUTING.md / CONTRIBUTING.ja.md
Laravel plugin for browsing documents under docs/. It packages the orbit-ops /dev/docs screen so you can drop it into any project with a simple composer require.
UI preview
Installation
- Install
composer require orbit-sys-dev/laravel-dev-docs-viewer
- Publish config (and views if you want to customize layout/translations)
php artisan vendor:publish --tag=docs-viewer-config
php artisan vendor:publish --tag=docs-viewer-views # when you want to tweak layout or translations
.envexample
DOCS_VIEWER_ROOT_DIR=docs DOCS_VIEWER_APP_PATH=docs/app DOCS_VIEWER_ROUTE_PREFIX=dev/docs DOCS_VIEWER_ROUTE_NAME_PREFIX=dev.docs. DOCS_VIEWER_MIDDLEWARE=web,auth DOCS_VIEWER_LOCALE=ja DOCS_VIEWER_AVAILABLE_LOCALES=ja,en DOCS_VIEWER_LOCALE_QUERY=lang DOCS_VIEWER_LAYOUT=docs-viewer::layouts.docs DOCS_VIEWER_DASHBOARD_URL=/ops DOCS_VIEWER_DASHBOARD_LABEL="Back to Dev Dashboard" DOCS_VIEWER_HOME_URL=/ DOCS_VIEWER_HOME_LABEL="Back to Home"
- Place your
docs/directory
Drop in a structure such as docs/app and docs/development/{memo,operation,task} and you can use it immediately. Open /dev/docs in your browser to verify.
Routing
Default routes (prefix and middleware are configurable):
GET /dev/docs→ Top (dev.docs.viewer)GET /dev/docs/app→ App docs list (dev.docs.app)GET /dev/docs/development→ Development cards (dev.docs.development)GET /dev/docs/development/{group}→ Development group list (dev.docs.development.group)GET /dev/docs/file→ Single file view (dev.docs.viewer.file,?path=...)
Configuration notes
root_dir: Relative path to the docs root (defaultdocs)app_docs_path: Path for the App docs category (appended to the root)development_groups: Array of labels/paths for Development groupsroute.prefix/route.name_prefix/route.middleware: Switch routing and middlewarelayout: Layout Blade. Defaults to the bundled simple layout; override to use your app layout.dashboard_url: Target for “Back to Dev Dashboard”. Set null to hide.timezone: Timezone used for date display. Falls back toconfig('app.timezone')when unset.locale/locales/locale_query_key: Set default locale and the URL query key (defaultlang). Switch languages with?lang=en, etc.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-20
