From 3136d0439f94b4b7d471e1572b93ea3202a83ebd Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sat, 11 Jul 2026 16:23:10 +0200 Subject: [PATCH 1/7] Move header and footer outside main; add section grouping Co-Authored-By: Brian Tremblay --- templates/index.jinja2 | 144 +++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 70 deletions(-) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index 57e5a10..b3815b1 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -42,79 +42,83 @@ +

+ Microformats Parser (Python) + {{ mf2py_version }} +

+
-

- Microformats Parser (Python) - {{ mf2py_version }} -

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

OR parse just a snippet of HTML

- -
-
- - -
- -
- - -
- -
- - -
- - -
- - +
+
+
+ + +
+ +
+ + +
+ +
+ +
+ + +
+
+ +
+

OR parse just a snippet of HTML

+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+ + From c6f16de27dd786c5563b503124f22bf6c25af488 Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sat, 11 Jul 2026 19:19:57 +0200 Subject: [PATCH 2/7] Upgrade Bootstrap from 4.0.0-alpha.6 to 5.3.8 --- templates/index.jinja2 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index b3815b1..a961eda 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -6,7 +6,7 @@ Python Microformats Parser - + @@ -52,12 +21,12 @@
- - + +
- + -
@@ -81,17 +50,17 @@
- - + +
- - + +
- + -
- -
- - -
- -
- - -
- - -
-
- -
-

OR parse just a snippet of HTML

- -
-
- - -
- -
- - -
- -
- - -
- - -
-
- - - - +
+

+ Microformats Parser (Python) + {{ mf2py_version }} +

+ +
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+ +
+

OR parse just a snippet of HTML

+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+ +
+ + +
From 96fce1b135d6c56fdbb4a3261343b0fc570d9a04 Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sat, 11 Jul 2026 19:25:34 +0200 Subject: [PATCH 5/7] Refine the section headings and spacing --- templates/index.jinja2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index 9e54ee0..25ba63d 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -19,7 +19,9 @@
-
+
+

Parse a URL

+
@@ -46,10 +48,10 @@
-
-

OR parse just a snippet of HTML

+
+

OR parse just a snippet of HTML

-
+
From 589a62123bcfa3a2951280519a812ac3083b6564 Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sat, 11 Jul 2026 19:25:50 +0200 Subject: [PATCH 6/7] Describe the mf2util option with Bootstrap form-text instead of a title attribute --- templates/index.jinja2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index 25ba63d..81b82d3 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -38,10 +38,11 @@
- -
From 15227c85323effacf5ba4d7430005cb9b5d6ef11 Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sat, 11 Jul 2026 20:01:18 +0200 Subject: [PATCH 7/7] Update the README and add Martijn van der Ven as a contributor --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4d81456..9ee3d31 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ https://python.microformats.io ## Deployment -All commits to the `master` branch get auto-deployed to the live website (running on [Heroku](https://python.microformats.io)) +All commits to the `main` branch get auto-deployed to the live website (running on [Heroku](https://python.microformats.io)) ## Getting Started @@ -15,8 +15,8 @@ This website is built using Python Flask. To start working with this project, first clone the repository for this project: ``` -git clone https://github.com/indieweb/microformats-python-parser-website.git -cd microformats-python-parser-website +git clone https://github.com/microformats/microformats-parser-website-python.git +cd microformats-parser-website-python ``` Next, install the required dependencies: @@ -32,6 +32,8 @@ uv run -- app.py --debug (debug mode) uv run -- gunicorn --bind localhost:8080 app:app (production mode) ``` +In debug mode the port defaults to 8080; use `-p`/`--port` to change it. + You can view your running local application at this URL: ``` @@ -40,19 +42,20 @@ http://localhost:8080 ## Requirements -- Python 3.9 +- Python 3.14.5 +- [uv](https://docs.astral.sh/uv/) ## Contributions 1. Fork it -2. Get it running (see Installation above) +2. Get it running (see Getting Started above) 3. Create your feature branch (`git checkout -b my-new-feature`) 4. Commit your changes (`git commit -am 'Add some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request If you find bugs, have feature requests or questions, please -[file an issue](https://github.com/indieweb/microformats-parser-website-python/issues). +[file an issue](https://github.com/microformats/microformats-parser-website-python/issues). ## License @@ -63,4 +66,5 @@ http://creativecommons.org/publicdomain/zero/1.0 ## Contributors - Kyle Mahan / [@kylewm](https://github.com/kylewm) (Author) -- [@capjamesg](https://github.com/capjamesg) (Contributor) \ No newline at end of file +- [@capjamesg](https://github.com/capjamesg) (Contributor) +- Martijn van der Ven / [@Zegnat](https://github.com/Zegnat) (Contributor)