Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matildepark/gmi_incoming
Basic bidirectional link script for gemdocs and .gmi files. Intended for constructing cortexes over gemini://.
https://github.com/matildepark/gmi_incoming
gemini gemini-protocol
Last synced: 7 days ago
JSON representation
Basic bidirectional link script for gemdocs and .gmi files. Intended for constructing cortexes over gemini://.
- Host: GitHub
- URL: https://github.com/matildepark/gmi_incoming
- Owner: matildepark
- License: other
- Created: 2020-08-16T15:39:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T22:00:06.000Z (about 4 years ago)
- Last Synced: 2023-11-08T21:33:09.941Z (about 1 year ago)
- Topics: gemini, gemini-protocol
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
# gmi_incoming
A basic Python script for constructing bidirectional links across a Gemini site.
Iterates through all internal links and appends incoming links on the
destination pages.## Usage
We assume that you keep your site's files in a folder and upload it
occasionally. We also assume that you don't link internally with `gemini://`
links; the script accepts either relative or root-oriented paths.Clone this repository, add your tilde folder's location if necessary to
`config.py`, `cd` to your site's directory in bash, and run `gmi_incoming.py`
inside that working directory.The script will output a `site_output` folder. You'd then `cd` into that folder
and `rsync` to your actual site, for example:```
rsync -zz -avh --del ~/gemdocs/site_output/ you@yoursite:~gemdocs/
```