Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
一句话概括下mdwiki特点:
一条命令把一个目录内的markdown文档构建成个人博客展示在github上,结合travis-ci实现全自动发布。
您无需在本机配置任何东西,无需安装nodejs, python等,您只需要在本机编辑markdown,然后push到您的github仓库就OK了。
创建一个空的仓库,切换到分支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
去https://travis-ci.org/ , 把你的这个博客仓库授权给他构建。
进入你授权的仓库的setting里,配置几个环境变量
最后你就可以在你本地使用可视化的markdown 编辑器写博客了。写好之后push到仓库里。travis-ci自动会对博客进行构建,并提交到你的仓库。
还可以给自己的博客绑定个域名,自己去网上查吧,很多介绍。
FAQs
zero config static blog builder
We found that mdwiki demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.