1. jacobmason
  2. sphinx-demo-webapp-pencils-down

Commits

jacobmason  committed f0c46fe

move scripts out of package

  • Participants
  • Parent commits 62df598
  • Branches default

Comments (0)

Files changed (6)

File build.py

View file
  • Ignore whitespace
+# -*- coding: utf-8 -*-
+"""
+    sphinxdemo.build
+    ~~~~~~~~~~~~~~~~
+
+    Script to build Sphinx docs for use with the demo webapp.
+
+    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
+    :license: BSD, see LICENSE for details.
+"""
+
+
+from flask import Flask
+
+app = Flask(__name__)
+
+app.config.from_envvar('SPHINXDEMO_SETTINGS')
+
+from sphinx.websupport import WebSupport
+
+from sphinxdemo.models import init_db
+
+init_db()
+
+support = WebSupport(srcdir=app.config['SOURCE_DIR'],
+                     builddir=app.config['BUILD_DIR'],
+                     search=app.config['SEARCH'],
+                     storage=app.config['DATABASE_URI'])
+support.build()

File config-template.cfg

View file
  • Ignore whitespace
+
+DEBUG = True
+
+SOURCE_DIR = ''
+BUILD_DIR = ''
+DATABASE_URI = ''
+SECRET_KEY = ''
+SEARCH = ''

File runserver.py

View file
  • Ignore whitespace
+# -*- coding: utf-8 -*-
+"""
+    sphinxdemo.runserver
+    ~~~~~~~~~~~~~~~~~~~~
+
+    Script to run the sphinxdemo test server.
+
+    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
+    :license: BSD, see LICENSE for details.
+"""
+from sphinxdemo import app
+app.run()

File sphinxdemo/build.py

  • Ignore whitespace
-# -*- coding: utf-8 -*-
-"""
-    sphinxdemo.build
-    ~~~~~~~~~~~~~~~~
-
-    Script to build Sphinx docs for use with the demo webapp.
-
-    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
-    :license: BSD, see LICENSE for details.
-"""
-
-
-from flask import Flask
-
-app = Flask(__name__)
-
-app.config.from_envvar('SPHINXDEMO_SETTINGS')
-
-from sphinx.websupport import WebSupport
-
-from sphinxdemo.models import init_db
-
-init_db()
-
-support = WebSupport(srcdir=app.config['SOURCE_DIR'],
-                     builddir=app.config['BUILD_DIR'],
-                     search=app.config['SEARCH'],
-                     storage=app.config['DATABASE_URI'])
-support.build()

File sphinxdemo/config-template.cfg

  • Ignore whitespace
-
-DEBUG = True
-
-SOURCE_DIR = ''
-BUILD_DIR = ''
-DATABASE_URI = ''
-SECRET_KEY = ''
-SEARCH = ''

File sphinxdemo/runserver.py

  • Ignore whitespace
-# -*- coding: utf-8 -*-
-"""
-    sphinxdemo.runserver
-    ~~~~~~~~~~~~~~~~~~~~
-
-    Script to run the sphinxdemo test server.
-
-    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
-    :license: BSD, see LICENSE for details.
-"""
-from sphinxdemo import app
-app.run()