Skip to main content

zero config static blog builder

Project description

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自动会对博客进行构建,并提交到你的仓库。

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

参考资源

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mdwiki-0.2.2-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file mdwiki-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mdwiki-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for mdwiki-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7e7ee0c37af82b4ec8cf16ac8cd4be713e882009f0338122c94af99d2f6a13
MD5 d34940ca304d03110fa4029c3f689923
BLAKE2b-256 ff5500b5355d78332ecbaccb6014c2102076409d735c5ff90c9ed079c6aab32a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page