跳转到主要内容

discodoc - 从Discourse内容轻松创建文档

项目描述

https://img.shields.io/badge/Python-3-green.svg https://img.shields.io/pypi/v/discodoc.svg https://img.shields.io/github/tag/hiveeyes/discodoc.svg

discodoc

关于

discodoc - 从Discourse内容轻松创建类似印刷品的文档。

它旨在使文档生成变得轻而易举。

可能仍有一些龙。

摘要

# Generate PDF document from all posts of given topic.
discodoc https://community.hiveeyes.org/t/anleitung-aufbau-und-installation-des-sensor-kits-grune-platine/2443 --format=pdf

有关更多信息及更多示例,请调用 discodoc --help

特性

所有输出格式都由pandoc提供。这些已测试过:pdf、docx、odt、pptx、epub2、epub3、fb2、latex、texinfo、txt、text、html、html5、json、plain、rtf、revealjs、s5。

安装

先决条件

# Debian
apt install texlive-latex-base pandoc

# macOS / Homebrew
brew install pandoc python3-requests
brew cask install basictex

可选

brew cask install wkhtmltopdf

对于HTML演示文稿渲染

yarn install


wget https://meyerweb.com/eric/tools/s5/v/1.1/s5-11.zip
cp -r ~/Downloads/s5-11/ui node_modules/s5

设置

pip install discodoc

注意事项

如果您遇到了以下指示的Discourse中的全球速率限制和节流之一:

{"errors":["You’ve performed this action too many times, please try again later."]}

您可能希望使用适当的API密钥进行身份验证,例如

export DISCOURSE_API_KEY=5c58bf5e4027622543f5179938182099c8b97188d00a9dc9f184cd3ca66db5ea

致谢

你知道你是谁。谢谢!

其他程序

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源分发

discodoc-0.3.0.tar.gz (19.1 kB 查看哈希值)

上传时间

由以下提供支持