Skip to content

Commit

Permalink
Merge pull request #9 from gojuukaze/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gojuukaze authored Feb 19, 2020
2 parents 6712467 + 35bb8c4 commit 91428ab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 27 deletions.
13 changes: 0 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx_rtd_theme'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -167,15 +166,3 @@


# -- Extension configuration -------------------------------------------------

def setup(app):
from sphinx.domains.python import PyField
from sphinx.util.docfields import Field

app.add_object_type(
'item',
'item',
objname='configuration value',
indextemplate='pair: %s; configuration value',

)
2 changes: 1 addition & 1 deletion docs/source/developer_guide/config/handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

如:

.. code-block:: json
.. code-block:: python
{
"url":{
Expand Down
1 change: 0 additions & 1 deletion docs/source/developer_guide/url_view.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. _url-view:

====================
Url View接口文档
====================
Expand Down
22 changes: 10 additions & 12 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. _installation:

============
安装
============
Expand Down Expand Up @@ -33,9 +32,8 @@
pip install deeru
deeru-admin install DeerU
从git仓库安装
----------------------

从git仓库安装(不推荐)
---------------------------

.. code-block:: bash
Expand All @@ -47,7 +45,7 @@

* ``deeru/urls_local.py`` ,内容如下:

.. code-block:: python
.. code-block:: python
from django.contrib import admin
from django.urls import path, include
Expand All @@ -59,19 +57,19 @@
* ``deeru/settings_local.py`` ,内容如下:

.. code-block:: python
.. code-block:: python
# v2版本开始需要配置
SECRET_KEY = 'xxx'
DEBUG = True
ALLOWED_HOSTS = ['*']
CUSTOM_EXPRESSION = []
CUSTOM_APPS = []
CUSTOM_CONFIG_HANDLER = []
v2版本需要设置你自己的 ``SECRET_KEY`` ,可以使用命令 ``python manage.py gen_secret_key`` 生成
v2版本需要设置你自己的 ``SECRET_KEY`` ,可以使用命令 ``python manage.py gen_secret_key`` 生成

0 comments on commit 91428ab

Please sign in to comment.