Skip to content

Commit

Permalink
feat: 添加文章
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerzh committed Mar 2, 2023
1 parent e3e04c8 commit 2ab96a3
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 587 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [1.0.6](https://github.com/AliMales/NoteBook/compare/v1.0.1...v1.0.6) (2023-02-16)
## [1.0.7](https://github.com/AliMales/NoteBook/compare/v1.0.1...v1.0.7) (2023-03-02)


### Bug Fixes
Expand Down Expand Up @@ -30,6 +30,7 @@
* 添加前端工程化详情文章 ([3e91cd9](https://github.com/AliMales/NoteBook/commit/3e91cd9026d97d59df0d9f76ca531247a13fd69e))
* 添加日志 ([33fa026](https://github.com/AliMales/NoteBook/commit/33fa02606d6305316872f7822c0b711d7489eeeb))
* 添加文件 ([9dd20ce](https://github.com/AliMales/NoteBook/commit/9dd20ce0cb224fab9351c5857cc98733c84dbd25))
* 添加文章 ([e3e04c8](https://github.com/AliMales/NoteBook/commit/e3e04c8924f85f75815a4363c47df5fda3922fa9))
* 添加组织过程资产 ([e5330c3](https://github.com/AliMales/NoteBook/commit/e5330c39fd39ad6a5195d31a18ec971dd102bbf3))
* 添加algolia配置 ([641deec](https://github.com/AliMales/NoteBook/commit/641deec84fa0736f0ffcf9b6feb26c2d769a7a10))
* 添加js优雅指南 & 期货 & 混合保证金 & 合约 & 调整文档结构 & 展示提示 ([269753d](https://github.com/AliMales/NoteBook/commit/269753ddccbbea1fac83772a4fcb2636a9a631bd))
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"index_name":"article","start_urls":["https://doc.tigerzh.com/cryptocurrency/etf.html","https://doc.tigerzh.com/cryptocurrency/uniswap.html","https://doc.tigerzh.com/cryptocurrency/bitcoin-ten-years.html","https://doc.tigerzh.com/cryptocurrency/money.html","https://doc.tigerzh.com/cryptocurrency/sell-buy-express.html","https://doc.tigerzh.com/cryptocurrency/up.html","https://doc.tigerzh.com/cryptocurrency/web3应用.html","https://doc.tigerzh.com/cryptocurrency/做市.html","https://doc.tigerzh.com/cryptocurrency/反向合约.html","https://doc.tigerzh.com/cryptocurrency/期货.html","https://doc.tigerzh.com/cryptocurrency/永续合约.html","https://doc.tigerzh.com/cryptocurrency/流动性.html","https://doc.tigerzh.com/cryptocurrency/混合保证金.html","https://doc.tigerzh.com/cryptocurrency/稳定币.html","https://doc.tigerzh.com/index.html","https://doc.tigerzh.com/log/fof-pro系统.html","https://doc.tigerzh.com/log/pmp题目复习.html","https://doc.tigerzh.com/log/emulator.html","https://doc.tigerzh.com/log/index.html","https://doc.tigerzh.com/log/industry.html","https://doc.tigerzh.com/log/test.html","https://doc.tigerzh.com/log/个人项目(z org).html","https://doc.tigerzh.com/log/人员对比表.html","https://doc.tigerzh.com/log/周六特色大排档小程序.html","https://doc.tigerzh.com/log/定力科技.html","https://doc.tigerzh.com/log/投研模版项目.html","https://doc.tigerzh.com/log/敏捷项目管理.html","https://doc.tigerzh.com/log/监听页面中的请求.html","https://doc.tigerzh.com/log/西筹fas平台.html","https://doc.tigerzh.com/log/西筹基金筛选.html","https://doc.tigerzh.com/log/西筹官网.html","https://doc.tigerzh.com/log/西筹数据平台.html","https://doc.tigerzh.com/log/超级比较.html","https://doc.tigerzh.com/log/跨境电商.html","https://doc.tigerzh.com/log/返利平台.html","https://doc.tigerzh.com/note/class.html","https://doc.tigerzh.com/note/docker指南.html","https://doc.tigerzh.com/note/liunx常用命令.html","https://doc.tigerzh.com/note/redis.html","https://doc.tigerzh.com/note/tyepscript指南.html","https://doc.tigerzh.com/note/cert.html","https://doc.tigerzh.com/note/change-type.html","https://doc.tigerzh.com/note/cli.html","https://doc.tigerzh.com/note/commitlint规范.html","https://doc.tigerzh.com/note/compose.html","https://doc.tigerzh.com/note/copy.html","https://doc.tigerzh.com/note/css.html","https://doc.tigerzh.com/note/deploy-page.html","https://doc.tigerzh.com/note/django.html","https://doc.tigerzh.com/note/electron-message.html","https://doc.tigerzh.com/note/enter.html","https://doc.tigerzh.com/note/error.html","https://doc.tigerzh.com/note/git.html","https://doc.tigerzh.com/note/html.html","https://doc.tigerzh.com/note/index.html","https://doc.tigerzh.com/note/jscomplate.html","https://doc.tigerzh.com/note/jsevent.html","https://doc.tigerzh.com/note/js不优雅教程.html","https://doc.tigerzh.com/note/js优雅教程.html","https://doc.tigerzh.com/note/lazy.html","https://doc.tigerzh.com/note/mac-bind-email.html","https://doc.tigerzh.com/note/mac-launchctl-task.html","https://doc.tigerzh.com/note/model.html","https://doc.tigerzh.com/note/nginx.html","https://doc.tigerzh.com/note/npm.html","https://doc.tigerzh.com/note/optimize.html","https://doc.tigerzh.com/note/pass.html","https://doc.tigerzh.com/note/plan.html","https://doc.tigerzh.com/note/pm2.html","https://doc.tigerzh.com/note/proxy.html","https://doc.tigerzh.com/note/python.html","https://doc.tigerzh.com/note/quicksort.html","https://doc.tigerzh.com/note/react-advance.html","https://doc.tigerzh.com/note/react.html","https://doc.tigerzh.com/note/read-book-note.html","https://doc.tigerzh.com/note/ssh.html","https://doc.tigerzh.com/note/story.html","https://doc.tigerzh.com/note/template.html","https://doc.tigerzh.com/note/test-for-bianlifeng.html","https://doc.tigerzh.com/note/test.html","https://doc.tigerzh.com/note/thinking-in-ract.html","https://doc.tigerzh.com/note/this.html","https://doc.tigerzh.com/note/twaver.html","https://doc.tigerzh.com/note/uwsgi指南.html","https://doc.tigerzh.com/note/uniapp.html","https://doc.tigerzh.com/note/vpn.html","https://doc.tigerzh.com/note/websocket.html","https://doc.tigerzh.com/note/前端工程化.html","https://doc.tigerzh.com/note/工程化指南.html","https://doc.tigerzh.com/note/插件开发指南.html","https://doc.tigerzh.com/products/bigv.html","https://doc.tigerzh.com/products/btcalory.html","https://doc.tigerzh.com/products/coupon.html","https://doc.tigerzh.com/products/doctor.html","https://doc.tigerzh.com/products/fas.html","https://doc.tigerzh.com/products/gettr.html","https://doc.tigerzh.com/products/notemusic.html","https://doc.tigerzh.com/products/openalpha.html","https://doc.tigerzh.com/products/valuation.html","https://doc.tigerzh.com/products/wallpaper.html","https://doc.tigerzh.com/stores/20220810交通事故.html","https://doc.tigerzh.com/stores/love.html","https://doc.tigerzh.com/tools/echarts.html","https://doc.tigerzh.com/tools/emulator.html"],"selectors":{"lvl0":"h1","lvl1":"h2","lvl2":"h3","lvl3":"h4","lvl4":"h5","lvl5":"h6","text":"p, li","lang":{"selector":"/html/@lang","type":"xpath","global":true}},"custom_settings":{"attributesForFaceting":["lang"]}}
{"index_name":"article","start_urls":["https://www.tigerzh.com/document/q/a/elementui常见问题.html","https://www.tigerzh.com/document/q/a/ubuntu服务器常见问题.html","https://www.tigerzh.com/document/q/a/vue2常见问题.html","https://www.tigerzh.com/document/q/a/人员对比表.html","https://www.tigerzh.com/document/q/a/微信集成常见问题.html","https://www.tigerzh.com/document/q/a/监听页面中的请求.html","https://www.tigerzh.com/document/cryptocurrency/etf.html","https://www.tigerzh.com/document/cryptocurrency/uniswap.html","https://www.tigerzh.com/document/cryptocurrency/bitcoin-ten-years.html","https://www.tigerzh.com/document/cryptocurrency/money.html","https://www.tigerzh.com/document/cryptocurrency/sell-buy-express.html","https://www.tigerzh.com/document/cryptocurrency/up.html","https://www.tigerzh.com/document/cryptocurrency/web3应用.html","https://www.tigerzh.com/document/cryptocurrency/做市.html","https://www.tigerzh.com/document/cryptocurrency/反向合约.html","https://www.tigerzh.com/document/cryptocurrency/期货.html","https://www.tigerzh.com/document/cryptocurrency/永续合约.html","https://www.tigerzh.com/document/cryptocurrency/流动性.html","https://www.tigerzh.com/document/cryptocurrency/混合保证金.html","https://www.tigerzh.com/document/cryptocurrency/稳定币.html","https://www.tigerzh.com/document/index.html","https://www.tigerzh.com/document/log/fof-pro系统.html","https://www.tigerzh.com/document/log/pmp题目复习.html","https://www.tigerzh.com/document/log/index.html","https://www.tigerzh.com/document/log/个人项目(z org).html","https://www.tigerzh.com/document/log/周六特色大排档小程序.html","https://www.tigerzh.com/document/log/定力科技.html","https://www.tigerzh.com/document/log/投研模版.html","https://www.tigerzh.com/document/log/投研模版项目.html","https://www.tigerzh.com/document/log/敏捷项目管理.html","https://www.tigerzh.com/document/log/西筹fas平台.html","https://www.tigerzh.com/document/log/西筹基金筛选.html","https://www.tigerzh.com/document/log/西筹官网.html","https://www.tigerzh.com/document/log/西筹数据平台.html","https://www.tigerzh.com/document/log/超级应用.html","https://www.tigerzh.com/document/log/跨境电商.html","https://www.tigerzh.com/document/log/返利平台.html","https://www.tigerzh.com/document/note/class.html","https://www.tigerzh.com/document/note/docker指南.html","https://www.tigerzh.com/document/note/liunx常用命令.html","https://www.tigerzh.com/document/note/navicat查看已保存密码.html","https://www.tigerzh.com/document/note/redis.html","https://www.tigerzh.com/document/note/tyepscript指南.html","https://www.tigerzh.com/document/note/cert.html","https://www.tigerzh.com/document/note/change-type.html","https://www.tigerzh.com/document/note/cli.html","https://www.tigerzh.com/document/note/commitlint规范.html","https://www.tigerzh.com/document/note/compose.html","https://www.tigerzh.com/document/note/copy.html","https://www.tigerzh.com/document/note/css.html","https://www.tigerzh.com/document/note/deploy-page.html","https://www.tigerzh.com/document/note/django.html","https://www.tigerzh.com/document/note/electron-message.html","https://www.tigerzh.com/document/note/enter.html","https://www.tigerzh.com/document/note/error.html","https://www.tigerzh.com/document/note/git.html","https://www.tigerzh.com/document/note/html.html","https://www.tigerzh.com/document/note/index.html","https://www.tigerzh.com/document/note/jscomplate.html","https://www.tigerzh.com/document/note/jsevent.html","https://www.tigerzh.com/document/note/js不优雅教程.html","https://www.tigerzh.com/document/note/js优雅教程.html","https://www.tigerzh.com/document/note/lazy.html","https://www.tigerzh.com/document/note/mac-bind-email.html","https://www.tigerzh.com/document/note/mac-launchctl-task.html","https://www.tigerzh.com/document/note/model.html","https://www.tigerzh.com/document/note/nginx.html","https://www.tigerzh.com/document/note/npm.html","https://www.tigerzh.com/document/note/optimize.html","https://www.tigerzh.com/document/note/pass.html","https://www.tigerzh.com/document/note/plan.html","https://www.tigerzh.com/document/note/pm2.html","https://www.tigerzh.com/document/note/proxy.html","https://www.tigerzh.com/document/note/python.html","https://www.tigerzh.com/document/note/quicksort.html","https://www.tigerzh.com/document/note/react-advance.html","https://www.tigerzh.com/document/note/react.html","https://www.tigerzh.com/document/note/read-book-note.html","https://www.tigerzh.com/document/note/ssh.html","https://www.tigerzh.com/document/note/story.html","https://www.tigerzh.com/document/note/template.html","https://www.tigerzh.com/document/note/test-for-bianlifeng.html","https://www.tigerzh.com/document/note/test.html","https://www.tigerzh.com/document/note/thinking-in-ract.html","https://www.tigerzh.com/document/note/this.html","https://www.tigerzh.com/document/note/twaver.html","https://www.tigerzh.com/document/note/uwsgi指南.html","https://www.tigerzh.com/document/note/uniapp.html","https://www.tigerzh.com/document/note/vpn.html","https://www.tigerzh.com/document/note/websocket.html","https://www.tigerzh.com/document/note/前端工程化.html","https://www.tigerzh.com/document/note/对象原型链指南.html","https://www.tigerzh.com/document/note/工程化指南.html","https://www.tigerzh.com/document/note/插件开发指南.html","https://www.tigerzh.com/document/products/bigv.html","https://www.tigerzh.com/document/products/btcalory.html","https://www.tigerzh.com/document/products/coupon.html","https://www.tigerzh.com/document/products/doctor.html","https://www.tigerzh.com/document/products/fas.html","https://www.tigerzh.com/document/products/gettr.html","https://www.tigerzh.com/document/products/notemusic.html","https://www.tigerzh.com/document/products/openalpha.html","https://www.tigerzh.com/document/products/valuation.html","https://www.tigerzh.com/document/products/wallpaper.html","https://www.tigerzh.com/document/stores/20220810交通事故.html","https://www.tigerzh.com/document/stores/love.html","https://www.tigerzh.com/document/stores/觉醒.html","https://www.tigerzh.com/document/tools/echarts.html","https://www.tigerzh.com/document/tools/emulator.html"],"selectors":{"lvl0":"h1","lvl1":"h2","lvl2":"h3","lvl3":"h4","lvl4":"h5","lvl5":"h6","text":"p, li","lang":{"selector":"/html/@lang","type":"xpath","global":true}},"custom_settings":{"attributesForFaceting":["lang"]}}
2 changes: 1 addition & 1 deletion crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const configPath = `${__dirname}/config.json`

const urls = Object.keys(data).map((key) => {
const url = key.split('_').join('/').split('md').join('html')
return `https://doc.tigerzh.com/${url}`
return `https://www.tigerzh.com/document/${url}`
})
const config = JSON.parse(fs.readFileSync('config.json', 'utf-8'))
config.start_urls = urls
Expand Down
Loading

0 comments on commit 2ab96a3

Please sign in to comment.