Giter Site home page Giter Site logo

yuque-hexo-lyrics's Introduction

I'm 尼采般地抒情, a web developer.

🎨 Blogger / 💻 Developer

  • 🎉 Just started working for an internet company.
  • ✨ Like technology, but love life more.
✨ Hi, click here!

Programming makes me very happy!(厚礼蟹 ~ )

🤪


                .-"""-.
               / .===. \
               \/ 6 6 \/
               ( \___/ )
  _________ooo__\_____/_____________
 /                                  \
 |     I  am  尼采般地抒情 ! ! !      |
 \_______________________ooo________/
                |  |  |
                |_ | _|
                |  |  |
                |__|__|
                /-'Y'-\
               (__/ \__)

🔍 Where To Find Me

:name
Thank you for the visit.

yuque-hexo-lyrics's People

Contributors

wztlink1013 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ccknbc-forked

yuque-hexo-lyrics's Issues

缓存方案:非更新文章不拉取

  • 文章如果更新了就拉取,反之不拉取

具体:每次拉取文章都拉去更新日期,如果每次拉取都比对,如果拉取的文章,这个文章在本地也有,就进行比对更新日期,如果一直就跳过,如果更新日期不一样则进行更新。
不能执行yuque-hexo-lyrics clean命令。

Star

因为原插件老是超时,使用Actions很不方便,所以期待这个插件能解决一些问题,并能保持更新

优化多知识库共同下载代码

  • 之前的实现方式是在package.json文件里面枚举配置的形式
  "yuqueConfig_blog": {
    "baseUrl": "https://www.yuque.com/api/v2",
    "login": "wztlink1013",
    "repo": "blog",
    "postPath": "source/_posts/blog",
    "cachePath": "yuque_blog.json",
    "mdNameFormat": "slug",
    "onlyPublished": false,
    "onlyPublic": false,
    "adapter": "hexo",
    "timeout": "200s"
  },
  "yuqueConfig_essay": {
    "baseUrl": "https://www.yuque.com/api/v2",
    "login": "wztlink1013",
    "repo": "essay",
    "postPath": "source/_posts/essay",
    "cachePath": "yuque_essay.json",
    "mdNameFormat": "slug",
    "onlyPublished": false,
    "onlyPublic": false,
    "adapter": "hexo",
    "timeout": "200s"
  },
  • 将配置变为存取数组的方式将其优化

Node8 不支持?

version:

  • node:19.7.0
  • yuque-hexo-lyrics:1.1.7
[WARNING] Node 8 doesn't support prettier@latest (see: https://github.com/prettier/eslint-config-prettier/issues/140), the markdown will not be formated.
[INFO] remove local cache file: D:\GitHub\blog\yuque-hexo-lyrics.json.

语雀特色功能的适配

第一种方式:在插件里面适配这些功能代码

  • 背景色区块
  • 第三方卡片
  • 适配视频的播放
  • 思维导图,流程图
  • ……

第二种方式:直接扩展语雀的html内容嵌入

  • 将语雀内容的html内容直接嵌入md文档中 f702334

yuque-hexo-lyrics拉去的html内容中有的代码块里面的是转义内容,需要手动改变

字符转义字符描述
''单引号
""双引号
&&
<&lt;
>&gt;
不断开空格(non-breaking space)&nbsp;空格
#&#35;
&&#38;
.&#46;句号
¥&yen;
¦&brvbar;
§&sect;
¨&uml;
©&copy;
«&laquo;
®&reg;
¼&frac14;
½&frac12;
¾&frac34;
$&#36;
%&#37;
(&#40;
)&#41;
*&#42;
+&#43;
,&#44;逗号
:&#58;冒号
;&#59;分号
=&#61;
-&#45;连字号
/&#47;斜杠
\&#92;反斜杠
|&#124;竖杠
¦&#166;断竖杠
[&#91;
]&#93;
^&#94;
_&#95;下划线
`&#96;尖重音符
  • &#39 撇号

无需front-matter字段

目前插件完成了不需要配置title、date三个配置,但是还有categories不能达到适配,具体一个想法就是:每个知识库有其的文档目录yaml文件,将其下载下来,对其进行编程,将toc的分组字段提取出来加到fromt-matter里面

  • body【content】:下载成markdown文章
  • #5
  • created_at【date】:创建时间
  • updated_at:更新时间
  • word_count:字数统计
  • slug【urlname】:文章链接path
  • title【title】:文章名称
  • public:公开和秘密===可以设置加密文章与否
  • description:文章描述,可以用
  • categories:利用文档的toc文件加上

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.