https://github.com/pypsa/redirect-service
https://github.com/pypsa/redirect-service
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pypsa/redirect-service
- Owner: PyPSA
- Created: 2025-06-23T15:51:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-23T15:56:03.000Z (7 months ago)
- Last Synced: 2025-06-23T17:01:29.916Z (7 months ago)
- Language: Python
- Size: 72.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redirect Service
A simple sphinx-based redirect service using `sphinx-reredirects`.
## Available Redirects
See `conf.py` for the list of available redirects.
## Adding Redirects
Edit `conf.py` and add entries to the `redirects` dictionary with a `/index` suffix.
```python
redirects = {
"new-redirect/index": "https://example.com",
}
```
This will create a redirect from `https://go.pypsa.org/new-redirect` to `https://example.com` and the url can be used anywhere.