From c08cb26c3509314ae6ff70c916a9a55f4f9dead7 Mon Sep 17 00:00:00 2001 From: neofelis2X Date: Thu, 23 Jan 2025 14:49:39 +0100 Subject: [PATCH] Docs: doc2dash now needs file-extension added to the --name --- build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 34b3ea01..1bffc400 100755 --- a/build.py +++ b/build.py @@ -1018,8 +1018,8 @@ def cmd_docset_py(options, args): sys.exit(1) # clear out any old docset build - name = 'wxPython-{}'.format(cfg.VERSION) - docset = posixjoin('dist', '{}.docset'.format(name)) + name = 'wxPython-{}.docset'.format(cfg.VERSION) + docset = posixjoin('dist', name) if os.path.isdir(docset): shutil.rmtree(docset) @@ -1036,7 +1036,7 @@ def cmd_docset_py(options, args): # Remove the sidebar from the pages in the docset msg('Removing sidebar from docset pages...') - _removeSidebar(opj('dist', name+'.docset', 'Contents', 'Resources', 'Documents')) + _removeSidebar(opj('dist', name, 'Contents', 'Resources', 'Documents')) # build the tarball msg('Archiving Phoenix docset...') @@ -1045,7 +1045,7 @@ def cmd_docset_py(options, args): if os.path.exists(tarfilename): os.remove(tarfilename) with tarfile.open(name=tarfilename, mode="w:gz") as tarball: - tarball.add(opj('dist', name+'.docset'), name+'.docset', filter=_setTarItemPerms) + tarball.add(opj('dist', name), name, filter=_setTarItemPerms) if options.upload: uploadPackage(tarfilename, options, keep=5,