npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slidev-theme-ehl2022

v2.0.22

Published

EHL China default presentation template with Slidev made simple. Now using UnoCSS!

Downloads

55

Readme

EHL China PPT Theme 傻瓜教程

鸣谢 to Slidev.

第1步 安装Git

第2步 安装node.js和npm

  • 前往官网nodejs.org下载并安装最新版本的node.js。
  • npm包管理工具会随node.js一起安装

第3步 配置 npm 以允许无 sudo 全局安装

  1. 打开SSH客户端软件(Mac上为Terminal, Windows上为Powershell)。
  2. 输入以下代码,回车:
npm config set prefix ~/.npm-packages

第4步 全局安装Slidev

全局安装Slidev能解决很多bug,比如就不会出现没有Slidev命令的问题。

  1. 打开SSH客户端软件。
  2. 输入以下代码,回车:
$ npm i -g @slidev/cli

注意:以上4步请在使用本repo的克隆前完成


第5步:安装一个空白的slidev项目

$ npm init slidev

第6步:使用本主题

6.A 默认方法

cd slidev
rm slides.md 
wget https://www.github.com/pkuasule/slidev-theme-ehl2022/raw/main/slides.md

npm run dev

在服务启动后,它会自动提示你是否安装该主题:

? The theme "slidev-theme-ehl2022" was not found in your project, do you want to install it now? › (Y/n)

Y键安装即可

6.B 手动方法

进入slidev文件夹,打开slides.md,更改默认配置的theme为ehl2022。

---
theme: ehl2022
---

第7步:预览当前模板效果

$ npm run dev

第8步:新建、编辑自己的文件

8.1 新建并打开自己的文件

$ slidev 你想要的文件名(可以不要".md"后缀) --open --remote

比如

$ slidev Effective_Communication --open --remote

注意:下次输入同样的命令将不会再新建文件,而是直接启动服务(即播放)。

8.2 编辑自己的文件

用任意文本编辑器,打开你想要的文件名.md编辑即可。

建议的文本编辑器:Visual Studio Code


关闭PPT

直接关闭SSH终端即可。


导出为PDF

1.安装导出成PDF所要使用的服务

$ npm i -D playwright-chromium

2.导出

$ slidev export ‘你要导出的文件.md‘

导出的pdf文件可以在项目的根目录下找到。