Skip to content

Commit

Permalink
Revert "WIP: sketch out source code architecture for apidoc (#48)"
Browse files Browse the repository at this point in the history
This reverts commit 5570545.
  • Loading branch information
slabasan committed Nov 2, 2023
1 parent 75d3aab commit ef417de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
12 changes: 0 additions & 12 deletions bin/benchpark
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import shutil
import shlex
import sys

import benchpark

DEBUG = False


Expand All @@ -29,7 +27,6 @@ def main():
actions = {}
benchpark_list(subparsers, actions)
benchpark_setup(subparsers, actions)
benchpark_version(subparsers, actions)

args = parser.parse_args()

Expand All @@ -44,7 +41,6 @@ def main():
)



def source_location():
script_location = os.path.dirname(os.path.abspath(__file__))
return pathlib.Path(script_location).parent
Expand Down Expand Up @@ -142,10 +138,6 @@ def benchpark_setup(subparsers, actions_dict):

actions_dict["setup"] = benchpark_setup_handler

def benchpark_version(subparsers, actions_dict):
list_parser = subparsers.add_parser("version", help="Benchpark version")
list_parser.add_argument('sublist', nargs='?')
actions_dict["version"] = benchpark_version_handler

def run_command(command_str, env=None):
subprocess.run(
Expand Down Expand Up @@ -275,9 +267,5 @@ Further steps are needed to run the experiments (ramble -P -D . on)
print(instructions)


def benchpark_version_handler(args):
print(benchpark.benchpark_version)


if __name__ == "__main__":
main()
31 changes: 0 additions & 31 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

import os
import sys

from sphinx.ext.apidoc import main as sphinx_apidoc

# -- Benchpark customizations ------------------------------------------------
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.append(os.path.abspath("../lib/benchpark/benchpark"))
print(sys.path)


project = "Benchpark"
copyright = "2023, LLNS LLC"
author = "Olga Pearce, Alec Scott, Peter Scheibel, Greg Becker, Riyaz Haque, and Nathan Hanford"
Expand All @@ -28,7 +15,6 @@

extensions = [
"sphinx_rtd_theme",
"sphinx.ext.autodoc",
]

exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".spack-env"]
Expand All @@ -38,20 +24,3 @@

html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]

# -- Run sphinx-apidoc -------------------------------------------------
# Remove any previous API docs
# ReadtheDocs doesn't clean up after previous builds
# Without this, the API Docs will never actually update
apidoc_args = [
"--force", # Overwrite existing files
"--no-toc", # Don't create a table of contents file
"--output-dir=.", # Directory to place all output
"--module-first", # emit module docs before submodule docs
]
sphinx_apidoc(
apidoc_args
+ [
"../lib/benchpark/benchpark",
]
)
16 changes: 0 additions & 16 deletions lib/benchpark/benchpark/__init__.py

This file was deleted.

0 comments on commit ef417de

Please sign in to comment.