1.0.1 • Published 3 years ago

hexo-accessibility-view v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

hexo-accessibility-view

for hexo-accessibility-view

自己制作一个hexo插件吧(一)

注册NPM账户

登录官网免费注册 进入注册页需进行防bot验证 注册后一定要进行邮箱验证,不然无法进行发布操作

初始化插件

新建插件文件夹

mkdir hexo-your-mod
cd hexo-your-mod
npm init

配置插件信息

根据提示输入信息:

$ npm init
...
package name: (mytest) hexo-remote-writting
version: (1.0.0) 0.0.1
description: A hexo plugin to support writting post remotely
entry point: (index.js)
test command:
git repository:
keywords: hexo plugin
author: yourname
license: (ISC) MIT

Is this OK? (yes)

登录NPM并上传插件

登录

$ npm login
$ username: yourname
$ password: yourpass
$ Email: (this IS public) XXXX@126.com

发布

$ npm publish

上传完成后可以测试下是否能正常install

$ npm install hexo-your-mod --save

结语

hexo插件之前也没有接触过,一边学习一边制作,同时把制作过程分享给大家 目前想法是把之前做网站时做过的一个无障碍访问模块添加到hexo插件 包含网页内容自动朗读和点读,网页字体大小设置,高对比度设置,网页放大缩小,定位点等 然后配置项可调整悬浮位置(top,left,right,bottom),调节朗读语速,字号大小

开关

Image text

工具栏

Image text

新建了个github项目地址 希望或许可以更新下去,不过估计也不会有人看到吧,就当日记用了