Compare commits
1 commit
main
...
gitea-icon
Author | SHA1 | Date | |
---|---|---|---|
e6533299e5 |
|
@ -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: {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue