From abf4e5ba1c7e6b178e941612bd19ecdc4b4e1f75 Mon Sep 17 00:00:00 2001 From: SALAHkun <129999887+SALAHkun@users.noreply.github.com> Date: Fri, 21 Apr 2023 01:01:53 +0000 Subject: [PATCH] Update index.rst --- docs/index.rst | 171 ++++++++++++++++++++++++++----------------------- 1 file changed, 92 insertions(+), 79 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 747749d0..44032d69 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,87 +1,100 @@ -.. rst-class:: hide-header +AnimeSite/ + ├── app.py + ├── static/ + │ ├── css/ + │ │ └── styles.css + │ ├── js/ + │ │ └── script.js + │ └── data/ + │ └── anime.json + ├── templates/ + │ └── index.html +from flask import Flask, render_template -Welcome to Flask -================ +app = Flask(__name__) -.. image:: _static/flask-logo.png - :alt: Flask: web development, one drop at a time - :align: center - :target: https://palletsprojects.com/p/flask/ +@app.route('/') +def home(): + return render_template('index.html') -Welcome to Flask's documentation. Get started with :doc:`installation` -and then get an overview with the :doc:`quickstart`. There is also a -more detailed :doc:`tutorial/index` that shows how to create a small but -complete application with Flask. Common patterns are described in the -:doc:`patterns/index` section. The rest of the docs describe each -component of Flask in detail, with a full reference in the :doc:`api` -section. +if __name__ == '__main__': + app.run(debug=True) + + +
+ + +