# `gemini-to-web` ## Installation With [uv](https://docs.astral.sh/uv/): ``` uv tool install git+https://ñix.es/cgit/alex/coppewebite.git/#subdirectory=gemini-to-web ``` With [pipx](https://pipx.pypa.io/stable/): ``` pipx install git+https://ñix.es/cgit/alex/coppewebite.git/#subdirectory=gemini-to-web ``` ## Usage ```console $ uv run coppewebite-parse < # Hello > > World. > EOT [{"level": 1, "heading_text": "Hello", "type": "HeadingLine"}, {"text": "", "type": "TextLine"}, {"text": "World.", "type": "TextLine"}] ``` ```console $ uv run coppewebite-to-html < # Hello > > World. > EOT Hello

Hello

World.

``` `coppewebite-indexer` reads from standard input a `\0`-separated list of files (such as the output of `find -print0`). `coppewebite-indexer` parses all files as gemtext, extracting the first header, and matching the header text as a Gemini page subscription entry element label. `coppewebite-indexer` outputs a list of gemtext links, sorted in reverse chronological order, suitable for use as a Gemini page subscription. You can use `coppewebite-indexer` to create a gemlog index automatically. `coppewebite-to-rss` reads from standard input a gemtext file and produces the equivalent RSS to the gemtext subscription. Refer to the [`example`](example) directory for an example.