cecil / theme-docs
Cecil 主题文档
资助包维护!
ArnaudLigny
Open Collective
2.29.6
2024-07-04 14:11 UTC
Requires
- cecil/theme-installer: ^1.0||^2.0
- dev-main
- 2.29.6
- 2.29.5
- 2.29.4
- 2.29.3
- 2.29.2
- 2.29.1
- 2.29.0
- 2.28.1
- 2.28.0
- 2.27.1
- 2.27.0
- 2.26.0
- 2.25.4
- 2.25.3
- 2.25.2
- 2.25.1
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.1
- 2.22.0
- 2.21.1
- 2.21.0
- 2.20.2
- 2.20.1
- 2.20.0
- 2.19.0
- 2.18.11
- 2.18.10
- 2.18.9
- 2.18.8
- 2.18.7
- 2.18.6
- 2.18.5
- 2.18.4
- 2.18.3
- 2.18.2
- 2.18.1
- 2.18.0
- 2.17.1
- 2.17.0
- 2.16.0
- 2.15.16
- 2.15.15
- 2.15.14
- 2.15.13
- 2.15.12
- 2.15.11
- 2.15.10
- 2.15.9
- 2.15.8
- 2.15.7
- 2.15.6
- 2.15.5
- 2.15.4
- 2.15.3
- 2.15.2
- 2.15.1
- 2.15.0
- 2.14.2
- 2.14.1
- 2.14.0
- 2.13.3
- 2.13.2
- 2.13.1
- 2.13.0
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.1
- 2.11.0
- 2.10.4
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.1
- 2.7.0
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-09-16 14:26:33 UTC
README
为 Cecil 提供的文档主题,由 Tailwind CSS 和 Algolia DocSearch 支持。
功能
- 自动生成的导航侧边栏
- Algolia DocSearch 集成
- 内容本地化(l10n)就绪
- 模板国际化(i18n)
- 移动端友好
- 暗色主题
- 博客文章模板
安装
composer require cecil/theme-docs
或者 下载最新存档 并将其内容解压到
themes/docs
目录。
用法
在 config.yml
的 theme
部分添加 docs
theme: - docs
配置
sidebar: - <group> - <group> footer: Copyright © %author% github: repo: https://github.com/<org>/<repo> branch: <main|master> docsearch: enabled: true|false appId: <YOUR_APP_ID> indexName: <YOUR_INDEX_NAME> apiKey: <YOUR_SEARCH_API_KEY> debug: false|true
自定义样式
创建 Tailwind 配置 文件 tailwind.config.js
// uncomment to define custom colors //const colors = require('tailwindcss/colors'); module.exports = { presets: [ require('./themes/docs/tailwind.preset.js') ], content: [ './layouts/**/*.html.twig', './themes/**/layouts/**/*.html.twig', ], // uncomment to define custom colors /*theme: { extend: { // https://tailwind.org.cn/docs/customizing-colors colors: { primary: colors.blue, secondary: colors.slate, }, }, }*/ }
运行以下命令
npm install -D tailwindcss npx tailwindcss -i ./themes/docs/tailwind.css -o ./assets/styles.css
开发
安装依赖
npm install
重新构建 CSS
npx tailwindcss -c ./tailwind.preset.js -i ./tailwind.css -o ./assets/styles.css
许可证
Docs 主题是免费软件,根据 MIT 许可证条款分发。