Skip to content

Commit

Permalink
Keep writing readme, add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
le717 committed Jun 8, 2024
1 parent 17cd03d commit 4ecb517
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@
- Optional linkrot event logging to [Discord](https://discord.com/) channel
- Text error log fallback if disabled

### Auto-embed JavaScript
### Auto-embed feature

Starting with version 1.3.0, TODO: write me!
Starting with version 1.3.0, a JavaScript file is provided to generate and embed a simple rendering
of the webring into your site. It includes the entire ring in the script, preventing any additional
requests to fetch ring entries.


TODO: write me!

Note this could potentially be slow, depending on the number of entries in the ring. This script is
also not minified, which could also increase your page load time. If you want or need greater
control over loading and displaying the ring, it is suggested to manually call the ring's root URL
to fetch the entries and display them as you desire.

## Required Secrets

Expand All @@ -27,7 +37,7 @@ Starting with version 1.3.0, TODO: write me!

## Development

1. Install Python 3.10+, [Poetry](https://python-poetry.org/) 1.2.0+, and VS Code
1. Install Python 3.11+, [Poetry](https://python-poetry.org/) 1.2.0+, and VS Code
1. Create required secret keys (default: `/app/secrets` or environment)
1. Run `poetry install`
1. Launch the API using the provided VS Code launch configuration
Expand Down
1 change: 1 addition & 0 deletions src/views/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def get(self) -> list[models.WebLink]:
This will return rotted links in the result set.
"""
# TODO: Add query param to exclude rotted params
return db.get_all(with_rotted=True, http_origin=request.headers.get("ORIGIN"))

@root.arguments(models.AuthKey, location="query", as_kwargs=True)
Expand Down

0 comments on commit 4ecb517

Please sign in to comment.