docs: Move the sphinx root to docs/

This allows using existing documentation in the published documentation
without
* moving the existing docs (which would break external links)
* tricks like symlinks that create issues with relative links

Put the api reference files into a subdirectory to avoid polluting the
main docs/ directory.

Include "Installation" and "Instructions for Contributors" in the
published documentation.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
This commit is contained in:
Jussi Kukkonen 2021-08-20 15:52:57 +03:00 committed by Teodora Sechkova
parent 3ee6a3e786
commit 4f71f98008
No known key found for this signature in database
GPG key ID: 65F78F613EA1914E
13 changed files with 8 additions and 7 deletions

2
.gitignore vendored
View file

@ -4,7 +4,7 @@ build/*
env/*
# docs build directory
docs/sphinx/build/*
docs/build/*
# global file patterns
*.log

View file

@ -8,7 +8,7 @@ version: 2
# Build documentation with Sphinx
sphinx:
builder: html
configuration: docs/sphinx/source/conf.py
configuration: docs/conf.py
# Optionally build your docs in additional formats such as PDF
formats: []

View file

@ -12,7 +12,7 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join('..', '..', '..')))
sys.path.insert(0, os.path.abspath(os.path.join('..')))
import tuf
@ -38,8 +38,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
exclude_patterns = ['GETTING_STARTED.rst', 'OVERVIEW.rst', 'TAP.rst']
# -- Options for HTML output -------------------------------------------------

View file

@ -14,4 +14,6 @@ systems.
:maxdepth: 1
:caption: Contents:
api-reference
api/api-reference
CONTRIBUTORS
INSTALLATION

View file

@ -61,4 +61,4 @@ deps =
changedir = {toxinidir}
commands =
sphinx-build -b html docs/sphinx/source docs/sphinx/build/html
sphinx-build -b html docs docs/build/html