def build_pm_help(): for lang in ['en']: help_basepath = op.join(HSGIT_ROOT, 'pdfmasher', 'help', lang) help_destpath = op.join(HTML_PATH, 'pdfmasher', 'help', lang) changelog_path = op.join(HSGIT_ROOT, 'pdfmasher', 'help', 'changelog') confpath = op.join(HSGIT_ROOT, 'pdfmasher', 'help', 'conf.tmpl') tixurl = "https://github.com/hsoft/pdfmasher/issues/{}" confrepl = {'platform': 'osx'} sphinxgen.gen(help_basepath, help_destpath, changelog_path, tixurl, confrepl, confpath)
def build_dg_help(): for lang in ['en', 'fr', 'de', 'hy', 'ru', 'uk']: help_root = op.join(HSGIT_ROOT, 'dupeguru', 'help') help_basepath = op.join(help_root, lang) help_destpath = op.join(HTML_PATH, 'dupeguru', 'help', lang) changelog_path = op.join(help_root, 'changelog') tixurl = "https://github.com/hsoft/dupeguru/issues/{}" homepage = 'https://www.hardcoded.net/dupeguru/' confrepl = {'edition': 'se', 'appname': 'dupeGuru', 'homepage': homepage, 'language': lang} confpath = op.join(help_root, 'conf.tmpl') changelogtmpl = op.join(help_root, 'changelog.tmpl') sphinxgen.gen(help_basepath, help_destpath, changelog_path, tixurl, confrepl, confpath, changelogtmpl)
def build_dg_help(edition): for lang in ['en', 'fr', 'de', 'hy', 'ru', 'uk']: webname = 'dupeguru' if edition == 'se' else 'dupeguru_{}'.format(edition) help_root = op.join(HSGIT_ROOT, 'dupeguru', 'help') help_basepath = op.join(help_root, lang) help_destpath = op.join(HTML_PATH, webname, 'help', lang) changelog_path = op.join(help_root, 'changelog_{}'.format(edition)) tixurl = "https://github.com/hsoft/dupeguru/issues/{}" appname = {'se': 'dupeGuru', 'me': 'dupeGuru Music Edition', 'pe': 'dupeGuru Picture Edition'}[edition] homepage = 'http://www.hardcoded.net/{}/'.format(webname) confrepl = {'edition': edition, 'appname': appname, 'homepage': homepage, 'language': lang} confpath = op.join(help_root, 'conf.tmpl') changelogtmpl = op.join(help_root, 'changelog.tmpl') sphinxgen.gen(help_basepath, help_destpath, changelog_path, tixurl, confrepl, confpath, changelogtmpl)
def build_mg_help(): for lang in ['en', 'fr', 'de', 'it', 'cs', 'ru']: mg_basepath = op.join(HSGIT_ROOT, 'moneyguru') help_basepath = op.join(mg_basepath, 'help', lang) help_destpath = op.join(HTML_PATH, 'moneyguru', 'help', lang) changelog_path = op.join(mg_basepath, 'help', 'changelog') confpath = op.join(mg_basepath, 'help', 'conf.tmpl') credits_path = op.join(mg_basepath, 'help', 'credits.rst') credits_tmpl = op.join(help_basepath, 'credits.tmpl') credits_out = op.join(help_basepath, 'credits.rst') filereplace(credits_tmpl, credits_out, credits=open(credits_path, 'rt', encoding='utf-8').read()) image_src = op.join(mg_basepath, 'help', 'image_osx') image_dst = op.join(help_basepath, 'image') if not op.exists(image_dst): os.symlink(image_src, image_dst) tixurl = "https://github.com/hsoft/moneyguru/issues/{}" confrepl = {'platform': 'osx'} sphinxgen.gen(help_basepath, help_destpath, changelog_path, tixurl, confrepl, confpath)