-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from sandialabs/read-the-docs
docs: Prepare for ReadTheDocs
- Loading branch information
Showing
8 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Read the Docs configuration file for Sphinx projects. | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for | ||
# details. | ||
|
||
# Required. | ||
version: 2 | ||
|
||
# Set the OS, Python version, and other tools you need. | ||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.9" | ||
|
||
# Build documentation in the "doc/" directory with Sphinx. | ||
sphinx: | ||
fail_on_warning: true | ||
configuration: doc/source/conf.py | ||
|
||
# Declare Python requirements for building the documentation. | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
- requirements: requirements.txt | ||
- requirements: doc/requirements.txt | ||
- requirements: example/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
ORIG_DIR=$(pwd) | ||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) | ||
cd "${SCRIPT_DIR}" || exit 1 | ||
make clean | ||
python3 -m pip uninstall -y shell-logger | ||
cd .. | ||
python3 -m pip install . | ||
cd "${SCRIPT_DIR}" || exit 1 | ||
make html | ||
cd "${ORIG_DIR}" || exit 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Requirements for building the `ShellLogger` documentation. | ||
# Requirements for building the `shell-logger` documentation. | ||
|
||
sphinx | ||
sphinx-argparse | ||
sphinx-autodoc-typehints | ||
sphinx-copybutton | ||
sphinx-rtd-theme | ||
sphinxcontrib-programoutput | ||
sphinxcontrib-spelling |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Requirements for running the `shell-logger` examples. |