Giter VIP home page Giter VIP logo

manim_document_zh's Introduction

manim_document_zh

docs GPL License QQ manim_sandbox manim tutorial

manim-kindergarten成员整理的一份manim中文文档教程,目前还在完善当中。如果关于文档内容有问题,可以在这个repo中提出issue。 如果你想要为这个文档做出贡献,可以提交pr。详细内容见贡献规则及编写指南页面。

manim分支中为带有文档字符串的manim源码,用于文档中自动构建文档字符串。

文档地址

https://manim.ml/

还在完善中,目前完成情况:

  • 安装指南
  • 快速入门
  • constants
  • container
  • animation
  • mobject
  • scene
  • camera
  • utils

关于文档构建

当前这个repo使用了GitHub ActionsSphinx自动构建文档。当向master分支push后,会自动触发构建部署在 GitHub PagesNetlify上。向master分支提出pr后,会触发构建,并且部署在Netlify上提供预览。

手动构建文档

Step 1. 安装环境:

  • 确保安装了manim环境
  • pip install -r requirements.txt 安装文档环境

Step 2. 准备目录结构:

.
├── manim/
│   ├── manimlib/
│   ├── manim_sandbox/
│   ├── ...
│   └── manim.py
└── manim_document_zh/
    ├── source/
    │   ├── ...
    │   └── conf.py
    ├── ...
    ├── make.bat
    └── Makefile 

Step 3. 构建文档:

manim_document_zh文件夹中执行make html构建文档

附. 文件格式转换:

sphinx要求使用rst格式(reStructuredText语法),可以使用pandoc把markdown等文件转换rst,或者JupyterNoteBook把py等文件转换rst。

pandoc readme.md --from markdown --to rst -s -o readme.rst

或者

pip install pypandoc

然后

import pypandoc
output = pypandoc.convert_file('somefile.md', 'rst').replace("\r", "")
with open("outputfile.rst", "w", encoding="utf8") as f:
    f.write(output)

manim_document_zh's People

Contributors

tonycrane avatar matheart avatar harshcasper avatar tridu33 avatar deepsource-autofix[bot] avatar dependabot[bot] avatar deepsourcebot avatar oldliu001 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.