Compare commits

...

1 commit

Author SHA1 Message Date
n e6533299e5 Add Gitea icons shortcode 2021-05-16 20:10:34 +09:00
2 changed files with 10 additions and 1 deletions

View file

@ -9,6 +9,15 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("fonts")
eleventyConfig.addShortcode("fas_icon", function(name) { return `<span class="fas fa-${name}"></span>` })
// 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: {

View file

@ -31,7 +31,7 @@ Now we will connect the Matrix bot to your Codeberg repository. You will need ad
<img src="/assets/images/integrations/matrix/webhooks.png" alt="webhooks">
</picture>
1. In a web browser, go to your repo and click on the `Settings` button on the top right.
1. In a web browser, go to your repo and click on the {% gitea_icon "octicon-tools" %} `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: