GitHub pages-powered golinks
Project description
gitlinks
- Git Powered Go-Links
Hosted "Go-Links" via Git and GitHub Pages
pip install gitlinks
Jump to setup | By @logan_engstrom
Quick Overview
gitlinks
is a command line tool that maps custom shortlinks to URLs via
Git and GitHub Pages .
The following table shows example mappings for user lengstrom
's gitlinks repository
goto:
Key | URL | GitHub Pages Shortlink |
---|---|---|
zoom |
https://mit.zoom.us/j/95091088705 | http://loganengstrom.com/goto/zoom |
classes/NLP |
https://canvas.mit.edu/courses/7503 | http://loganengstrom.com/goto/classes/nlp |
Here, anyone can access the
zoom
link (https://mit.zoom.us/j/95091088705) at
http://loganengstrom.com/goto/zoom
(since the GitHub pages site lengstrom.github.io
maps to loganengstrom.com
).
We can also organize keys through nesting, such as with classes/NLP
.
gitlinks
works by storing state on GitHub
and rendering structured redirects on GitHub pages. Add, remove, and visualize link mappings through the command line!
$ gitlinks set zoom https://mit.zoom.us/j/95091088705
=> Success: Set key "zoom" → "https://mit.zoom.us/j/95091088705".
$ gitlinks delete zoom
=> Success: Deleted key "zoom".
$ gitlinks show
=> Checking for changes from remote...
== GitLinks (Remote: git@github.com:lengstrom/goto.git) ==
calendly → https://calendly.com/loganengstrom
classes/18.102 → http://math.mit.edu/~rbm/18-102-S17/
classes/6.005 → http://web.mit.edu/6.031/www/fa18/general/
ffcv_slack → https://ffcv-workspace.slack.com/join/shared_invite/zt-11olgvyfl-dfFerPxlm6WtmlgdMuw_2A#/shared-invite/email
papers/bugsnotfeatures → https://arxiv.org/abs/1905.02175
zombocom → https://www.zombo.com
zoom → https://mit.zoom.us/j/95091088705
gitlinks
also generates an index page: see
http://loganengstrom.com/goto/ as an example. The big caveat of `gitlinks` is that all of your links are public to anyone on the web, so be careful with what you link!
Setup
Configure gitlinks
in two steps!
First: Cook up a new GitHub Repository
First, visit https://github.com/new and choose a short, memorable name like
go
for your gitlinks repository.
Now, check the box "Add a README file" (the repository can't be empty).
Make the repository, then go your repository's GitHub pages settings:
https://github.com/yourusername/repository_name/settings/pages
) and enable GitHub pages for the main
branch:
Initialize gitlinks
locally
Install the gitlinks
executable via pip
: pip install gitlinks
. Then,
initialize gitlinks
to use your repository: gitlinks init remote_url
.
Your remote_url
can be found here:
After this step, you should be able to make go-links to your heart's content.
License
GPL v3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file gitlinks-0.3.tar.gz
.
File metadata
- Download URL: gitlinks-0.3.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e64f33d99a140bc8e1983ab2565f7dcb630fc67bb17680f332c5449d1814dde6 |
|
MD5 | a27385c52ddbb74e4dbaa1c43f3b368e |
|
BLAKE2b-256 | 892b4f0c340386e73d90a0673f6d1dfa9b681a2284b26d2a12eae183dd3e3d18 |