No description
Find a file
Yarden Shoham 20446ac6b3
Don't use <br /> in alert block (#29650)
- Follows https://github.com/go-gitea/gitea/pull/29121

When I implemented alert blocks I was always testing the markdown in
issue comments. I used `<br />` for line breaks and it looked good. I
have since learned that the markdown on README files doesn't allow these
tags. So a comment with

```md
> [!NOTE]
> If you're interested in using our APIs, we have experimental support with [documentation](https://try.gitea.io/api/swagger).
```

looked like this in a comment

![image](https://github.com/go-gitea/gitea/assets/20454870/96b1de01-2c87-4d4f-83dd-98192b83e9d0)
but looked like this in a README

![image](https://github.com/go-gitea/gitea/assets/20454870/474b636d-dd7a-4b7f-ba27-643803c71aa3)

So I changed how we render the alert block by having the alert itself
have a dedicated paragraph, so line breaks happen naturally between
paragraphs.

![image](https://github.com/go-gitea/gitea/assets/20454870/474b636d-dd7a-4b7f-ba27-643803c71aa3)

![image](https://github.com/go-gitea/gitea/assets/20454870/167a8d37-9a44-4479-9340-5dc80347b595)

![image](https://github.com/go-gitea/gitea/assets/20454870/2f99fec0-98ff-4ba8-97fe-b4567041ae79)

![image](https://github.com/go-gitea/gitea/assets/20454870/ffdeae11-fb06-4d00-b497-eae135f0d7ad)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
2024-03-23 12:18:40 +01:00
.devcontainer
.forgejo [CI] simplify running end-to-end tests while building a release 2024-03-20 20:20:42 +01:00
.gitea
assets
build
cmd Fix must-change-password help dialog 2024-03-17 12:08:27 +01:00
contrib
custom/conf add skip ci support for pull request title (#29774) 2024-03-20 06:07:50 +01:00
docker
docs Merge pull request '[PORT] add skip ci support for pull request title (#29774)' (#2701) from earl-warren/forgejo:wip-gitea-skip-ci into forgejo 2024-03-20 11:34:49 +00:00
manual-testing@877d11b403
models Add more stats tables (#29730) 2024-03-20 08:46:28 +01:00
modules Don't use <br /> in alert block (#29650) 2024-03-23 12:18:40 +01:00
options Add plural support for PR subtitles 2024-03-22 07:11:24 +01:00
public
releases/images
routers Fix repo badges when the label or text contains dashes 2024-03-20 22:41:20 +01:00
services Merge pull request '[BUG] Reflect Cargo index state in settings' (#2698) from gusted/forgejo-cargo-index into forgejo 2024-03-20 11:38:26 +00:00
templates Add plural support for PR subtitles 2024-03-22 07:11:24 +01:00
tests Add test for pull summary 2024-03-22 07:11:52 +01:00
web_src Merge pull request 'Update look of repo/org tabs on homepage' (#2593) from 0ko/forgejo:hometab into forgejo 2024-03-20 11:45:17 +00:00
.air.toml
.changelog.yml
.deadcode-out [DEADCODE] update 2024-03-20 08:46:30 +01:00
.dockerignore
.editorconfig
.eslintrc.yaml Forbid jQuery .prop and fix related issues (#29832) 2024-03-20 08:46:30 +01:00
.gitattributes
.gitignore
.gitmodules
.gitpod.yml
.golangci.yml
.ignore
.markdownlint.yaml
.npmrc
.spectral.yaml
.stylelintrc.yaml
.yamllint.yaml
BSDmakefile
build.go
CHANGELOG.md
CODEOWNERS
CONTRIBUTING.md
DCO
Dockerfile
Dockerfile.rootless
go.mod Update Chroma to v2.13.0 (#29732) 2024-03-20 08:46:28 +01:00
go.sum Update Chroma to v2.13.0 (#29732) 2024-03-20 08:46:28 +01:00
LICENSE
main.go
MAINTAINERS
Makefile Merge pull request '[CI] simplify end-to-end test cascading PR' (#2706) from wip-ci-end-to-end into forgejo 2024-03-20 18:12:41 +00:00
package-lock.json Upgrade htmx to v1.9.11 (#29821) 2024-03-20 08:46:30 +01:00
package.json Upgrade htmx to v1.9.11 (#29821) 2024-03-20 08:46:30 +01:00
playwright.config.js
poetry.lock
poetry.toml
pyproject.toml
README.md
RELEASE-NOTES.md [RELEASE] v1.21.8-0 release notes 2024-03-22 09:02:57 +01:00
tailwind.config.js
updates.config.js Configure pinned JS dependencies via updates.config.js (#29696) 2024-03-20 08:46:28 +01:00
vitest.config.js
webpack.config.js Upgrade htmx to v1.9.11 (#29821) 2024-03-20 08:46:30 +01:00

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.