I am following this tutorial on integrating sphinx with github pages and it seems like the Makefile they use is not working. When I run make github
from my project's root directory, I get the following error:
config directory doesn't contain a conf.py file (C:\path\to\project_root)
However, I can run make html
successfully -- only make github
does not work.
Here's the Makefile I used:
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-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
github:
@make html
@cp -a build/html/. ./docs
# 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)
And here's my folder structure:
project_root
├─ build
├─ docs
├─ source
│ └─ conf.py
└─ Makefile
EDIT:
make github
actually works in a git bash window. I'm on Windows so I suspect this is a platform dependent problem. Is there a way I can modify the Makefile to let it run make github
successfully in windows powershell?