diff --git a/frappe/change_log/v6/v6_16_4.md b/frappe/change_log/v6/v6_16_4.md
index fc901c3248..63ae316f22 100644
--- a/frappe/change_log/v6/v6_16_4.md
+++ b/frappe/change_log/v6/v6_16_4.md
@@ -1,2 +1 @@
-- Developer Tutorial [Videos](http://frappe.github.io/frappe/user/videos/)
- Increased uploaded file size limit upto 10MB
\ No newline at end of file
diff --git a/frappe/commands/docs.py b/frappe/commands/docs.py
index 38d4a22bea..9556c21270 100644
--- a/frappe/commands/docs.py
+++ b/frappe/commands/docs.py
@@ -1,31 +1,9 @@
from __future__ import unicode_literals, absolute_import
import click
-import os
+import os, shutil
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')
@@ -36,23 +14,26 @@ def write_docs(context, app, target=None, local=False):
def build_docs(context, app, docs_version="current", target=None, local=False, watch=False):
"Setup docs in target folder of target app"
from frappe.utils import watch as start_watch
- if not target:
- target = os.path.abspath(os.path.join("..", "docs", app))
+ from frappe.utils.setup_docs import add_breadcrumbs_tag
for site in context.sites:
_build_docs_once(site, app, docs_version, target, local)
if watch:
def trigger_make(source_path, event_type):
- if "/templates/autodoc/" in source_path:
- _build_docs_once(site, app, docs_version, target, local)
+ if "/docs/user/" in source_path:
+ # user file
+ target_path = frappe.get_app_path(target, 'www', 'docs', 'user',
+ os.path.relpath(source_path, start=frappe.get_app_path(app, 'docs', 'user')))
+ shutil.copy(source_path, target_path)
+ add_breadcrumbs_tag(target_path)
elif ("/docs.css" in source_path
or "/docs/" in source_path
or "docs.py" in source_path):
_build_docs_once(site, app, docs_version, target, local, only_content_updated=True)
- apps_path = frappe.get_app_path(app, "..", "..")
+ apps_path = frappe.get_app_path(app)
start_watch(apps_path, handler=trigger_make)
def _build_docs_once(site, app, docs_version, target, local, only_content_updated=False):
@@ -62,17 +43,16 @@ def _build_docs_once(site, app, docs_version, target, local, only_content_update
frappe.init(site=site)
frappe.connect()
- make = setup_docs(app)
+ make = setup_docs(app, target)
if not only_content_updated:
make.build(docs_version)
- make.make_docs(target, local)
+ #make.make_docs(target, local)
finally:
frappe.destroy()
commands = [
build_docs,
- write_docs,
]
diff --git a/frappe/config/docs.py b/frappe/config/docs.py
index 029149d7c0..11c03cccac 100644
--- a/frappe/config/docs.py
+++ b/frappe/config/docs.py
@@ -2,12 +2,10 @@
from __future__ import unicode_literals
-docs_version = "7.x.x"
-
source_link = "https://github.com/frappe/frappe"
-docs_base_url = "https://frappe.github.io/frappe"
-headline = "Superhero Web Framework"
-sub_heading = "Build extensions to ERPNext or make your own app"
+docs_base_url = "/docs"
+headline = "Frappé Framework"
+sub_heading = "Tutorials, API documentation and Model Reference"
hide_install = True
long_description = """Frappe is a full stack web application framework written in Python,
Javascript, HTML/CSS with MySQL as the backend. It was built for ERPNext
@@ -25,7 +23,7 @@ to ERPNext.
Frappe Framework was designed to build [ERPNext](https://erpnext.com), open source
ERP for managing small and medium sized businesses.
-[Get started with the Tutorial](https://frappe.github.io/frappe/user/)
+[Get started with the Tutorial](/docs/user/)
"""
google_analytics_id = 'UA-8911157-23'
diff --git a/frappe/docs/contents.html b/frappe/docs/contents.html
deleted file mode 100644
index 59d0b4459d..0000000000
--- a/frappe/docs/contents.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
Table of Contents
-
-
-{% include "templates/includes/full_index.html" %}
-
-
-
-
diff --git a/frappe/docs/contents.py b/frappe/docs/contents.py
deleted file mode 100644
index c23737a3c0..0000000000
--- a/frappe/docs/contents.py
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
-# See license.txt
-
-from __future__ import unicode_literals
-import frappe
-from frappe.website.utils import get_full_index
-
-def get_context(context):
- context.full_index = get_full_index()
diff --git a/frappe/docs/index.html b/frappe/docs/index.html
deleted file mode 100644
index a70cba3109..0000000000
--- a/frappe/docs/index.html
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
Superhero Web Framework
-
Build extensions to ERPNext or make your own app
-
-
-
-

-
-
-
-
-
-
-
-
-
-
-
-
Frappe is a full stack web application framework written in Python,
-Javascript, HTML/CSS with MySQL as the backend. It was built for ERPNext
-but is pretty generic and can be used to build database driven apps.
-
-
The key differece in Frappe compared to other frameworks is that Frappe
-is that meta-data is also treated as data and is used to build front-ends
-very easily. Frappe comes with a full blown admin UI called the Desk
-that handles forms, navigation, lists, menus, permissions, file attachment
-and much more out of the box.
-
-
Frappe also has a plug-in architecture that can be used to build plugins
-to ERPNext.
-
-
Frappe Framework was designed to build ERPNext, open source
-ERP for managing small and medium sized businesses.
-
-
Get started with the Tutorial
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frappe/docs/index.txt b/frappe/docs/index.txt
deleted file mode 100644
index 4bdfdc4ac8..0000000000
--- a/frappe/docs/index.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-assets
-user
-contents
-current
-install
-license
diff --git a/frappe/docs/install.md b/frappe/docs/install.md
deleted file mode 100644
index 7350f8f4ab..0000000000
--- a/frappe/docs/install.md
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-# Installation
-
-Frappe Framework is based on the Frappe Framework, a full stack web framework based on Python, MariaDB, Redis, Node.
-
-To intall Frappe Framework, you will have to install the Frappe Bench, the command-line, package manager and site manager for Frappe Framework. For more details, read the Bench README.
-
-After you have installed Frappe Bench, go to you bench folder, which is `frappe.bench` by default and setup **frappe**.
-
- bench get-app frappe {{ source_link }}
-
-Then create a new site to install the app.
-
- bench new-site mysite
-
-This will create a new folder in your `/sites` directory and create a new database for this site.
-
-Next, install frappe in this site
-
- bench --site mysite install-app frappe
-
-To run this locally, run
-
- bench start
-
-Fire up your browser and go to http://localhost:8000 and you should see the login screen. Login as **Administrator** and **admin** (or the password you set at the time of `new-site`) and you are set.
-
-
-
\ No newline at end of file
diff --git a/frappe/docs/license.html b/frappe/docs/license.html
deleted file mode 100644
index 602685d65f..0000000000
--- a/frappe/docs/license.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-MIT
-
-The MIT License (MIT)
-
-Copyright (c) 2016 Frappe Technologies Pvt. Ltd.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-
\ No newline at end of file
diff --git a/frappe/docs/user/en/guides/app-development/generating-docs.md b/frappe/docs/user/en/guides/app-development/generating-docs.md
index 8494533d22..0775967494 100755
--- a/frappe/docs/user/en/guides/app-development/generating-docs.md
+++ b/frappe/docs/user/en/guides/app-development/generating-docs.md
@@ -1,18 +1,17 @@
# Generating Documentation Website for your App
-Frappe version 6.7 onwards includes a full-blown documentation generator so that you can easily create a website for your app that has both user docs and developers docs (auto-generated). These pages are generated as static HTML pages so that you can add them as GitHub pages.
+Frappe version 6.7 onwards includes a full-blown documentation generator so that you can easily create a website for your app that has both user docs and developers docs (auto-generated).
+
+Version 8.7 onwards, these will be generated in a target app.
## Writing Docs
### 1. Setting up docs
-#### 1.1. Setup `docs.py`
-
The first step is to setup the docs folder. For that you must create a new file in your app `config/docs.py` if it is not auto-generated. In your `docs.py` file, add the following module properties.
source_link = "https://github.com/[orgname]/[reponame]"
- docs_base_url = "https://[orgname].github.io/[reponame]"
headline = "This is what my app does"
sub_heading = "Slightly more details with key features"
long_description = """(long description in markdown)"""
@@ -29,16 +28,6 @@ The first step is to setup the docs folder. For that you must create a new file
pass
-#### 1.2. Generate `/docs`
-
-To generate the docs for the `current` version, go to the command line and write
-
- bench --site [site] build-docs [appname]
-
-If you want to maintain versions of your docs, then you can add a version number instead of `current`
-
-This will create a `/docs` folder in your app.
-
### 2. Add User Documentation
To add user documentation, add folders and pages in your `/docs/user` folder in the same way you would build a website pages in the `www` folder.
@@ -54,61 +43,28 @@ Some quick tips:
While linking make sure you add `{{ docs_base_url }}` to all your links.
- {% raw %}Link Description{% endraw %}
+ {% raw %}Link Description{% endraw %}
### 4. Adding Images
You can add images in the `/docs/assets` folder. You can add links to the images as follows:
- {% raw %}
{% endraw %}
-
----
-
-## Setting up output docs
-
-The output docs are generated in your `docs/appname` folder using the `write-docs` command.
-
----
-
-## Viewing Locally
-
-To test your docs locally, add a `--local` option to the `write-docs` command.
-
- bench --site [site] write-docs [appname] --local
-
-Then it will build urls so that you can view these files locally. To view them locally in your browser, you can use the Python SimpleHTTPServer
-
-Run this from your `docs/myapp` folder:
-
- python -m SimpleHTTPServer 8080
+ {% raw %}
{% endraw %}
---
-## Publishing to GitHub Pages
-To publish your docs on GitHub pages, you will have to create an empty and orphan branch in your repository called `gh-pages` and push your documentation there.
+## Building Docs
-1. To easily publish your docs on gh-pages, commit and push your `apps/docs` folder on you master branch first.
-2. The `/docs` generation will also generate a `/docs` folder in your bench, parallel to your `/sites` folder. e.g. `/frappe-bench/docs`
-3. Generate you documentation using the `write-docs` command.
-4. Go to your docs folder `cd docs/myapp`
-5. Checkout the gh-pages branch `git checkout --orphan gh-pages`
-6. Push your documentation to Github.
+You must create a new app that will have the output of the docs, which is called the "target" app. For example, the docs for ERPNext are hosted at erpnext.org, which is based on the app "foundation". You can create a new app just to push docs of any other app.
-Note > The branch name `gh-pages` is only if you are using GitHub. If you are hosting this on any other static file server, you can create any other orphan branch instead.
+To output docs to another app,
-Putting it all together:
+ bench --site [site] build-docs [app] --target [target_app]
- # build the apps/docs folder and write the compiled docs at docs/appname
- bench --site [site] build-docs [appname]
+This will create a new folder `/docs` inside the `www` folder of the target app and generate automatic docs (from code), model references and copy user docs and assets.
- # commit to the gh-pages branch (for GitHub Pages)
- cd docs/appname
- git checkout --orphan gh-pages
- git remote add origin [remote git repository]
- git add *
- git commit -m "Documentation Initialization"
- git push origin gh-pages
+To view the docs, just go the the `/docs` url on your target app. Example:
-To check your documentation online go to: https://[orgname].github.io/[reponame]
+ https://erpnext.org/docs
diff --git a/frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md b/frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md
index 9eb11b066a..1e22757d7e 100755
--- a/frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md
+++ b/frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md
@@ -39,7 +39,7 @@ You can define complex queries such as:
### 4. Advanced (adding filters)
-If you are making a standard report, you can add filters in your query report just like [script reports](https://frappe.github.io/frappe/user/en/guides/reports-and-printing/how-to-make-script-reports) by adding a `.js` file in your query report folder. To include filters in your query, use `%(filter_key)s` where your filter value will be shown.
+If you are making a standard report, you can add filters in your query report just like [script reports](https://frappe.io/docs/user/en/guides/reports-and-printing/how-to-make-script-reports) by adding a `.js` file in your query report folder. To include filters in your query, use `%(filter_key)s` where your filter value will be shown.
For example
diff --git a/frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md b/frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md
index ab03c11051..74479a8b9c 100755
--- a/frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md
+++ b/frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md
@@ -4,9 +4,9 @@ You can create tabulated reports using server side scripts by creating a new Rep
> Note: You will need Administrator Permissions for this.
-Since these reports give you unrestricted access via Python scripts, they can only be created by Administrators. The script part of the report becomes a part of the repository of the application. If you have not created an app, [read this](https://frappe.github.io/frappe/user/en/guides/app-development/).
+Since these reports give you unrestricted access via Python scripts, they can only be created by Administrators. The script part of the report becomes a part of the repository of the application. If you have not created an app, [read this](https://frappe.io/docs/user/en/guides/app-development/).
-> Note: You must be in [Developer Mode](https://frappe.github.io/frappe/user/en/guides/app-development/how-enable-developer-mode-in-frappe) to do this
+> Note: You must be in [Developer Mode](https://frappe.io/docs/user/en/guides/app-development/how-enable-developer-mode-in-frappe) to do this
### 1. Create a new Report
diff --git a/frappe/docs/user/en/tutorial/before.md b/frappe/docs/user/en/tutorial/before.md
index 80f34e01dd..426101e1cc 100755
--- a/frappe/docs/user/en/tutorial/before.md
+++ b/frappe/docs/user/en/tutorial/before.md
@@ -6,11 +6,12 @@
#### 1. Python
-Frappe uses Python (v2.7) for server-side programming. It is highly recommended to learn Python before you start building apps with Frappe.
+Frappe uses Python (v2.7) for server-side programming. It is highly recommended to learn Python before you start building apps with Frappe.
To write quality server-side code, you must also include automated tests.
Resources:
+
1. [Codecademy Tutorial for Python](https://www.codecademy.com/learn/python)
1. [Official Python Tutorial](https://docs.python.org/2.7/tutorial/index.html)
1. [Basics of Test-driven development](http://code.tutsplus.com/tutorials/beginning-test-driven-development-in-python--net-30137)
@@ -19,11 +20,12 @@ Resources:
#### 2. MariaDB / MySQL
-To create database-driven apps with Frappe, you must understand the basics of database management, like how to install, login, create new databases, and basic SQL queries.
+To create database-driven apps with Frappe, you must understand the basics of database management, like how to install, login, create new databases, and basic SQL queries.
Resources:
+
1. [Codecademy Tutorial for SQL](https://www.codecademy.com/learn/learn-sql)
- 1. [A basic MySQL tutorial by DigitalOcean](https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial)
+ 1. [A basic MySQL tutorial by DigitalOcean](https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial)
1. [Getting started with MariaDB](https://mariadb.com/kb/en/mariadb/documentation/getting-started/)
---
@@ -33,6 +35,7 @@ Resources:
If you want to build user interfaces using Frappe, you will need to learn basic HTML / CSS and the Boostrap CSS Framework.
Resources:
+
1. [Codecademy Tutorial for HTML/CSS](https://www.codecademy.com/learn/learn-html-css)
1. [Getting started with Bootstrap](https://getbootstrap.com/getting-started/)
@@ -44,6 +47,7 @@ To customize forms and create rich user interfaces, you should learn JavaScript
Resources:
+
1. [Codecademy Tutorial for JavaScript](https://www.codecademy.com/learn/learn-javascript)
1. [Codecademy Tutorial for jQuery](https://www.codecademy.com/learn/jquery)
---
@@ -53,6 +57,7 @@ Resources:
If you are customizing Print templates or Web pages, you need to learn the Jinja Templating language. It is an easy way to create dynamic web pages (HTML).
Resources:
+
1. [Primer on Jinja Templating](https://realpython.com/blog/python/primer-on-jinja-templating/)
1. [Official Documentation](http://jinja.pocoo.org/)
@@ -63,6 +68,7 @@ Resources:
Learn how to contribute back to an open source project using Git and GitHub, two great tools to help you manage your code and share it with others.
Resources:
+
1. [Basic Git Tutorial](https://try.github.io)
2. [How to contribute to Open Source](https://opensource.guide/how-to-contribute/)
diff --git a/frappe/public/css/desk.css b/frappe/public/css/desk.css
index bfce576e37..22ecdb993b 100644
--- a/frappe/public/css/desk.css
+++ b/frappe/public/css/desk.css
@@ -258,7 +258,7 @@ a[disabled="disabled"]:hover {
}
.link-btn {
position: absolute;
- top: 2px;
+ top: 3px;
right: 4px;
border-radius: 2px;
padding: 3px;
diff --git a/frappe/public/css/docs.css b/frappe/public/css/docs.css
index 20b11d5cb1..2fdd0ae21d 100644
--- a/frappe/public/css/docs.css
+++ b/frappe/public/css/docs.css
@@ -597,9 +597,3 @@ a.edit:visited,
.page-content-wrapper > .row .col-sm-4 {
display: none;
}
-.screenshot {
- border: 2px solid #d1d8dd;
- box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
- margin: 15px 0px;
- max-width: 100%;
-}
diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css
index 9a92bccf38..b9b2d733bb 100644
--- a/frappe/public/css/website.css
+++ b/frappe/public/css/website.css
@@ -430,6 +430,9 @@ h6 a {
color: inherit !important;
text-decoration: none;
}
+li {
+ line-height: 1.7em;
+}
.navbar-brand {
max-width: none;
}
@@ -503,6 +506,9 @@ h6 a {
min-height: 140px;
border-top: 1px solid #EBEFF2;
}
+.page_content {
+ padding-bottom: 30px;
+}
.carousel-control .icon {
position: absolute;
top: 50%;
@@ -599,7 +605,7 @@ fieldset {
}
.web-sidebar .sidebar-item {
margin: 0px;
- padding: 12px 0px;
+ padding-bottom: 12px;
border: none;
color: #8D99A6;
font-size: 12px;
@@ -607,21 +613,14 @@ fieldset {
.web-sidebar .sidebar-item .badge {
font-weight: normal;
}
-.web-sidebar .sidebar-item:first-child {
- padding-top: 10px;
-}
-.web-sidebar .sidebar-item:last-child {
- padding-bottom: 10px;
-}
.web-sidebar .sidebar-item a {
- color: #8D99A6;
+ color: #36414C !important;
}
.web-sidebar .sidebar-item a.active {
color: #36414C !important;
font-weight: 500 !important;
}
.web-sidebar .sidebar-items {
- margin-top: -10px;
margin-bottom: 30px;
}
.web-sidebar .sidebar-items .title {
@@ -675,69 +674,25 @@ fieldset {
.web-list-item:last-child {
border-bottom: 0px;
}
-.blog-info {
- text-align: center;
- margin-top: 30px;
-}
-.post-description {
- padding-bottom: 8px;
-}
-.post-description p {
- margin-bottom: 8px;
-}
-.blog-footer {
- padding: 5px 15px;
- border-top: 1px solid #EBEFF2;
- margin: 0px -15px -20px -15px;
-}
-.blog-list-content .website-list .result {
+.website-list .result {
border: 0px;
}
-.blog-list-content .web-list-item:hover {
+.web-list-item:hover {
background: transparent;
}
-.blog-category {
- letter-spacing: 0.5px;
- text-align: center;
- margin-bottom: 30px;
-}
-.author {
- letter-spacing: 0.5px;
- border-bottom: 1px solid #EBEFF2;
- padding-bottom: 30px;
-}
-.blogger {
- padding-top: 0px;
- padding-bottom: 50px;
-}
-.blog-dot:before {
+.spacer-dot:before {
padding-right: 8px;
padding-left: 8px;
content: "\2022";
}
-.blog-list-item {
- margin-top: 30px;
- margin-bottom: 30px;
-}
-.blog-list-item .blog-header {
- font-size: 1.6em;
-}
-.blog-header {
- font-weight: 700;
- font-size: 2em;
-}
.add-comment-section {
padding-bottom: 30px;
}
-.blog-comments {
- position: relative;
- border-top: 1px solid #d1d8dd;
-}
-.blog-comment-row {
+.comment-row {
margin: 0px -15px;
padding: 15px;
}
-.blog-comment-row:last-child {
+.comment-row:last-child {
margin-bottom: 30px;
border-bottom: 0px;
}
@@ -837,7 +792,7 @@ a.active {
}
.sidebar-block,
.page-content {
- padding-top: 50px;
+ padding-top: 30px;
padding-bottom: 50px;
}
.your-account-info {
@@ -871,19 +826,6 @@ a.active {
li.footer-child-item {
margin: 15px 0px;
}
-.blog-info {
- text-align: center;
- margin-top: 30px;
-}
-.blog-text {
- padding-top: 50px;
- padding-bottom: 50px;
- font-size: 18px;
- line-height: 1.5;
-}
-.blog-text p {
- margin-bottom: 30px;
-}
.comment-view {
padding-bottom: 30px;
}
@@ -927,7 +869,7 @@ li.footer-child-item {
overflow: hidden;
}
.vert-line > div + div {
- border-left: 1px solid #EBEFF2;
+ border-left: 1px solid #d1d8dd;
}
.vert-line > div {
padding-bottom: 2000px;
@@ -994,3 +936,13 @@ li.footer-child-item {
padding: 10px;
border-radius: 4px;
}
+.docfields pre {
+ background-color: transparent;
+ border: none;
+}
+.screenshot {
+ border: 1px solid #d1d8dd;
+ box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
+ margin: 15px 0px;
+ max-width: 100%;
+}
diff --git a/frappe/public/js/frappe/ui/messages.js b/frappe/public/js/frappe/ui/messages.js
index 35f3e93f8a..79c1345cfa 100644
--- a/frappe/public/js/frappe/ui/messages.js
+++ b/frappe/public/js/frappe/ui/messages.js
@@ -141,17 +141,17 @@ frappe.msgprint = function(msg, title) {
msg = replace_newlines(data.message);
}
+ var msg_exists = false;
if(data.clear) {
msg_dialog.msg_area.empty();
- var msg_exists = false;
} else {
- var msg_exists = msg_dialog.msg_area.html();
+ msg_exists = msg_dialog.msg_area.html();
}
if(data.title || !msg_exists) {
// set title only if it is explicitly given
// and no existing title exists
- msg_dialog.set_title(data.title || __('Message'))
+ msg_dialog.set_title(data.title || __('Message'));
}
// show / hide indicator
diff --git a/frappe/public/less/desk.less b/frappe/public/less/desk.less
index 2ada74b8f7..9df1cab483 100644
--- a/frappe/public/less/desk.less
+++ b/frappe/public/less/desk.less
@@ -24,7 +24,7 @@ a[disabled="disabled"] {
.link-btn {
position: absolute;
- top: 2px;
+ top: 3px;
right: 4px;
border-radius: 2px;
padding: 3px;
diff --git a/frappe/public/less/docs.less b/frappe/public/less/docs.less
index f84b0fe960..5ddee38349 100644
--- a/frappe/public/less/docs.less
+++ b/frappe/public/less/docs.less
@@ -403,10 +403,4 @@ a.edit, a.edit:hover, a.edit:focus, a.edit:visited, .edit-container .icon {
}
}
-.screenshot {
- border: 2px solid @border-color;
- box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
- margin: 15px 0px;
- max-width: 100%;
-}
diff --git a/frappe/public/less/website.less b/frappe/public/less/website.less
index a9d80cc494..6e9e7916a1 100644
--- a/frappe/public/less/website.less
+++ b/frappe/public/less/website.less
@@ -29,6 +29,10 @@ h1, h2, h3, h4, h5, h6 {
}
+li {
+ line-height: 1.7em;
+}
+
.navbar-brand {
max-width: none;
@@ -120,6 +124,10 @@ h1, h2, h3, h4, h5, h6 {
border-top: 1px solid @light-border-color;
}
+.page_content {
+ padding-bottom: 30px;
+}
+
.carousel-control .icon {
position: absolute;
top: 50%;
@@ -235,7 +243,7 @@ fieldset {
.sidebar-item {
margin: 0px;
- padding: 12px 0px;
+ padding-bottom: 12px;
border: none;
color: @text-muted;
font-size: 12px;
@@ -246,25 +254,17 @@ fieldset {
}
- .sidebar-item:first-child {
- padding-top: 10px;
- }
- .sidebar-item:last-child {
- padding-bottom: 10px;
- }
-
.sidebar-item a {
- color: @text-muted;
+ color: @text-color !important;
}
.sidebar-item a.active {
color: @text-color !important;
- font-weight:500 !important;
+ font-weight: 500 !important;
}
.sidebar-items {
// margin-top:30px;
- margin-top: -10px;
margin-bottom:30px;
.title{
font-size: 14px;
@@ -331,92 +331,30 @@ fieldset {
border-bottom: 0px;
}
-// .web-list-item:hover {
-// background: @panel-bg;
-// }
-
-.blog-info {
- text-align:center;
- margin-top: 30px;
-}
-
-.post-description {
- padding-bottom: 8px;
- p {
- margin-bottom: 8px;
- }
-}
-
-
-.blog-footer {
- padding: 5px 15px;
- border-top: 1px solid @light-border-color;
- margin: 0px -15px -20px -15px;
-}
-
-.blog-list-content .website-list .result {
+.website-list .result {
border: 0px;
}
-.blog-list-content .web-list-item:hover {
+.web-list-item:hover {
background: transparent;
}
-.blog-category {
- letter-spacing: 0.5px;
- text-align: center;
- margin-bottom: 30px;
-}
-
-.author {
- letter-spacing: 0.5px;
- border-bottom: 1px solid @light-border-color;
- padding-bottom:30px;
-}
-
-.blogger {
- padding-top: 0px;
- padding-bottom: 50px;
-}
-
-.blog-dot:before{
+.spacer-dot:before{
padding-right:8px;
padding-left:8px;
content:"\2022";
}
-.blog-list-item {
- margin-top: 30px;
- margin-bottom: 30px;
-
- .blog-header {
- font-size: 1.6em;
- }
-}
-
-.blog-header {
- font-weight: 700;
- font-size: 2em;
-}
-
.add-comment-section {
padding-bottom: 30px;
}
-.blog-comments,
-.help-article-comments {
-}
-.blog-comments {
- position: relative;
- border-top: 1px solid @border-color;
-}
-
-.blog-comment-row {
+.comment-row {
margin: 0px -15px;
padding: 15px;
}
-.blog-comment-row:last-child {
+.comment-row:last-child {
margin-bottom: 30px;
border-bottom: 0px;
}
@@ -540,7 +478,7 @@ a.active {
}
.sidebar-block, .page-content {
- padding-top: 50px;
+ padding-top: 30px;
padding-bottom: 50px;
}
.your-account-info {
@@ -584,21 +522,6 @@ li.footer-child-item {
margin: 15px 0px;
}
-.blog-info {
- text-align:center;
- margin-top: 30px;
-}
-
-.blog-text {
- padding-top: 50px;
- padding-bottom: 50px;
- font-size: 18px;
- line-height: 1.5;
- p {
- margin-bottom: 30px;
- }
-}
-
.comment-view {
padding-bottom: 30px;
}
@@ -643,7 +566,7 @@ li.footer-child-item {
}
.vert-line {overflow:hidden;}
-.vert-line>div+div{border-left:1px solid @light-border-color;}
+.vert-line>div+div{border-left:1px solid @border-color;}
.vert-line>div{
padding-bottom:2000px; margin-bottom:-2000px;}
@@ -717,4 +640,19 @@ li.footer-child-item {
border: 1px solid @border-color;
padding: 10px;
border-radius: 4px;
-}
\ No newline at end of file
+}
+
+// docs
+.docfields {
+ pre {
+ background-color: transparent;
+ border: none;
+ }
+}
+
+.screenshot {
+ border: 1px solid @border-color;
+ box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
+ margin: 15px 0px;
+ max-width: 100%;
+}
diff --git a/frappe/templates/autodoc/dev_home.html b/frappe/templates/autodoc/dev_home.html
index 20176d6769..5d9c3a0d06 100644
--- a/frappe/templates/autodoc/dev_home.html
+++ b/frappe/templates/autodoc/dev_home.html
@@ -7,9 +7,9 @@
{{ source_link(app, app.name, True) }}
-
+
-
+ |
App Name
|
@@ -37,10 +37,10 @@
Contents
diff --git a/frappe/templates/autodoc/docs_home.html b/frappe/templates/autodoc/docs_home.html
index 602c9fb5b0..9d38b0605b 100644
--- a/frappe/templates/autodoc/docs_home.html
+++ b/frappe/templates/autodoc/docs_home.html
@@ -5,57 +5,15 @@
{% if app.style %} {{ app.style }} {% endif %}
-
-
-
-
-
- {{ app.headline }}
- {{ app.sub_heading }}
-
-
-
- 
-
-
-
-
-
-
-
-{% if app.long_description %}
-
-
-
- {{ app.long_description|markdown }}
-
-
-
+{% if app.headline %}
+{{ app.headline }}
+{% endif %}
+{% if app.sub_heading %}
+{{ app.sub_heading }}
{% endif %}
-{% if not app.hide_install %}
-
-
-
- Install
- From your site
- To install this app, login to your site and click on "Installer". Search for {{ app.title }} and click on "Install"
- Using Bench
- Go to your bench folder and setup the new app
- $ bench get-app {{app.name}} {{app.source_link}}
-$ bench new-site testsite
-$ bench --site testsite install-app {{app.name}}
- Login to your site to configure the app.
- Detailed Installation Steps
-
-
- Author
-
- {{ app.publisher }} ({{ app.email }})
-
-
-
+{% if app.long_description %}
+{{ app.long_description|markdown }}
{% endif %}
diff --git a/frappe/templates/autodoc/doctype.html b/frappe/templates/autodoc/doctype.html
index 3236f0c994..b851fc52e8 100644
--- a/frappe/templates/autodoc/doctype.html
+++ b/frappe/templates/autodoc/doctype.html
@@ -1,10 +1,12 @@
+
{% from "templates/autodoc/macros.html" import automodule, version,
source_link, doctype_link %}
{% set doc = frappe.get_doc("DocType", doctype) %}
{% set controller = autodoc.get_controller(doctype) %}
+{{ doctype }}
|
{% for item in children_map[route] %}-
- {{ item.title }}
+ {{ item.title }}
+ {#
{% if children_map[item.route] %}
{{ make_item_list(item.route, children_map) }}
{% endif %}
+ #}
{% endfor %}
diff --git a/frappe/templates/includes/web_sidebar.html b/frappe/templates/includes/web_sidebar.html index 764ce4d277..d452e8af3f 100644 --- a/frappe/templates/includes/web_sidebar.html +++ b/frappe/templates/includes/web_sidebar.html @@ -22,7 +22,7 @@ {% endif %} {% for item in sidebar_items -%}