<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>开发工具 on OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/</link>
    <description>Recent content in 开发工具 on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Mon, 11 May 2026 12:40:00 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>用 Slidev 打造你的第一个幻灯片</title>
      <link>https://blog.ohtly.com/posts/2026-05-11-%E4%BD%BF%E7%94%A8-slidev-%E7%BC%96%E5%86%99%E5%B9%BB%E7%81%AF%E7%89%87%E6%8C%87%E5%8D%97/</link>
      <pubDate>Mon, 11 May 2026 12:40:00 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-05-11-%E4%BD%BF%E7%94%A8-slidev-%E7%BC%96%E5%86%99%E5%B9%BB%E7%81%AF%E7%89%87%E6%8C%87%E5%8D%97/</guid>
      <description>&lt;h1 id=&#34;用-slidev-打造你的第一个幻灯片&#34;&gt;&#xA;  用 Slidev 打造你的第一个幻灯片&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e7%94%a8-slidev-%e6%89%93%e9%80%a0%e4%bd%a0%e7%9a%84%e7%ac%ac%e4%b8%80%e4%b8%aa%e5%b9%bb%e7%81%af%e7%89%87&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;基于真实项目 &lt;code&gt;slidev-in-action&lt;/code&gt; 的完整实战指南&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;生成的幻灯片项目截图：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://blog.ohtly.com/images/slidev-guide/combined-2rows.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-为什么选择-slidev&#34;&gt;&#xA;  1. 为什么选择 Slidev？&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#1-%e4%b8%ba%e4%bb%80%e4%b9%88%e9%80%89%e6%8b%a9-slidev&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;传统的 PPT 工具（PowerPoint、Keynote）虽然功能强大，但在开发者场景下存在明显痛点：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;版本控制困难&lt;/strong&gt;：二进制文件难以用 Git 管理，协作时冲突频发&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;代码展示简陋&lt;/strong&gt;：粘贴代码后丢失高亮，更新代码需要手动同步&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;排版效率低&lt;/strong&gt;：调字体、拉对齐线耗费大量时间&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;分享不灵活&lt;/strong&gt;：导出 PDF 后无法交互，网页分享需要额外上传&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Slidev&lt;/strong&gt; 是一个基于 Vue 的幻灯片引擎，它将 Markdown 文件渲染为交互式网页演示。对开发者而言，它的优势显而易见：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;✅ 用 &lt;strong&gt;Markdown&lt;/strong&gt; 编写内容，专注表达而非排版&lt;/li&gt;&#xA;&lt;li&gt;✅ &lt;strong&gt;代码高亮&lt;/strong&gt; 原生支持，支持行号、聚焦、动画&lt;/li&gt;&#xA;&lt;li&gt;✅ &lt;strong&gt;版本控制友好&lt;/strong&gt;，Git diff 清晰可读&lt;/li&gt;&#xA;&lt;li&gt;✅ 内置 &lt;strong&gt;Mermaid&lt;/strong&gt; 图表、&lt;strong&gt;LaTeX&lt;/strong&gt; 公式、&lt;strong&gt;Vue 组件&lt;/strong&gt; 支持&lt;/li&gt;&#xA;&lt;li&gt;✅ 一键导出 &lt;strong&gt;PDF / PPTX&lt;/strong&gt;，也可部署为静态站点&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;如果你经常做技术分享、内部培训或开源项目演示，Slidev 几乎是最佳选择。&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2-环境准备与安装&#34;&gt;&#xA;  2. 环境准备与安装&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#2-%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e4%b8%8e%e5%ae%89%e8%a3%85&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;前置要求&#34;&gt;&#xA;  前置要求&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%89%8d%e7%bd%ae%e8%a6%81%e6%b1%82&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Node.js&lt;/strong&gt; &amp;gt;= 18.0（推荐 LTS 版本）&lt;/li&gt;&#xA;&lt;li&gt;包管理器：&lt;strong&gt;npm&lt;/strong&gt;、&lt;strong&gt;yarn&lt;/strong&gt; 或 &lt;strong&gt;pnpm&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;安装-slidev-cli&#34;&gt;&#xA;  安装 Slidev CLI&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%ae%89%e8%a3%85-slidev-cli&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;在已有 Node.js 环境的项目中，直接安装 Slidev 的命令行工具：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
