Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
061db67e
Commit
061db67e
authored
Mar 21, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation fixes.
parent
0ca452da
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
352 additions
and
7 deletions
+352
-7
sidebarintro.html
doc/_templates/sidebarintro.html
+8
-0
theme.conf
doc/_themes/flask/theme.conf
+1
-0
layout.html
doc/_themes/flask_small/layout.html
+22
-0
flasky.css_t
doc/_themes/flask_small/static/flasky.css_t
+287
-0
theme.conf
doc/_themes/flask_small/theme.conf
+11
-0
conf.py
doc/conf.py
+19
-2
quickstart.rst
doc/quickstart.rst
+4
-5
No files found.
doc/_templates/sidebarintro.html
0 → 100644
View file @
061db67e
<h3>
Useful Links
</h3>
<ul>
<li><a
href=
"http://flask.pocoo.org/"
>
The Flask Website
</a></li>
<li><a
href=
"http://github.com/mrjoes/flask-adminex"
>
Flask-AdminEx @ github
</a></li>
</ul>
<a
href=
"http://github.com/MrJoes/flask-adminex"
><img
style=
"position: fixed; top: 0; right: 0; border: 0;"
src=
"http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
alt=
"Fork me on GitHub"
/></a>
\ No newline at end of file
doc/_themes/flask/theme.conf
View file @
061db67e
...
@@ -7,3 +7,4 @@ pygments_style = flask_theme_support.FlaskyStyle
...
@@ -7,3 +7,4 @@ pygments_style = flask_theme_support.FlaskyStyle
index_logo
=
index_logo
=
index_logo_height
=
120
px
index_logo_height
=
120
px
touch_icon
=
touch_icon
=
github_fork
=
'MrJoes/Flask-AdminEx'
doc/_themes/flask_small/layout.html
0 → 100644
View file @
061db67e
{% extends "basic/layout.html" %}
{% block header %}
{{ super() }}
{% if pagename == 'index' %}
<div
class=
indexwrapper
>
{% endif %}
{% endblock %}
{% block footer %}
{% if pagename == 'index' %}
</div>
{% endif %}
{% endblock %}
{# do not display relbars #}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}
{% if theme_github_fork %}
<a
href=
"http://github.com/{{ theme_github_fork }}"
><img
style=
"position: fixed; top: 0; right: 0; border: 0;"
src=
"http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
alt=
"Fork me on GitHub"
/></a>
{% endif %}
{% endblock %}
{% block sidebar1 %}{% endblock %}
{% block sidebar2 %}{% endblock %}
doc/_themes/flask_small/static/flasky.css_t
0 → 100644
View file @
061db67e
/*
* flasky.css_t
* ~~~~~~~~~~~~
*
* Sphinx stylesheet -- flasky theme based on nature theme.
*
* :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@import url("basic.css");
/* -- page layout ----------------------------------------------------------- */
body {
font-family: 'Georgia', serif;
font-size: 17px;
color: #000;
background: white;
margin: 0;
padding: 0;
}
div.documentwrapper {
float: left;
width: 100%;
}
div.bodywrapper {
margin: 40px auto 0 auto;
width: 700px;
}
hr {
border: 1px solid #B1B4B6;
}
div.body {
background-color: #ffffff;
color: #3E4349;
padding: 0 30px 30px 30px;
}
img.floatingflask {
padding: 0 0 10px 10px;
float: right;
}
div.footer {
text-align: right;
color: #888;
padding: 10px;
font-size: 14px;
width: 650px;
margin: 0 auto 40px auto;
}
div.footer a {
color: #888;
text-decoration: underline;
}
div.related {
line-height: 32px;
color: #888;
}
div.related ul {
padding: 0 0 0 10px;
}
div.related a {
color: #444;
}
/* -- body styles ----------------------------------------------------------- */
a {
color: #004B6B;
text-decoration: underline;
}
a:hover {
color: #6D4100;
text-decoration: underline;
}
div.body {
padding-bottom: 40px; /* saved for footer */
}
div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
font-family: 'Garamond', 'Georgia', serif;
font-weight: normal;
margin: 30px 0px 10px 0px;
padding: 0;
}
{% if theme_index_logo %}
div.indexwrapper h1 {
text-indent: -999999px;
background: url({{ theme_index_logo }}) no-repeat center center;
height: {{ theme_index_logo_height }};
}
{% endif %}
div.body h2 { font-size: 180%; }
div.body h3 { font-size: 150%; }
div.body h4 { font-size: 130%; }
div.body h5 { font-size: 100%; }
div.body h6 { font-size: 100%; }
a.headerlink {
color: white;
padding: 0 4px;
text-decoration: none;
}
a.headerlink:hover {
color: #444;
background: #eaeaea;
}
div.body p, div.body dd, div.body li {
line-height: 1.4em;
}
div.admonition {
background: #fafafa;
margin: 20px -30px;
padding: 10px 30px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}
div.admonition p.admonition-title {
font-family: 'Garamond', 'Georgia', serif;
font-weight: normal;
font-size: 24px;
margin: 0 0 10px 0;
padding: 0;
line-height: 1;
}
div.admonition p.last {
margin-bottom: 0;
}
div.highlight{
background-color: white;
}
dt:target, .highlight {
background: #FAF3E8;
}
div.note {
background-color: #eee;
border: 1px solid #ccc;
}
div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}
div.topic {
background-color: #eee;
}
div.warning {
background-color: #ffe4e4;
border: 1px solid #f66;
}
p.admonition-title {
display: inline;
}
p.admonition-title:after {
content: ":";
}
pre, tt {
font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
font-size: 0.85em;
}
img.screenshot {
}
tt.descname, tt.descclassname {
font-size: 0.95em;
}
tt.descname {
padding-right: 0.08em;
}
img.screenshot {
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}
table.docutils {
border: 1px solid #888;
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}
table.docutils td, table.docutils th {
border: 1px solid #888;
padding: 0.25em 0.7em;
}
table.field-list, table.footnote {
border: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
table.footnote {
margin: 15px 0;
width: 100%;
border: 1px solid #eee;
}
table.field-list th {
padding: 0 0.8em 0 0;
}
table.field-list td {
padding: 0;
}
table.footnote td {
padding: 0.5em;
}
dl {
margin: 0;
padding: 0;
}
dl dd {
margin-left: 30px;
}
pre {
padding: 0;
margin: 15px -30px;
padding: 8px;
line-height: 1.3em;
padding: 7px 30px;
background: #eee;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
dl pre {
margin-left: -60px;
padding-left: 60px;
}
tt {
background-color: #ecf0f3;
color: #222;
/* padding: 1px 2px; */
}
tt.xref, a tt {
background-color: #FBFBFB;
}
a:hover tt {
background: #EEE;
}
doc/_themes/flask_small/theme.conf
0 → 100644
View file @
061db67e
[
theme
]
inherit
=
basic
stylesheet
=
flasky
.
css
nosidebar
=
true
pygments_style
=
flask_theme_support
.
FlaskyStyle
[
options
]
index_logo
=
index_logo_height
=
120
px
github_fork
=
MrJoes
/
Flask
-
AdminEx
doc/conf.py
View file @
061db67e
...
@@ -134,8 +134,10 @@ html_static_path = ['_static']
...
@@ -134,8 +134,10 @@ html_static_path = ['_static']
#html_use_smartypants = True
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars
=
{
'index'
:
[
'sidebarintro.html'
,
'sourcelink.html'
,
'searchbox.html'
],
'**'
:
[
'localtoc.html'
,
'relations.html'
,
'sourcelink.html'
,
'searchbox.html'
]
}
# Additional templates that should be rendered to pages, maps page names to
# Additional templates that should be rendered to pages, maps page names to
# template names.
# template names.
#html_additional_pages = {}
#html_additional_pages = {}
...
@@ -247,3 +249,18 @@ texinfo_documents = [
...
@@ -247,3 +249,18 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping
=
{
'http://docs.python.org/'
:
None
}
intersphinx_mapping
=
{
'http://docs.python.org/'
:
None
}
# fall back if theme is not there
try
:
__import__
(
'flask_theme_support'
)
except
ImportError
,
e
:
print
'-'
*
74
print
'Warning: Flask themes unavailable. Building with default theme'
print
'If you want the Flask themes, run this command and build again:'
print
print
' git submodule update --init'
print
'-'
*
74
pygments_style
=
'tango'
html_theme
=
'default'
html_theme_options
=
{}
doc/quickstart.rst
View file @
061db67e
...
@@ -7,8 +7,8 @@ knowledge of `Flask <http://flask.pocoo.org/>`_ framework.
...
@@ -7,8 +7,8 @@ knowledge of `Flask <http://flask.pocoo.org/>`_ framework.
Introduction
Introduction
------------
------------
While developing the library, I attempted to make it as flexible as possible
, so you don't have
While developing the library, I attempted to make it as flexible as possible
. Developer should
to monkey patch, if you wanted to extend or change existing
functionality.
not patch a library to achieve desired
functionality.
Library uses one simple, but powerful concept - administrative pieces are built as classes with
Library uses one simple, but powerful concept - administrative pieces are built as classes with
view methods.
view methods.
...
@@ -79,10 +79,9 @@ Now, lets add a view. To do this, you need to derive from `BaseView` class::
...
@@ -79,10 +79,9 @@ Now, lets add a view. To do this, you need to derive from `BaseView` class::
app.run()
app.run()
If you will run this example, you will see that menu has two items: Home and Hello. If you click on the Hello menu
If you will run this example, you will see that menu has two items: Home and Hello.
item, application will crash, as you did not create 'index.html' template.
Create templates directory and create new index.html file with following contents
::
Now, create `templates` directory and put new index.html file with following content
::
{% extends 'admin/master.html' %}
{% extends 'admin/master.html' %}
{% block body %}
{% block body %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment