sphinxcontrib-rawfiles là một phần mở rộng Sphinx để sao chép các tập tin thô, giống như một CNAME.
Cài đặt
Bạn có thể nhận được tập tin lưu trữ tại http://bitbucket.org/birkenfeld/sphinx-contrib/
Đặt
easy_install sphinxcontrib-rawfiles
Configure Sphinx
Để kích hoạt phần mở rộng này, thêm sphinxcontrib.rawfiles module để mở rộng tùy chọn tại conf.py và thêm.
os nhập khẩu, sys
# Đường dẫn đến thư mục mà là rawfiles.py
# Chú ý: không cần thiết nếu các gói phần mềm được cài đặt theo cách truyền thống
# Sử dụng setup.py hoặc easy_install
sys.path.append (os.path.abspath ('/ path / to / sphinxcontrib.rawfiles'))
# Mở rộng Bật
phần mở rộng = ['sphinxcontrib.rawfiles']
# Tập tin bạn muốn sao chép
rawfiles = ['CNAME']
Repository
Mã này được tổ chức bởi Bitbucket.
http://bitbucket.org/birkenfeld/sphinx-contrib/
Requirements:
- Python
- Sphinx
Bình luận không