From de3071a0b9fc95bd336064dca0e72a4023b3628e Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Sat, 18 Jan 2025 23:34:27 +0000 Subject: [PATCH] Add source_resolver.yaml --- source_resolver.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 source_resolver.yaml diff --git a/source_resolver.yaml b/source_resolver.yaml new file mode 100644 index 0000000..b0b7abb --- /dev/null +++ b/source_resolver.yaml @@ -0,0 +1,11 @@ +github_gist: + regexp: ^https://gist\.github\.com/([^/]+)/([a-f0-9]+)(?:/([a-f0-9]+))?$ + url: "https://gist.githubusercontent.com/{user}/{gist_id}/raw" + + gitlab_snippet: + regexp: ^https://gitlab\.com/(-)?snippets/([0-9]+)$ + url: "https://gitlab.com/snippets/{snippet_id}/raw" + + gitea_snippet: + regexp: ^https://([^/]+)/snippets/([0-9]+)$ + url: "https://{host}/snippets/{snippet_id}/raw" \ No newline at end of file