登录 注册

nimble_publisher

去点 Star
效率与办公工具
590
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Elixir
语言
—
创建时间
最近更新

项目能做什么

基于文件系统的极简发布引擎,支持 Markdown 解析与代码高亮。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# NimblePublisher

[Online Documentation](https://hexdocs.pm/nimble_publisher).

<!-- MDOC !-->

`NimblePublisher` is a minimal filesystem-based publishing engine with Markdown support and
code highlighting.

```elixir
use NimblePublisher,
  build: Article,
  from: Application.app_dir(:app_name, "priv/articles/**/*.md"),
  as: :articles,
  highlighters: [:makeup_elixir, :makeup_erlang]
```

The example above will get all articles in the given directory,
call `Article.build/3` for each article, passing the filename,
the metadata, and the article body, and define a module attribute
named `@articles` with all built articles returned by the
`Article.build/3` function.

Each article in the articles directory must have the format:

    %{
      title: "Hello world"
    }
    ---
    Body of the "Hello world" article.

    This is a *markdown* document with support for code highlighters:

    ```elixir
    IO.puts "hello world"
    ```

## Options

  * `:build` - the name of the module that will build each entry

  * `:from` - a wildcard pattern where to find all entries. Files with the
    `.md`, `.markdown`, or `.livemd` extension will be converted to HTML with
    `MDExNative`. Other files will be kept as is.

  * `:as` - the name of the module attribute to store all built entries

  * `:comrak_options` - a keyword list of options accepted by
    [`MDExNative.Comrak.markdown_to_html`](https://mdex-native.hexdocs.pm/MDExNative.Comrak.html#markdown_to_html/2)
    to customize Markdown rendering. The default options enable GitHub
    Flavored Markdown and assume you are rendering trusted content,
    as `NimblePublisher` is designed to render your own articles:

    ```elixir
    [
      extension: [table: true, autolink: true, strikethrough: true],
      render: [hardbreaks: false, unsafe: true]
    ]
    ```

  * `:highlighters` - which `Makeup` syntax highlighters to use.
    See "Syntax highlighting" section below for more information.

  * `:parser` - custom module with a `parse/2` function that receives the file path
    and content as params. See [Custom parser](#module-custom-parser) for more details.

  * `:html_converter` - custom module with a `convert/4` function that receives the
    file path, body, and attributes of the markdown file, as well as all options
    as params. See [Custom HTML converter](#module-custom-html-converter) for more details.

## Examples

Let's see a complete example. First add `nimble_publisher` with
the desired highlighters as a dependency:

    def deps do
      [
        {:nimble_publisher, "~> 2.1", runtime: false}
      ]
    end

In this example, we are building a blog. Each post stays in the
"posts" directory with the format:

    /posts/YEAR/MONTH-DAY-ID.md

A typical blog post will look like this:

    # /posts/2020/04-17-hello-world.md
    %{
      title: "Hello world!",
      author: "José Valim",
      tags: ~w(hello),
      description: "Let's learn how to say hello world"
    }
    ---
    This is the
阅读完整原文

项目深度分析 AI 生成

基于 Phoenix + NimblePublisher 的开发者文档建站托管平台 (SaaS)

产品构想针对使用 Elixir 生态或需要极高并发性能的团队,提供开箱即用的技术文档/博客托管服务,支持 Git 推送自动编译渲染、版本切换与全文检索。
核心功能GitHub 同步自动部署、Algolia/内部快速搜索集成、多版本文档管理、SEO 与社交预览卡片自动生成、自定义域名与 SSL。
目标用户独立开发者、开源作者、使用 Elixir/Phoenix 的中小型 SaaS 团队。
难度/周期中等 · 1-2 个月 · 成本:低于 50 美元/月(初期云服务器、静态存储与域名)
收费模式免费额度 + 订阅制(Pro 版提供私有项目、自定义域名、高级搜索集成,12-29 美元/月)。
竞争风险面对 Docusaurus、VitePress、GitBook 等前端成熟生态的直接竞争,Elixir 专属受众基数偏小。
依据 AI推测

面向 Phoenix 社区的高级商业博客/文档主题与扩展套件

产品构想销售高质量、开箱即用的 Phoenix 模板包,深度预集成 NimblePublisher、Tailwind CSS、暗黑模式、评论系统(如 Giscus)、全文检索以及 RSS/Sitemap 生成器。
核心功能多套响应式 Tailwind 模板、开箱即用的代码高亮/行号/复制组件、自动化 RSS/Atom 生成与 SEO JSON-LD 配置、预设文章分类/标签聚合页。
目标用户希望快速上线个人或技术品牌站点的 Elixir 独立开发者、技术顾问。
难度/周期低 · 2-3 周 · 成本:几乎为零(设计与编码时间成本)
收费模式一次性买断制(29 - 79 美元/许可证),提供后续更新支持。
竞争风险Elixir 社区开发者倾向于自己造轮子或手动集成,模板付费意愿存在不确定性。
依据 尚需验证的假设

面向技术写作/文档维护者的无缝 CMS 辅助桌面/Web 工具

产品构想构建与 NimblePublisher 格式(元数据前置 + Markdown)兼容的无头/本地管理界面,提供富文本/双栏实时预览、图片一键上传图床及元数据校验。
核心功能实时解析 Elixir 风格的元数据头(`%{...}`)、一键图床上传并自动转为相对路径、文章校验(链接检查、元数据完整性)、Git 自动 Commit/Push。
目标用户使用 NimblePublisher 但需要可视化排版、图片资源管理的博主和非纯代码贡献者(如技术文档写作者)。
难度/周期中等 · 1 个月 · 成本:极低(主要为 Electron/Tauri 或轻量 Web 应用开发耗时)
收费模式单机许可证付费(Gumroad / Lemon Squeezy 销售,19 美元买断)或月度赞助。
竞争风险目标用户可能更习惯直接使用 VSCode/Obsidian 配合插件,专用 CMS 工具替代成本高。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
leandrocp/nimble_publisher_mdex 中文介绍暂未生成
NimblePublisher adapter for MDEx and Lumis
16 Elixir
Sancxo/nimble_blog 中文介绍暂未生成
Personnal blog made with Phoenix framework and Nimble Publis
2 Elixir
hkondo0908/NimblePublisher 中文介绍暂未生成
0 Elixir
masu1234/day12_NimblePublisher 中文介绍暂未生成
0 Elixir
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送
社区活跃Star 590 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。