Rushabh Mehta 12 anni fa
parent
commit
3f498651df
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +2
    -1
      core/doctype/documentation_tool/documentation_tool.py
  2. +2
    -1
      wnf.py

+ 2
- 1
core/doctype/documentation_tool/documentation_tool.py Vedi File

@@ -42,6 +42,7 @@ def get_static_pages():
d = json.loads(headers)
except Exception, e:
webnotes.msgprint("Bad Headers in: " + fname)
continue
d["_intro"] = body
d["_gh_source"] = get_gh_url(fpath)
d["_modified"] = get_timestamp(fpath)
@@ -411,7 +412,7 @@ def write_docs(data, build_sitemap=None, domain=None):
d["_icon"] = "icon-" + d["_icon"]
if d.get("_modified"):
d["_modified"] = global_date_format(d["_modified"])
with open(get_path("public", "docs", name + ".html"), "w") as docfile:
if not d.get("description"):
d["description"] = "Help pages for " + d["title"]


+ 2
- 1
wnf.py Vedi File

@@ -319,7 +319,8 @@ def run():
import conf
from webnotes.db import Database
import webnotes.modules.patch_handler

webnotes.print_messages = True
# connect
if options.db_name is not None:
if options.password:


Caricamento…
Annulla
Salva