English | 简体中文 m2w 2: Markdown to WordPress Automatically upload and update local markdown to WordPress via Python :star2::star2::star2: Welcome m2w 2! Tutorial: Docker系列 WordPress系列 WordPress上传或更新Markdown的最佳实践-m2w 2.0 Note (2023-02-23-): m2w v2.5 will support WordPress REST API but is still in beta version, which is not recommended. If m2w 2.5 was ready, we would release a stable version. Before that, m2w v2.2.11 is the best choice. Table of Contents Background Install Usage Demo Related Efforts LOG TO-DO Maintainers Contributing License Background m2w is an easy-to-use tool for automatical upload & update of markdown to WordPress, which has been frozen in v1.0.7. m2w 1.0 is powerful enough for most people, but not very friendly: You have to assign legacy or new path to store the blog markdowns, which means that you could not position your files as you like. It's not convenient to manage multiple sites with exactly the same blog markdowns. You can still find tutorials about m2w 1.0 (Zh/En), which is not maintained anymore. It's OK if you just use m2w 1.0, and It works…
m2w 2: Markdown to WordPress 基于Python将本地markdown推送和更新至Wordpress 教程: Docker系列 WordPress系列 WordPress上传或更新Markdown的最佳实践-m2w 2.0。 注意:m2w v2.5将支持WordPress REST API,但目前还是开发版本。如果m2w v2.5已经开发测试完成,我们会提交一个稳定版本供大家使用。目前仅推荐大家使用m2w v2.2.11。不便之处,敬请谅解! 内容列表 展示 背景 安装 使用 相关仓库 维护者 如何贡献 使用许可 背景 m2w 是一个简单易用的自动上传和更新 markdown 到 WordPress 的工具,m2w 1.0 的开发工作已经在 v1.0.7 中被冻结。 m2w 1.0 对大多数人来说已经足够强大了,但有些特性对使用者不太友好: 必须分配旧的或新的路径来存储博文,这意味着使用者无法随意放置文件。 无法同时对多个站点进行管理。 你仍然可以找到m2w 1.0的使用说明(中/英),但我原则上不再维护m2w 1.0了。 现在,更强大的m2w 2来和大家见面啦!m2w 2 具有以下特点: 与 m2w 1.0 相比,使用 和config/user.json 略微不同的方式维护用户信息。 可以开心地保留原有的文件结构 (~ ̄▽ ̄)~ 。 通过多个legacy_*.json 同时管理多个网站。 只需要使用1个 python 脚本 myblog.py 而不是两个(m2w 1.0 中的 update.py 和 upload.py)。 忽略重复的新markdown的上传操作(v2.2.4+)。该特性对于用户从m2w 1.0升级到m2w 2十分友好! 像m2w 1.0 稳定且好用! 安装 poetry 安装方式 有关poetry的安装请查看官方文档Introduction | Documentation | Poetry - Python dependency management and packaging made easy (python-poetry.org) 下载随2.3.0更新上传的位于poetry 目录下的pyproject.toml和poetry.lock,放在一个你喜欢并且容易找到的文件夹 在目录下运行poetry install 查看接下来的使用教程部分 Anaconda安装 建议使用 Conda 来管理 Python 版本和相关依赖项。这是一个第3方示例教程:《win10安装 Anaconda3》。自己找找,教程很多的 (~ ̄▽ ̄)~ 依赖项: ```python # Python 3.7.4 is the version I use m2w. I'm not sure whether it could work well in more advanced Python versions. python_requires='>=3.7.4' # Dependencies install_requires=[ "python-frontmatter>=1.0.0", "markdown>=3.3.6", "python-wordpress-xmlrpc>=2.3" ] ``` 官方pip安装 2022-12-10 之后,我将m2w 2 上传到 PyPi,这样你只需要在Shell中运行pip install m2w即可安装。 考虑到不同源同步延迟的可能性,你可以指定m2w 2的版本号和源: bash pip install -i https://pypi.org/simple m2w 直接下载该仓库中的代码(不推荐) 如果你采用这种方式,你还需要在环境中安装以下三个包 python-frontmatter,markdown,python-wordpress-xmlrpc 建议安装最新版本的m2w 2。 使用 v2.2.11 通过pip或这个Github repotory安装 m2w。 新建文件<path01>/myblog.py文件(名字随便取),这是一个示例。将myblog.py文件中的path_m2w赋值为<path02> # Absolute path of m2w path_m2w = '<path02>' 新建文件<path02>/config/user.json,这是一个示例。根据实际情况修改参数即可。你可以创建很多个类似于web01的网站/帐户喔!参数解释如下:…
English | 简体中文 m2w 2: Markdown to WordPress Automatically upload and update local markdown to WordPress via Python :star2::star2::star2: Welcome m2w 2! Tutorial: Docker系列 WordPress系列 WordPress上传或更新Markdown的最佳实践-m2w 2.0 Note (2023-02-23-): m2w v2.5 will support WordPress REST API but is still in beta version, which is not recommended. If m2w 2.5 was ready, we would release a stable version. Before that, m2w v2.2.11 is the best choice. Table of Contents Background Install Usage Demo Related Efforts LOG TO-DO Maintainers Contributing License Background m2w is an easy-to-use tool for automatical upload & update of markdown to WordPress, which has been frozen in v1.0.7. m2w 1.0 is powerful enough for most people, but not very friendly: You have to assign legacy or new path to store the blog markdowns, which means that you could not position your files as you like. It's not convenient to manage multiple sites with exactly the same blog markdowns. You can still find tutorials about m2w 1.0 (Zh/En), which is not maintained anymore. It's OK if you just use m2w 1.0, and It works…
No abstract.
No abstract.
No abstract.
No abstract.
No abstract.
No abstract.
No abstract.