jaywcjlove / rdoc Goto Github PK
View Code? Open in Web Editor NEW⚛️📄🚀 Fast static site generator for React, Just write Markdown file. @react-doc
Home Page: https://git.io/rdoc
⚛️📄🚀 Fast static site generator for React, Just write Markdown file. @react-doc
Home Page: https://git.io/rdoc
感谢倾听,望回复!
C:\Users\wellorange\Desktop\document\my-project\node_modules\create-spare-webpack-plugin\index.js:36
filePathItem = filePathItem.replace(process.cwd() + PATH.sep, '').replace(new RegExp(PATH.sep, 'g'), sep);
^
SyntaxError: Invalid regular expression: //: \ at end of pattern
at new RegExp ()
at filemds.forEach (C:\Users\wellorange\Desktop\document\my-project\node_modules\create-spare-webpack-plugin\index.js:36:85)
at Array.forEach ()
at Compiler.compiler.plugin (C:\Users\wellorange\Desktop\document\my-project\node_modules\create-spare-webpack-plugin\index.js:33:15)
at Compiler.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:206:13)
at compilation.seal.err (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compiler.js:507:11)
at Compilation.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:195:46)
at self.applyPluginsAsync.err (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compilation.js:680:19)
at Compilation.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:195:46)
at self.applyPluginsAsync.err (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compilation.js:671:11)
at Compilation.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:195:46)
at self.applyPluginsAsync.err (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compilation.js:666:10)
at Compilation.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:195:46)
at sealPart2 (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compilation.js:662:9)
at Compilation.applyPluginsAsyncSeries (C:\Users\wellorange\Desktop\document\my-project\node_modules\tapable\lib\Tapable.js:195:46)
at Compilation.seal (C:\Users\wellorange\Desktop\document\my-project\node_modules\webpack\lib\Compilation.js:605:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: rdoc -d home,introduce,faq,about,github --clean
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wellorange\AppData\Roaming\npm-cache_logs\2018-01-22T03_18_06_238Z-debug.log
C:\Users\wellorange\Desktop\document\my-project>
顺带问下,这个库的版权协议是什么呢
底部copyright的内容怎么替换?
貌似build次数越多,输出文件就越多.
看了下.rdoc-dist
文件夹下 图片没有生成
貌似是卡在这里了,一直在等待.
不一定是rdoc的问题,有什么建议吗@jaywcjlove
运行 rdoc init my-project 时,程序为什么会解析我的本地文件?
C:\Users\Administrator\AppData\Roaming\npm\node_modules\rdoc\node_modules\create
-spare-webpack-plugin\index.js:26
const { dir, ...otherOtions } = directoryTrees;
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\rdoc\src\conf\webpack.config.dev.js:7:34)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
我的运行环境
inux 4.14.0-deepin2-amd64 #1 SMP PREEMPT Deepin 4.14.12-2 (2018-01-06) x86_64 GNU/Linux
node 9.8.0
rdoc -d about
/usr/local/lib/node_modules/rdoc/theme/default/layout/IndexLayout.js
Module not found: Can't resolve './indexLayout.less' in '/usr/local/lib/node_modules/rdoc/theme/default/layout
npm start
Module not found: Can't resolve './indexLayout.less' in '/media/oeli/doc/node_modules/rdoc/theme/default/layout'
Html Webpack Plugin:
TypeError: $export is not a function
index.html:1880 Object../node_modules/core-js/library/modules/es6.object.define-property.js
[spiderdoc]/[rdoc]/theme/default/index.html:1880:1
index.html:639 webpack_require
[spiderdoc]/[rdoc]/theme/default/index.html:639:30
index.html:49 fn
[spiderdoc]/[rdoc]/theme/default/index.html:49:20
index.html:894 Object../node_modules/core-js/library/fn/object/define-property.js
[spiderdoc]/[rdoc]/theme/default/index.html:894:1
index.html:639 webpack_require
[spiderdoc]/[rdoc]/theme/default/index.html:639:30
index.html:49 fn
[spiderdoc]/[rdoc]/theme/default/index.html:49:20
index.html:725 Object../node_modules/babel-runtime/core-js/object/define-property.js
[spiderdoc]/[rdoc]/theme/default/index.html:725:27
index.html:639 webpack_require
[spiderdoc]/[rdoc]/theme/default/index.html:639:30
index.html:49 fn
[spiderdoc]/[rdoc]/theme/default/index.html:49:20
index.html:1462 Object../node_modules/core-js/library/modules/_object-dp.js
[spiderdoc]/[rdoc]/theme/default/index.html:1462:21
From previous event:
index.js:110 Compiler.
[spiderdoc]/[html-webpack-plugin]/index.js:110:8
Tapable.js:206 Compiler.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:206:13
Compiler.js:354 Compiler.emitAssets
[spiderdoc]/[webpack]/lib/Compiler.js:354:8
Compiler.js:58 onCompiled
[spiderdoc]/[webpack]/lib/Compiler.js:58:19
Compiler.js:510 applyPluginsAsync.err
[spiderdoc]/[webpack]/lib/Compiler.js:510:14
Tapable.js:202 next
[spiderdoc]/[tapable]/lib/Tapable.js:202:11
CachePlugin.js:78 Compiler.
[spiderdoc]/[webpack]/lib/CachePlugin.js:78:5
Tapable.js:204 next
[spiderdoc]/[tapable]/lib/Tapable.js:204:14
index.js:46 Compiler.compiler.plugin
[spiderdoc]/[create-spare-webpack-plugin]/index.js:46:7
Tapable.js:206 Compiler.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:206:13
Compiler.js:507 compilation.seal.err
[spiderdoc]/[webpack]/lib/Compiler.js:507:11
Tapable.js:195 Compilation.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:195:46
Compilation.js:677 applyPluginsAsync.err
[spiderdoc]/[webpack]/lib/Compilation.js:677:19
Tapable.js:195 Compilation.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:195:46
Compilation.js:668 applyPluginsAsync.err
[spiderdoc]/[webpack]/lib/Compilation.js:668:11
Tapable.js:195 Compilation.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:195:46
Compilation.js:663 applyPluginsAsync.err
[spiderdoc]/[webpack]/lib/Compilation.js:663:10
Tapable.js:195 Compilation.applyPluginsAsyncSeries
[spiderdoc]/[tapable]/lib/Tapable.js:195:46
Compilation.js:659 applyPluginsAsyncSeries
[spiderdoc]/[webpack]/lib/Compilation.js:659:9
执行rdoc init my-project时遇到这个错误信息
本机环境:macos、node9.11.1、npm 5.8.0
如题
C:/Users/Administrator/AppData/Roaming/npm/node_modules/rdoc/src/web/Router.js
Module parse failed: Unexpected token (12:43)
You may need an appropriate loader to handle this file type.
| if (!arr || arr.length === 0) return false;
| const index = arr.filter(item => item.name === 'README.md' && item.mdconf);
| if (index && index.length > 0) props = { ...index[0] };
| return props;
| }
就不能发个图吗?效果是什么样的?
readme写的不合格哈.
http://yumenawei.gitee.io/blog/
码云平台的pages后面会带上一个目录。
但是rdoc的js文件是跟在网址的后面的,
求解怎么设置下。谢啦
DONE Compiled successfully in 327ms 11:19:34
Dev Server Listening at http://0.0.0.0:5858
然后浏览器自动打开的也是 http://0.0.0.0:5858
TypeError: $export is not a function
- index.html:1880 Object../node_modules/core-js/library/modules/es6.object.define-property.js
[blog]/[rdoc]/theme/default/index.html:1880:1
- index.html:639 __webpack_require__
[blog]/[rdoc]/theme/default/index.html:639:30
- index.html:49 fn
[blog]/[rdoc]/theme/default/index.html:49:20
- index.html:894 Object../node_modules/core-js/library/fn/object/define-property.js
[blog]/[rdoc]/theme/default/index.html:894:1
- index.html:639 __webpack_require__
[blog]/[rdoc]/theme/default/index.html:639:30
- index.html:49 fn
[blog]/[rdoc]/theme/default/index.html:49:20
- index.html:725 Object../node_modules/babel-runtime/core-js/object/define-property.js
[blog]/[rdoc]/theme/default/index.html:725:27
- index.html:639 __webpack_require__
[blog]/[rdoc]/theme/default/index.html:639:30
- index.html:49 fn
[blog]/[rdoc]/theme/default/index.html:49:20
- index.html:1462 Object../node_modules/core-js/library/modules/_object-dp.js
[blog]/[rdoc]/theme/default/index.html:1462:21
- From previous event:
- index.js:110 Compiler.<anonymous>
[blog]/[html-webpack-plugin]/index.js:110:8
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:354 Compiler.emitAssets
[blog]/[webpack]/lib/Compiler.js:354:8
- Compiler.js:58 onCompiled
[blog]/[webpack]/lib/Compiler.js:58:19
- Compiler.js:510 applyPluginsAsync.err
[blog]/[webpack]/lib/Compiler.js:510:14
- Tapable.js:202 next
[blog]/[tapable]/lib/Tapable.js:202:11
- CachePlugin.js:78 Compiler.<anonymous>
[blog]/[webpack]/lib/CachePlugin.js:78:5
- Tapable.js:204 next
[blog]/[tapable]/lib/Tapable.js:204:14
- index.js:46 Compiler.compiler.plugin
[blog]/[create-spare-webpack-plugin]/index.js:46:7
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:507 compilation.seal.err
[blog]/[webpack]/lib/Compiler.js:507:11
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:677 applyPluginsAsync.err
[blog]/[webpack]/lib/Compilation.js:677:19
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:668 applyPluginsAsync.err
[blog]/[webpack]/lib/Compilation.js:668:11
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:663 applyPluginsAsync.err
[blog]/[webpack]/lib/Compilation.js:663:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:659 applyPluginsAsyncSeries
[blog]/[webpack]/lib/Compilation.js:659:9
- From previous event:
- index.js:55 Compiler.<anonymous>
[blog]/[html-webpack-plugin]/index.js:55:8
- Tapable.js:293 Compiler.applyPluginsParallel
[blog]/[tapable]/lib/Tapable.js:293:14
- Compiler.js:499 applyPluginsAsync.err
[blog]/[webpack]/lib/Compiler.js:499:9
- Tapable.js:195 Compiler.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:195:46
- Compiler.js:492 Compiler.compile
[blog]/[webpack]/lib/Compiler.js:492:8
- Compiler.js:83 compiler.applyPluginsAsync.err
[blog]/[webpack]/lib/Compiler.js:83:18
- Tapable.js:202 next
[blog]/[tapable]/lib/Tapable.js:202:11
- Shared.js:161 Compiler.compilerInvalid
[blog]/[webpack-dev-middleware]/lib/Shared.js:161:5
- Tapable.js:204 next
[blog]/[tapable]/lib/Tapable.js:204:14
- CachePlugin.js:48 Compiler.compiler.plugin
[blog]/[webpack]/lib/CachePlugin.js:48:5
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[blog]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:48 Watching._go
[blog]/[webpack]/lib/Compiler.js:48:17
- Compiler.js:142 Watching.invalidate
[blog]/[webpack]/lib/Compiler.js:142:9
- Compiler.js:123 watcher.compiler.watchFileSystem.watch
[blog]/[webpack]/lib/Compiler.js:123:9
- NodeWatchFileSystem.js:45 Watchpack.watcher.once
[blog]/[webpack]/lib/node/NodeWatchFileSystem.js:45:4
- watchpack.js:142 Watchpack._onTimeout
[blog]/[watchpack]/lib/watchpack.js:142:7
hi:
感觉RDOC非常不错,可以用来写接口文档和博客。但是在内容比较多时希望左侧的树形菜单支持折叠收起功能,全部展示出来显示不完且优点杂乱。另外就是侧边栏如果能够支持整体收起隐藏就更好了。
我怎么使用publish或deploy命令将生成的文件通过ssh发布到服务器上
如题
我想在一段文字里对个别词语做字体的突出,在RDOC里应该怎样做
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.