Skip to content

Commit

Permalink
Merge pull request #1914 from RonnyPfannschmidt/docs-remove-getdoctarget
Browse files Browse the repository at this point in the history
docs: remove the need for special scripts
  • Loading branch information
nicoddemus authored Sep 5, 2016
2 parents 8a41b26 + a2b8981 commit 99efc28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 39 deletions.
19 changes: 1 addition & 18 deletions doc/en/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ REGENDOC_ARGS := \
--normalize "@/tmp/pytest-of-.*/pytest-\d+@PYTEST_TMPDIR@" \



.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest


help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
Expand All @@ -36,22 +35,6 @@ help:
clean:
-rm -rf $(BUILDDIR)/*

SITETARGET=$(shell ./_getdoctarget.py)

showtarget:
@echo $(SITETARGET)

install: html
# for access talk to someone with login rights to
# [email protected] to add your ssh key
rsync -avz _build/html/ [email protected]:pytest.org/$(SITETARGET)

installpdf: latexpdf
@scp $(BUILDDIR)/latex/pytest.pdf [email protected]:pytest.org/$(SITETARGET)

installall: clean install installpdf
@echo "done"

regen:
PYTHONDONTWRITEBYTECODE=1 COLUMNS=76 regendoc --update *.rst */*.rst ${REGENDOC_ARGS}

Expand Down
16 changes: 0 additions & 16 deletions doc/en/_getdoctarget.py

This file was deleted.

7 changes: 2 additions & 5 deletions doc/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
# The short X.Y version.

import os, sys
sys.path.insert(0, os.path.dirname(__file__))
import _getdoctarget

version = _getdoctarget.get_minor_version_string()
release = _getdoctarget.get_version_string()
from _pytest import __version__ as version
release = ".".join(version.split(".")[:2])

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down

0 comments on commit 99efc28

Please sign in to comment.