11 Star 30 Fork 3

小弟调调 / idoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

idoc

NPM version CI Dependents Repo npm Downloads npm Downloads npm Downloads

Generate static pages from all Markdown in a folder.

  ,,        ,,
  db      `7MM
            MM
`7MM   ,M""bMM  ,pW"Wq.   ,p6"bo
  MM ,AP    MM 6W'   `Wb 6M'  OO
  MM 8MI    MM 8M     M8 8M
  MM `Mb    MM YA.   ,A9 YM.    ,
.JMML.`Wbmd"MML.`Ybmd9'   YMbmd'

Quick Start

Create a idoc site using the beautiful defalut theme.

$ npx idoc init myapp

Or

$ sudo npm i idoc -g
$ idoc init myapp

Running the idoc init myapp generator from the command line will create a directory structure with the following elements:

├── docs
│   ├── README.md
│   └── about.md
├── package.json
└── idoc.yml

Or use in github actions

- name: Create idoc config.
  run: |
    cat > idoc.yml << EOF
    site: "Rehype Rewrite {{version}}"
    menus:
      Home: index.html
    EOF

- run: npm install idoc@1.26.6 -g
- run: idoc --output="www"

Command Help

Usage: idoc [init|new][options] [--help|h] [--version|v]

Options:

  -v, --version, Show version number
  -h, --help,    Displays help information.
  -f, --force,   Force file regeneration.
  -s, --site,    Set website name.
  -d, --dir <dir-path>, Markdown file directory. defalut(docs)
  -o, --output <dir-path>, Output directory. defalut(dist)
  -w, --watch,   Watch and compile Markdown files.
  -t, --theme,   Customize theme settings. defalut(defalut)
  -m, --minify,  minify HTML

Example:

  $ idoc init <folder>
  $ idoc new introduce/README.md
  $ idoc new introduce/README.md "Hello World" -f
  $ idoc --theme="defalut"
  $ idoc --dir="docs"
  $ idoc --output="dist"
  $ idoc --watch --output="www"

Compiled with idoc

My macOS app's official website is also built with it:

DevTutor for SwiftUI RegexMate Time Passage Iconize Folder Textsound Saver Create Custom Symbols DevHub Resume Revise Palette Genius Symbol Scribe

Repo Starred Last Commit Website
Awesome Mac Github Stars GitHub last commit Preview Website
Awesome UIKit Github Stars GitHub last commit Preview Website
MySQL Tutorial Github Stars GitHub last commit Preview Website
Docker Tutorial Github Stars GitHub last commit Preview Website
Nginx Tutorial Github Stars GitHub last commit Preview Website
Vim Web Github Stars GitHub last commit Preview Website
Git Tips Github Stars GitHub last commit Preview Website
Shell Tutorial Github Stars GitHub last commit Preview Website
SwiftUI Example Github Stars GitHub last commit Preview Website
Swift Tutorial Github Stars GitHub last commit Preview Website
Handbook Github Stars GitHub last commit Preview Website
GitHub Actions Github Stars GitHub last commit Preview Website
HTML Tutorial Github Stars GitHub last commit Preview Website
C Tutorial Github Stars GitHub last commit Preview Website
React Native Github Stars GitHub last commit Preview Website
TypeNexus Github Stars GitHub last commit Preview Website
Awesome ChatGPT Github Stars GitHub last commit Preview Website
React Components Awesome Github Stars GitHub last commit Preview Website
Repo Starred Downloads Website
rehype-rewrite Github Stars NPM Downloads Preview Website
rehype-attr Github Stars NPM Downloads Preview Website
rehype-ignore Github Stars NPM Downloads Preview Website
rehype-video Github Stars NPM Downloads Preview Website
remark-github-blockquote-alert Github Stars NPM Downloads Preview Website
store.js Github Stars NPM Downloads Preview Website
cookie.js Github Stars NPM Downloads Preview Website
auto-config-loader Github Stars NPM Downloads Preview Website
chmod-cli Github Stars NPM Downloads Preview Website
local-ip-url Github Stars NPM Downloads Preview Website
path-templater Github Stars NPM Downloads Preview Website
html-to-markdown-cli Github Stars NPM Downloads Preview Website
colors-named Github Stars NPM Downloads Preview Website
colors-named-hex Github Stars NPM Downloads Preview Website
colors-named-decimal Github Stars NPM Downloads Preview Website
chinese-numerals Github Stars NPM Downloads Preview Website
image2uri Github Stars NPM Downloads Preview Website
svgtofont Github Stars NPM Downloads Preview Website
console-emojis Github Stars NPM Downloads Preview Website
compile-less Github Stars NPM Downloads Preview Website

Contributors

As always, thanks to our amazing contributors!

Made with action-contributors.

License

Licensed under the MIT License.

MIT License Copyright (c) 2022 小弟调调™ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

简单的文档生成工具! 展开 收起
NodeJS 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/jaywcjlove/idoc.git
git@gitee.com:jaywcjlove/idoc.git
jaywcjlove
idoc
idoc
master

搜索帮助