Total Pageviews

Monday, 14 October 2024

静态博客程序frozen-flask

 

Building locally

To work locally with this project, you'll have to follow the steps below:

  1. Fork, clone or download this project
  2. Install Frozen-Flask
  3. Generate the website: FLASK_APP=app.py env/bin/flask freeze
  4. Preview your project: FLASK_APP=app.py env/bin/flask serve
  5. Add content

Read more at Frozen-Flask's documentation.

from https://gitlab.com/pages/frozen-flask

------------------------------------------------------

pip install Frozen-Flask

Freezes a Flask application into a set of static files.

Project description

Freezes a Flask application into a set of static files. The result can be hosted without any server-side software other than a traditional web server.

See documentation: https://frozen-flask.readthedocs.io/

Contributing

  • Fork the upstream repository and clone your fork

  • Create a feature branch for the thing you want to work on

  • Create a virtual environment and activate it

  • Run pip install -e .[doc,test,check] to install dependencies

  • Add your changes

  • Make sure tests pass with pytest

  • Make sure you followed the style guide with flake8 and isort

  • Send a pull request to the upstream repository

You can also use Hatch to automatically install dependencies, launch tests, check style and build documentation:

$ hatch run test:run
$ hatch run check:run
$ hatch run doc:build

from https://pypi.org/project/Frozen-Flask/

--------------------------------------------------------

Frozen-Flask freezes a Flask application into a set of static files. The result can be hosted without any server-side software other than a traditional web server.

Installation

Install the extension with:

$ pip install Frozen-Flask

or you can get the source code from GitHub.

from https://frozen-flask.readthedocs.io/en/latest/

项目地址:https://github.com/Frozen-Flask/Frozen-Flask

No comments:

Post a Comment