diff --git a/frappe/commands/docs.py b/frappe/commands/docs.py
index 4f52eac73d..92daaffa58 100644
--- a/frappe/commands/docs.py
+++ b/frappe/commands/docs.py
@@ -4,6 +4,28 @@ import os
import frappe
from frappe.commands import pass_context
+
+@click.command('write-docs')
+@pass_context
+@click.argument('app')
+@click.option('--target', default=None)
+@click.option('--local', default=False, is_flag=True, help='Run app locally')
+def write_docs(context, app, target=None, local=False):
+ "Setup docs in target folder of target app"
+ from frappe.utils.setup_docs import setup_docs
+
+ if not target:
+ target = os.path.abspath(os.path.join("..", "docs", app))
+
+ for site in context.sites:
+ try:
+ frappe.init(site=site)
+ frappe.connect()
+ make = setup_docs(app)
+ make.make_docs(target, local)
+ finally:
+ frappe.destroy()
+
@click.command('build-docs')
@pass_context
@click.argument('app')
@@ -51,5 +73,6 @@ def _build_docs_once(site, app, docs_version, target, local, only_content_update
frappe.destroy()
commands = [
- build_docs
+ build_docs,
+ write_docs,
]
diff --git a/frappe/config/docs.py b/frappe/config/docs.py
index b045c15e76..dd90839762 100644
--- a/frappe/config/docs.py
+++ b/frappe/config/docs.py
@@ -22,7 +22,7 @@ ERP for managing small and medium sized businesses.
[Get started with the Tutorial](https://frappe.github.io/frappe/user/)
"""
-docs_version = "6.x.x"
+docs_version = "7.x.x"
def get_context(context):
context.top_bar_items = [
diff --git a/frappe/docs/__init__.py b/frappe/docs/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/assets/__init__.py b/frappe/docs/assets/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/assets/img/__init__.py b/frappe/docs/assets/img/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/__init__.py b/frappe/docs/user/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/__init__.py b/frappe/docs/user/en/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/bench/__init__.py b/frappe/docs/user/en/bench/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/bench/guides/__init__.py b/frappe/docs/user/en/bench/guides/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/bench/resources/__init__.py b/frappe/docs/user/en/bench/resources/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/guides/__init__.py b/frappe/docs/user/en/guides/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/guides/app-development/__init__.py b/frappe/docs/user/en/guides/app-development/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/docs/user/en/guides/app-development/using-html-templates-in-javascript.md b/frappe/docs/user/en/guides/app-development/using-html-templates-in-javascript.md
index db0cd90b4c..e2e9123b76 100755
--- a/frappe/docs/user/en/guides/app-development/using-html-templates-in-javascript.md
+++ b/frappe/docs/user/en/guides/app-development/using-html-templates-in-javascript.md
@@ -14,8 +14,7 @@ To render a template,
From `erpnext/public/js/templates/address_list.js`
-
-