[docs] merged kb and cleanup. warning: don't see the commit

This commit is contained in:
Rushabh Mehta
2015-12-03 17:52:46 +05:30
parent ca4c663e07
commit ab7021ce64
1353 changed files with 6077 additions and 1999 deletions

21
erpnext/docs/temp.py Normal file
View File

@@ -0,0 +1,21 @@
from __future__ import unicode_literals
import os
for basepath, folders, files in os.walk("user"):
if "index.txt" in files:
with open(os.path.join(basepath, "index.txt"), "r") as i:
in_index = i.read().splitlines()
missing = []
for f in files:
name = f.rsplit(".", 1)[0]
if name not in in_index and name != "index":
missing.append(f)
if missing:
print missing
with open(os.path.join(basepath, "index.txt"), "w") as i:
i.write("\n".join(in_index + missing))