定制 wpjscc/wn-nabu-theme 二次开发

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

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

wpjscc/wn-nabu-theme

Composer 安装命令:

composer require wpjscc/wn-nabu-theme

包简介

An elegant theme designed for documentation sites.

README 文档

README

Nabu logo

An elegant theme designed for documentation sites, using the powerful features of the Winter CMS Docs and Search plugins to provide a streamlined documentation browsing experience.

Requirements

  • Winter CMS v1.2 or above, with the following plugins installed:
    • Winter.Docs
    • Winter.Search
  • NodeJS v14.0 or above
  • NPM v6.0 or above

Features

  • Full integration of the Docs and Search plugin functionality to navigate and display multiple instances of documentation.
  • Supports both user and developer Markdown documentation, as well as API documentation generated from PHP projects.
  • Displays a light or dark theme depending on the operating system theme, but can be overridden by the user.
  • Built entirely with Tailwind, allowing full flexibility of the look and feel of the site.
  • AJAX driven navigation and client-side caching ensures documentation loads quick and can be navigated to even quicker.

Development

This theme has been built using Tailwind for the styling and Snowboard for the JavaScript functionality, taking advantage of the Mix asset compilation included in Winter CMS. To compile the theme, simply install the necessary libraries required for Mix:

php artisan mix:install

Then, you can compile the theme for production use:

php artisan mix:compile --production -p theme-nabu

You can also set up the theme to watch for changes, recompiling the theme each time a change is made to the stylesheets or templates:

php artisan mix:watch --production -p theme-nabu

By default, this theme is setup to not include the compiled assets in source control, as it is recommended that you include the compilation process above in a build or deployment script. However, if you wish to include the compiled assets in your source control, you may remove the following section from the .gitignore definition:

# Ignore compiled assets
assets/css/theme.css
assets/js/build/app.js

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 5
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-11