forgejo/routers/api/v1
wxiaoguang b39a5bbbd6
Make wiki title supports dashes and improve wiki name related features (#24143)
Close #7570


1. Clearly define the wiki path behaviors, see
`services/wiki/wiki_path.go` and tests
2. Keep compatibility with old contents
3. Allow to use dashes in titles, eg: "2000-01-02 Meeting record"
4. Add a "Pages" link in the dropdown, otherwise users can't go to the
Pages page easily.
5. Add a "View original git file" link in the Pages list, even if some
file names are broken, users still have a chance to edit or remove it,
without cloning the wiki repo to local.
6. Fix 500 error when the name contains prefix spaces.


This PR also introduces the ability to support sub-directories, but it
can't be done at the moment due to there are a lot of legacy wiki data,
which use "%2F" in file names.



![image](https://user-images.githubusercontent.com/2114189/232239004-3359d7b9-7bf3-4ff3-8446-bfb0e79645dd.png)


![image](https://user-images.githubusercontent.com/2114189/232239020-74b92c72-bf73-4377-a319-1c85609f82b1.png)

Co-authored-by: Giteabot <teabot@gitea.io>
2023-04-19 13:50:10 -04:00
..
activitypub Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2023-04-04 10:08:23 +08:00
admin Add login name and source id for admin user searching API (#23376) 2023-03-15 19:53:01 +08:00
misc Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
notify Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
org Fix admin team access mode value in team_unit table (#24012) 2023-04-13 21:06:10 +02:00
packages Add Swift package registry (#22404) 2023-03-13 15:28:39 -05:00
repo Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
user Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
utils Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
api.go Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00