Bladeren bron

[docs]

version-14
Rushabh Mehta 12 jaren geleden
bovenliggende
commit
3f498651df
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. +2
    -1
      core/doctype/documentation_tool/documentation_tool.py
  2. +2
    -1
      wnf.py

+ 2
- 1
core/doctype/documentation_tool/documentation_tool.py Bestand weergeven

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


+ 2
- 1
wnf.py Bestand weergeven

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

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


Laden…
Annuleren
Opslaan