diff options
-rw-r--r-- | wqflask/wqflask/__init__.py | 2 | ||||
-rw-r--r-- | wqflask/wqflask/markdown_routes.py | 8 | ||||
-rw-r--r-- | wqflask/wqflask/templates/base.html | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index f44b4bfd..0b69ec40 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -11,6 +11,7 @@ from wqflask.markdown_routes import references_blueprint from wqflask.markdown_routes import links_blueprint from wqflask.markdown_routes import policies_blueprint from wqflask.markdown_routes import environments_blueprint +from wqflask.markdown_routes import facilities_blueprint app = Flask(__name__) @@ -27,6 +28,7 @@ app.register_blueprint(references_blueprint,url_prefix="/references") app.register_blueprint(links_blueprint,url_prefix="/links") app.register_blueprint(policies_blueprint,url_prefix="/policies") app.register_blueprint(environments_blueprint,url_prefix="/environments") +app.register_blueprint(facilities_blueprint,url_prefix="/facilities") @app.before_request def before_request(): diff --git a/wqflask/wqflask/markdown_routes.py b/wqflask/wqflask/markdown_routes.py index 7765af36..d00628b9 100644 --- a/wqflask/wqflask/markdown_routes.py +++ b/wqflask/wqflask/markdown_routes.py @@ -13,7 +13,7 @@ references_blueprint = Blueprint("references_blueprint", __name__) environments_blueprint = Blueprint("environments_blueprint", __name__) links_blueprint = Blueprint("links_blueprint", __name__) policies_blueprint = Blueprint("policies_blueprint", __name__) -facilities_blueprint=Blueprint("facilities",__name__) +facilities_blueprint=Blueprint("facilities_blueprint",__name__) #for debug github_url = ("https://raw.githubusercontent.com/" @@ -37,8 +37,8 @@ def render_markdown_table(file_name,github_url="https://raw.githubusercontent.co def render_markdown(file_name,github_url="https://raw.githubusercontent.com/Alexanderlacuna/gn-docs/feature/add-markdown-pages/"): - # github_url = ("https://raw.githubusercontent.com/" - # "genenetwork/gn-docs/master/") + github_url = ("https://raw.githubusercontent.com/" + "genenetwork/gn-docs/master/") md_content=requests.get(f"{github_url}{file_name}") """Try to fetch the file name from Github and if that fails, try to @@ -97,4 +97,4 @@ def policies(): @facilities_blueprint.route("/") def facilities(): - return render_template("facilities",rendered_markdown=render_markdown("general/policies/policies.md")), 200
\ No newline at end of file + return render_template("facilities.html",rendered_markdown=render_markdown("general/help/facilities.md")), 200
\ No newline at end of file diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 8ba5d0d5..faa59deb 100644 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -70,6 +70,7 @@ <li><a href="http://gn1.genenetwork.org/faq.html">FAQ</a></li> <li><a href="{{ url_for('policies_blueprint.policies') }}">Policies</a></li> <li><a href="{{ url_for('links_blueprint.links') }}">Links</a></li> + <li><a href="{{ url_for('facilities_blueprint.facilities') }}">Facilities</a></li> <li><a href="{{ url_for('environments_blueprint.environments') }}">Environments</a></li> <li><a href="/news">GN1 News</a></li> </ul> |