Skip to content

Commit 5af9c9b

Browse files
committed
Remove api.json
It is no longer used for API docs after moving to pulprpoject.org. Add to .gitignore as well. Ensure that _static dir is created when needed. Remove a hack for keeping an empty directory in the git repo. [noissue]
1 parent d44e339 commit 5af9c9b

File tree

4 files changed

+3
-3944
lines changed

4 files changed

+3
-3944
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ cover/
5151

5252
# Sphinx documentation
5353
docs/_build/
54+
docs/_static/api.json
5455

5556
# PyBuilder
5657
target/

docs/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SPHINXOPTS = -W -n
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
9+
STATIC_BUILD_DIR = _static
910
PULP_URL = "http://localhost:24817"
1011

1112
# Internal variables.
@@ -43,6 +44,7 @@ clean:
4344
-rm -rf $(BUILDDIR)/*
4445

4546
html:
47+
mkdir -p $(STATIC_BUILD_DIR)
4648
curl --fail -o _static/api.json "$(PULP_URL)/pulp/api/v3/docs/api.json?plugin=pulp_python&include_html=1"
4749
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
4850
@echo

docs/_static/.this_makes_it_so_git_keeps_the__static_folder

-1
This file was deleted.

0 commit comments

Comments
 (0)