Socket
Socket
Sign inDemoInstall

mdwiki

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdwiki

zero config static blog builder


Maintainers
1

mdwiki介绍

一句话概括下mdwiki特点:

一条命令把一个目录内的markdown文档构建成个人博客展示在github上,结合travis-ci实现全自动发布。
您无需在本机配置任何东西,无需安装nodejs, python等,您只需要在本机编辑markdown,然后push到您的github仓库就OK了。

使用手册

步骤1. 创建博客github仓库

创建一个空的仓库,切换到分支source, 目的是让master分支放编译好的博客。

仓库里建个目录post, post里以日期为目录,目录里写md博客,推荐typora。

日期以年/月/日 来建,当然也可以 年-月/日/, 或者年-月-日/

参考我的 https://github.com/drunkpig/drunkpig.github.io/tree/source

然后在工程目录下建立一个.travis.yml文件,内容如下,直接copy:

language: python
dist: bionic
sudo: required

python:
    - "3.7"

branches:
  only:
    - source
    - master

install:
  - pip install -U mdwiki
  - sudo snap install tree

script:
  - mdpub
步骤2. 授权travis-ci

https://travis-ci.org/ , 把你的这个博客仓库授权给他构建。

步骤3. 在travis-ci上配置几个变量

进入你授权的仓库的setting里,配置几个环境变量

写博客提交

最后你就可以在你本地使用可视化的markdown 编辑器写博客了。写好之后push到仓库里。travis-ci自动会对博客进行构建,并提交到你的仓库。

还可以给自己的博客绑定个域名,自己去网上查吧,很多介绍。

参考资源

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc