discodoc-轻松从话语内容创建文档
discodoc的Python项目详细描述
迪斯科
概要
# 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 fame提供。这些已经过测试: PDF、DOX、ODT、PPTX、EPUB2、EPUB3、FB2、胶乳、TEXFIN、TXT、文本、HTML、HTML5、JSON、Prand、RTF、Envaljjs、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
注意事项
如果您正在点击global rate limits and throttling in Discourse中的一个,如:
{"errors":["You’ve performed this action too many times, please try again later."]}
您可能需要使用适当的api密钥进行身份验证,如:
export DISCOURSE_API_KEY=5c58bf5e4027622543f5179938182099c8b97188d00a9dc9f184cd3ca66db5ea
学分
- Donald Knuth和LaTeX Team用于构思和维护tex和乳胶。
- John MacFarlane以及创建和管理pandoc的所有贡献者。
- 令人惊奇的Discourse Team和所有的贡献者创造的话语和它的精神。
你知道你是怎样的人。谢谢!