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

gitbook-plugin-huahe

v1.0.4

Published

使用MathJax渲染易学盘符。

Downloads

8

Readme

gitbook-plugin-huahe

使用 Katex / MathJax 解释和渲染易学盘符,包括六爻和八字。(初版只支持Katex)

在 gitbook 工程以外使用此易学函数库,请参阅华鹤易学平台通用版函数库。可以在Markdown文本编辑器,以及在独立的HTML网页中使用。支持 Katex 和 MathJax 两个渲染库。

本人同时开发了一个独立的易学案例管理平台,当前支持安卓、ios 以及在线版:

华鹤易学在线版

华鹤易学平台文档

演示网站: 《增删卜易》Gitbook (正在制作中。。。)

有疑问以及合作请联系邮箱 [email protected]

函数API: https://maiernte.gitee.io/huahedocument/chapter6/libapi.html

安装

在Gitbook项目的配置文件 book.json 中加入插件名称 'huahe':

...
"plugins": [ ..., "huahe"],
...

然后在终端输入安装命令:

gitbook install

配置

此插件支持两种渲染方式:

  • 运行时渲染
  • 编译时渲染

编译时渲染即在编译HTML文件的时候已经把易学盘符转换成 Dom Element 。好处是浏览页面的时候会更流畅。而且当需要把Gitbook转换成其它如 pdf 或者 epub 格式的电子书时,也必须用这种方式。

而运行时渲染是指当用户浏览网站的时候,才将易学公式转换成 Dom Element。浏览设备的运算能力不够快的时候,会出现卡顿的情形。好处是它会在手机浏览时,自动采用简短名称的显示方式。

运行时渲染

在Gitbook项目的配置文件 book.json 中加入:

"pluginsConfig": {
  "huahe": { 
    "字体大小": 5, //字体大小 1~9 数字越大字体越大
    "水土共长生": true, //是否水土共长生
    "华鹤八字正偏财": true,  //是否使用华鹤偏财
    "开启短名": false, //是否使用短名,如“偏财”->“才”
    "Katex": true
  }
}
编译时渲染

需要进入目录 node_modules/gitbook-plugin-huahe 并打开 index.js 文件,搜索变量并设置为false

const runtimeRender = false

需要改变字体大小

globalSetting['size'] = SizeDef[3]