{{ page | safe}}
6 |{{ meta.title }}
7 | {% endif %} 8 | {% if meta.subtitle %} 9 |{{ meta.subtitle }}
10 | {% endif %} 11 |{{ page | safe}}
6 |Sorry, but the page you were trying to view does not exist.
10 | 11 | 12 | -------------------------------------------------------------------------------- /themes/bootstrap/templates/page_listing.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | {% block body %} 3 | {{ page | safe}} 4 | 5 | 6 | {# Section for each nav entry #} 7 | {% for nav in navigation.children if not nav.name == "About" -%} 8 | {{ nav.name }} 9 | {% endfor %} 10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /prospector.yml: -------------------------------------------------------------------------------- 1 | output-format: text 2 | 3 | strictness: high 4 | test-warnings: true 5 | doc-warnings: false 6 | member-warnings: true 7 | 8 | ignore-paths: 9 | - docs 10 | 11 | uses: 12 | - flask 13 | 14 | pep8: 15 | disable: 16 | - E501 17 | options: 18 | max-line-length: 79 19 | 20 | -------------------------------------------------------------------------------- /mdweb/partials/google_analytics.html: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /themes/bootstrap/assets/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 |{{ meta.subtitle }}
10 | {% endif %} 11 |{{ meta.subtitle }}
10 | {% endif %} 11 |
16 |
17 |
18 | ## Requirements
19 | * Python 2.7+, 3.x
20 | * Pip
21 | * Virtualenv (optional)
22 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:alpine
2 | MAINTAINER Chad Rempp | Jill | 20 |Smith | 21 |50 | 22 |
| Eve | 25 |Jackson | 26 |94 | 27 |
| Jill | 35 |Smith | 36 |50 | 37 |
| Eve | 40 |Jackson | 41 |94 | 42 |
Sorry, but the page you were trying to view does not exist.
56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /demo-content/documentation/devserver.md: -------------------------------------------------------------------------------- 1 | ```metainf 2 | Title: MDWeb Dev Server 3 | Nav Name: Dev Server 4 | Description: How to run the MDWeb in development mode 5 | Order: 5 6 | Teaser: Learn multiple ways to run MDWeb in a development environment. 7 | Possibilities include local Flask server, Docker, and more. 8 | Sitemap Priority: 0.5 9 | Sitemap Changefreq: monthly 10 | ``` 11 | 12 | 13 | #MDWeb Development Server 14 | 15 | The `dev_server` script starts a minimal development server which is based on 16 | the Werkzeug (WSGI) server. This is not for production use and will perform 17 | abysmally under even trivial loads. 18 | 19 | usage: dev_server [-h] [-d] [-p PORT] [-n NAME] [-l] [--log-level LOG_LEVEL] 20 | site 21 | 22 | Development Server Help 23 | 24 | positional arguments: 25 | site site class 26 | 27 | optional arguments: 28 | -h, --help show this help message and exit 29 | -d, --debug run in debug mode (for use with PyCharm) 30 | -p PORT, --port PORT port of server (default:5000) 31 | -n NAME, --name NAME application name 32 | -l, --list-sites list available applications 33 | --log-level LOG_LEVEL 34 | logging level ('CRITICAL', 'ERROR, 'WARNING','INFO', 35 | 'DEBUG', 'NOTSET') 36 | 37 | -------------------------------------------------------------------------------- /tests/test_debug_helper.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """Tests for the Debug Helper.""" 3 | from flask_testing import TestCase 4 | from tests.sites import MDTestSiteDebugHelper, MDTestSite 5 | 6 | 7 | class TestDebugHelperOn(TestCase): 8 | """Debug helper tests. 9 | 10 | Can't use pyfakefs for this or partials won't load""" 11 | 12 | def create_app(self): 13 | 14 | app = MDTestSiteDebugHelper( 15 | "MDWeb", 16 | app_options={} 17 | ) 18 | app.start() 19 | 20 | return app 21 | 22 | def test_debug_helper_loads(self): 23 | # self.app.DEBUG_HELPER 24 | with self.app.test_client() as client: 25 | response = client.get('/') 26 | response_data = response.get_data(as_text=True) 27 | self.assertTrue('{{ page | safe}}
14 |45 |