mecha-cms / mecha
极简内容管理系统。
v3.1.0
2024-09-29 08:22 UTC
Requires
- php: >=7.3
- ext-json: *
- mecha-cms/composer: ^1.0.0
- mecha-cms/x.asset: ^2.0.0
- mecha-cms/x.layout: ^2.0.0
- mecha-cms/x.link: ^2.0.0
- mecha-cms/x.markdown: ^3.0.0
- mecha-cms/x.page: ^3.1.0
- mecha-cms/x.test: ^1.0.0
- mecha-cms/y.log: ^2.0.0
Suggests
- ext-curl: We will use `file_get_contents()` if `ext-curl` is not installed. It will be more efficient when `curl_*()` functions are available.
- ext-gd: Required if you are interested in installing the `mecha-cms/x.image` extension.
- ext-mbstring: It would be great if `ext-mbstring` is installed. We will use other ways if `ext-mbstring` is not available.
- ext-zip: Required if certain extensions (such as `mecha-cms/x.panel`) need to work with ZIP files.
README
Mecha 是一个为极简主义者设计的扁平文件内容管理系统。
前端
默认布局仅使用 Serif 和 Mono 字体。[不同操作系统可能会产生略微不同的结果。此预览是从运行 Arch Linux 操作系统的计算机上获取的。预览中显示的 Serif 字体应该是 DejaVu Serif。
后端(可选 Panel)
要启用后端功能,您需要安装我们的 Alert、Panel 和 User 扩展。此功能始终为可选。您只能在本地版本上使用此功能,并在公开版本上删除它以保护您的网站(如果您不信任此扩展)。
控制面板预览中使用的颜色和字体类型来自 默认皮肤。没有它们,显示将像下面的预览一样。
功能
- 使用 Markdown 扩展轻松编写页面。
- 无限页面子级。
- 无限页面字段。
- 极其可扩展。
- 通过使用 Art 扩展添加特殊 CSS 和 JavaScript 文件,为每个博客文章创建独特的设计。
- 使用 Comment 扩展内置的评论系统。
- 使用 Feed 和 Sitemap 扩展 RSS 和 Sitemap。
- 易于使用且文档齐全的 API。
- 几乎一切都是可选的。
- 使用 Panel 扩展的控制面板。
要求
- Apache 2.4 及以上版本,并启用了
mod_rewrite
模块。 - PHP 7.3 及以上版本。
准备
- 确保您已安装所需组件。
- 从 主页 下载可用的包。
- 通过您的 FTP/SFTP 将 Mecha 上传到您网站的公共文件夹/目录,然后解压!
- 查看您可能感兴趣的可用扩展和布局。
- 将您的扩展文件上传到
.\lot\x
,并将您的布局文件上传到.\lot\y
。它们会自动加载。 - 阅读如何添加页面和标签。通过查看 源代码 学习如何创建页面。
- 如果您手动操作遇到困难,请安装 Panel 扩展。您总是可以完全控制移除此扩展,无需担心网站在移除后停止运行。
替代方案
命令行
假设您的网站公共目录位于 /srv/http
。请确保文件夹为空,或先将现有文件移动到其他位置。不要忘记命令末尾的 .
,如下例所示,将仓库克隆到当前根目录。
使用 Composer
cd /srv/http composer create-project mecha-cms/mecha .
您可能还想安装我们的 Panel 扩展。
composer require mecha-cms/x.panel
使用 Git
cd /srv/http git clone https://github.com/mecha-cms/mecha.git --depth 1 . git submodule update --init --recursive
您可能还想安装我们的 Panel 扩展。此外,还需要安装 Alert 和 User 扩展。
git submodule add https://github.com/mecha-cms/x.alert.git --depth 1 lot/x/alert git submodule add https://github.com/mecha-cms/x.user.git --depth 1 lot/x/user git submodule add https://github.com/mecha-cms/x.panel.git --depth 1 lot/x/panel
网络浏览器
从 https://github.com/mecha-cms/start 下载安装文件,然后按照说明进行操作。
贡献者
这个项目能存在并继续发展,都离不开您的贡献。我想感谢所有抽出时间为此项目做贡献的人。
通过经济方式资助项目,使域名和网站对所有人均可访问。网站提供关于软件和未来开发计划的完整文档和最新信息。网站的部分功能还用于提供干净高效的下载项目文件功能,这是通过管理来自 GitHub API 的响应实现的。