Pārlūkot izejas kodu

Merge pull request #3081 from saurabh6790/setup_help_fix

[fix] read apps dir if setting up global help else get installed apps from respective site
version-14
Saurabh pirms 8 gadiem
committed by GitHub
vecāks
revīzija
0f3bd863a3
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      frappe/utils/help.py

+ 3
- 1
frappe/utils/help.py Parādīt failu

@@ -102,7 +102,9 @@ class HelpDatabase(object):
def sync_pages(self):
self.db.sql('truncate help')
doc_contents = '<ol>'
for app in frappe.get_installed_apps():
apps = os.listdir('../apps') if self.global_help_setup else frappe.get_installed_apps()

for app in apps:
docs_folder = '../apps/{app}/{app}/docs/user'.format(app=app)
self.out_base_path = '../apps/{app}/{app}/docs'.format(app=app)
if os.path.exists(docs_folder):


Notiek ielāde…
Atcelt
Saglabāt