Skip to content

Commit

Permalink
Generate help text in readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
EricR86 committed Mar 29, 2023
1 parent adf3011 commit eddcb91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .readthedocs.yaml
Expand Up @@ -9,11 +9,19 @@ conda:

# Required for project building and versioning
python:
version: 3.8 # matches in environment.yml
install:
- method: pip
path: .

build:
os: ubuntu-22.04
tools:
# Ref: https://github.com/readthedocs/readthedocs.org/issues/9008
python: "miniconda3-4.7"
jobs:
post_install:
- make -C doc cmdline-help

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/conf.py
2 changes: 1 addition & 1 deletion doc/gethelp.py
Expand Up @@ -13,7 +13,7 @@
sys.path.insert(0, "..")

def gethelp(scriptname):
(entry_point,_) = entry_points(group="console_scripts", name=scriptname)
(entry_point,_) = entry_points().select(group="console_scripts", name=scriptname)
entry = entry_point.value
module_name, _, func_name = entry.partition(":")

Expand Down

0 comments on commit eddcb91

Please sign in to comment.