--- /dev/null
+include README.rst
+include requirements.txt
+include requirements-docs.txt
+
--- /dev/null
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2017-2018 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+import pkg_resources
+
+from docs_conf import *
+
+version=pkg_resources.require("lfdocs-conf")[0].version
+release=version
--- /dev/null
+project_cfg: lfdocs
+project: lfdocs-conf
--- /dev/null
+.. _lfdocs-conf:
+
+lfdocs-conf
+===========
+
+Linux Foundation Sphinx documentation common configuration project.
+
+This package is a set of default configurations for various Linux Foundation
+projects that use Sphinx to share a common configuration.
+
+Contents:
+
+.. toctree::
+ :maxdepth: 2
+
+ install-guide
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
--- /dev/null
+Install Guide
+=============
pytest
pyyaml
-sphinx>=1.6.6
+sphinx
sphinx_bootstrap_theme>=0.6.2
"""
Setup for Docs Configuration
"""
+__author__ = 'Linux Foundation Releng'
+__summary__ = 'Linux Foundation DocsConf'
+__version__ = '0.2.0-dev'
+
+
from setuptools import setup, find_packages
+
+with open('requirements.txt') as f:
+ install_reqs = f.read().splitlines()
+
+
setup(
name='lfdocs_conf',
packages=['docs_conf'],
- version='0.1.2',
- author="Linux Foundation Releng",
+ version=__version__,
+ author=__author__,
author_email="releng@linuxfoundation.org",
url="https://gerrit.linuxfoundation.org/docs-conf",
package_data={
'docs_conf': ['defaults/*']
},
- install_requires=[
- 'pyyaml',
- 'sphinx',
- 'sphinx_bootstrap_theme'
- ]
+ install_requires=install_reqs
)
commands =
nodeenv -p
coala --non-interactive
+
+[testenv:docs]
+deps = -rrequirements.txt
+commands =
+ sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+ echo "Generated docs available in {toxinidir}/docs/_build/html"
+whitelist_externals = echo