Skip to content

Commit

Permalink
update vernum, docs, and gen_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RJbalikian committed Oct 3, 2023
1 parent d8eb305 commit 50d1642
Show file tree
Hide file tree
Showing 15 changed files with 610 additions and 310 deletions.
4 changes: 2 additions & 2 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package:
name: sprit
version: 0.1.37
version: 0.1.38

source:
git_url: https://github.com/RJbalikian/SPRIT-HVSR
git_tag: v0.1.37
git_tag: v0.1.38

build:
number: 0
Expand Down
13 changes: 7 additions & 6 deletions docs/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#Whether to convert_md using markdown library (True), or let github do it (False)
convert_md=True
rtd_theme=False #Not currently working
release_version= '0.1.37'
release_version= '0.1.38'

currentDir = pathlib.Path((__file__)).parent
docsDir = currentDir
Expand All @@ -22,7 +22,7 @@
pyinstallerGUI = currentDir.joinpath('sprit_gui_COPY.py')

# Set the package name, subdirectory, and output directory
subdir = '.\sprit'
subdir = './sprit'
output_dir = 'docs'

venvPath = pathlib.Path(sys.executable).parent.parent
Expand Down Expand Up @@ -52,8 +52,9 @@
break

src_path = pathlib.Path(subdir)
trg_path = src_path.parent # this ends up being main repo folder, usually

trg_path = src_path.parent.joinpath(output_dir) # this ends up being main repo folder, usually
print(src_path.absolute())
print(trg_path.absolute())
#Move items back into the main docs folder
keepList = ['generate_docs.py', 'conf.py', 'requirements.txt', 'wiki', 'pyinstaller']
for t in trg_path.iterdir():
Expand Down Expand Up @@ -88,7 +89,7 @@
file = file.rename(destFilePath)
keepList.append(destFilePath.name)
if file.name=='index.html':
mainhtmlFPath = file.parent.parent.joinpath('main.html')
mainhtmlFPath = file.parent.joinpath('main.html')
if mainhtmlFPath.is_file():
os.remove(mainhtmlFPath)
file.rename(mainhtmlFPath)
Expand Down Expand Up @@ -169,7 +170,7 @@
newVerText = r'version: '+release_version
cFileText = re.sub(verText, newVerText, cFileText, flags=re.DOTALL)

verText = r'git_tag:\s+\d+\.\d+\.\d+[^\n]*'
verText = r'git_tag:\s+v+\d+\.\d+\.\d+[^\n]*'
newVerText = r'git_tag: v'+release_version
cFileText = re.sub(verText, newVerText, cFileText, flags=re.DOTALL)

Expand Down
41 changes: 0 additions & 41 deletions docs/index.html

This file was deleted.

Loading

0 comments on commit 50d1642

Please sign in to comment.