Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.06 KB

how_to_sphinx.org

File metadata and controls

34 lines (28 loc) · 1.06 KB

Como fazer a documentação com o sphinx

Basicamente:

make github (make html e copia itens para /docs)

Modifiquei o Makefile para que o python usado fosse o do pyenv (abjad36)

# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS    ?=
SPHINXBUILD   ?= python -m sphinx.cmd.build

SOURCEDIR     = source
BUILDDIR      = _build

# Put it first so that "make" without argument is like "make help".
help:
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# 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)

github:
	@make html
	@cp -a _build/html/. .

O rinoh que funciona é esse: https://github.com/brechtm/rinohtype

Lilypond sphinxnotes funcionou errado então encorporei como PDF

git add, commit, push