From 48292a3ffbcc99fdc47b6137add453098fd75799 Mon Sep 17 00:00:00 2001 From: n Date: Sun, 16 May 2021 20:09:28 +0900 Subject: [PATCH] Remove Gitea Icons shortcode --- .eleventy.js | 9 --------- content/integrations/matrix.md | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 3bd56be..0dbdacd 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -9,15 +9,6 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPassthroughCopy("fonts") eleventyConfig.addShortcode("fas_icon", function(name) { return `` }) - - // List of icons: https://codeberg.org/Codeberg/gitea/src/branch/codeberg/public/img/svg - eleventyConfig.addShortcode("gitea_icon", function(name) { - const fetch = require('node-fetch'); - fetch(`https://codeberg.org/img/svg/${name}.svg`) - .then(res => res.text()) - .then(body => {return svg = body;}); - return svg - }) return { dir: { diff --git a/content/integrations/matrix.md b/content/integrations/matrix.md index bdf77b9..270e952 100644 --- a/content/integrations/matrix.md +++ b/content/integrations/matrix.md @@ -31,7 +31,7 @@ Now we will connect the Matrix bot to your Codeberg repository. You will need ad webhooks -1. In a web browser, go to your repo and click on the {% gitea_icon "octicon-tools" %} `Settings` button on the top right. +1. In a web browser, go to your repo and click on the `Settings` button on the top right. 2. Navigate to the `Webhooks` settings tab. 3. Click on the `Add Webhook` button and select `Matrix`. 4. Here are explanations for some key fields: