V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
leokun
V2EX  ›  分享创造

周末没事,给项目搞了一个文档扫描工具

  •  
  •   leokun · 181 天前 · 1332 次点击
    这是一个创建于 181 天前的主题,其中的信息可能已经有所发展或是发生改变。

    可以全文扫描文档,也可以指定入口把项目里面的组件发布 https://leookun.github.io/unmono/

    第 1 条附言  ·  179 天前
    9 条回复    2023-10-30 22:25:26 +08:00
    uiosun
        1
    uiosun  
       180 天前
    这是干什么的?作者能不能多说两句谢谢……我甚至天真的以为点进去,能看到 more desc...
    leokun
        2
    leokun  
    OP
       180 天前   ❤️ 1
    @uiosun 就是可以把目录中的 markdown 扫描出来生成文档网站,还可以指定项目中的文件,把他们打包成公共资源,给别人用
    uiosun
        3
    uiosun  
       180 天前
    @leokun 哦,原来是链接里的文档,错怪作者了。刚刚我跑到 repo 里啥也没看到。

    Cool !感觉挺有意思
    bojue
        4
    bojue  
       180 天前
    刚好周末写了一个 markdown 生成的在线文档,生成离线文档
    rsyjjsn
        5
    rsyjjsn  
       180 天前
    报错,建议写写单元测试,可以修复很多问题
    ```
    * 正在执行任务: yarn run unmono

    yarn run v1.22.19
    warning package.json: No license field
    $ unmono doc --build
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 1: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 2: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 3: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 4: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 5: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 6: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 7: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 8: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 9: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 10: import: command not found
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 11: syntax error near unexpected token `('
    /Users/my/Desktop/demo/node_modules/.bin/unmono: line 11: `const [mode, arg] = process.argv.slice(2);'
    error Command failed with exit code 2.
    ```
    leokun
        6
    leokun  
    OP
       180 天前
    今天发现是有这个问题,比较粗糙啦哈哈哈
    leokun
        7
    leokun  
    OP
       180 天前
    @rsyjjsn 这里其实是从之前写的脚本里面扣出来做的 cli ,没想到直接安装会报这个错误,晚上回去看一下
    beiguo
        8
    beiguo  
       180 天前
    大佬,官网用的什么模板
    leokun
        9
    leokun  
    OP
       179 天前
    @beiguo vitepress
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3013 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:50 · PVG 21:50 · LAX 06:50 · JFK 09:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.