1 Star 0 Fork 0

LearningOS / rCore-Tutorial-Book-v3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SPHINXAUTOBUILD ?= sphinx-autobuild
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
html:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@cp scripts/mermaid.js build/html/_static/
.PHONY: help html Makefile deploy liveview
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
view:
make html && firefox build/html/index.html
# http://127.0.0.1:8000
liveview:
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html"
deploy:
@make clean
@make html
@cp scripts/mermaid.js build/html/_static/
@python3 scripts/fix-comments.py
@rm -rf docs
@cp -r build/html docs
@touch docs/.nojekyll
@git add -A
@git commit -m "Deploy"
@git push
htmlpath:
echo file://$(PWD)/build/html/index.html
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/learning-os/rCore-Tutorial-Book-v3.git
git@gitee.com:learning-os/rCore-Tutorial-Book-v3.git
learning-os
rCore-Tutorial-Book-v3
rCore-Tutorial-Book-v3
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891