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) + + +
+ + +