Skip to content

Commit

Permalink
Reorganization (flatification)
Browse files Browse the repository at this point in the history
- can ``make html`` from doc directory and get html.

- documentation tests run as part of normal tests.

README.rst needs some love.

Then on to making this work with RTD.
  • Loading branch information
Jim Fulton committed Sep 8, 2016
1 parent f192110 commit 49497c7
Show file tree
Hide file tree
Showing 30 changed files with 26 additions and 12 deletions.
13 changes: 13 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ develop = .
parts =
test
scripts
sphinx

[versions]
# Avoid breakage in 4.4.5:
Expand Down Expand Up @@ -40,3 +41,15 @@ arguments = ('${buildout:directory}/coverage',
recipe = zc.recipe.egg
eggs = ${test:eggs}
interpreter = py

[sphinx]
recipe = zc.recipe.egg
eggs =
Sphinx
docutils
ZODB
j1m.sphinxautointerface
j1m.sphinxautozconfig
scripts =
sphinx-build
interpreter = stxpy
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = bin/sphinx-build
SPHINXBUILD = ../bin/sphinx-build
PAPER =

# Internal variables.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Because ZODB is an object database:

- almost no seam between code and database.

Check out the :doc:`documentation/tutorial`!
Check out the :doc:`tutorial`!

Transactions
============
Expand Down Expand Up @@ -196,10 +196,10 @@ Learning more
.. toctree::
:maxdepth: 1

documentation/tutorial
documentation/guide/index
documentation/reference/index
documentation/articles/index
tutorial
guide/index
reference/index
articles/index

* `The ZODB Book (in progress) <http://zodb.readthedocs.org/en/latest/>`_

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion doc/zodbdocumentationtests/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from os.path import join
import os
import doctest
import unittest
Expand All @@ -19,10 +20,9 @@
import manuel.testing
import zope.testing.module

from os.path import join
import ZODB

def setUp(test):
import ZODB
test.globs.update(
ZODB=ZODB,
)
Expand All @@ -32,9 +32,11 @@ def tearDown(test):
zope.testing.module.tearDown(test)

def test_suite():
here = os.path.dirname(__file__)
guide = join(here, '..', 'documentation', 'guide')
reference = join(here, '..', 'documentation', 'reference')
base, src = os.path.split(os.path.dirname(os.path.dirname(ZODB.__file__)))
assert src == 'src'
base = join(base, 'doc')
guide = join(base, 'guide')
reference = join(base, 'reference')

return unittest.TestSuite((
manuel.testing.TestSuite(
Expand Down

0 comments on commit 49497c7

Please sign in to comment.