1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-18 16:14:26 +00:00
gitea/services/convert
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
..
activity.go Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
attachment.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
convert.go add admin API email endpoints (#22792) 2023-03-14 03:54:40 -04:00
git_commit_test.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
git_commit.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
issue_comment.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
issue_test.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
issue.go Add API to manage issue dependencies (#17935) 2023-03-28 13:23:25 -04:00
main_test.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
mirror.go Fix SyncOnCommit always return false in API of push_mirrors (#23088) 2023-02-23 15:50:33 -06:00
notification.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
package.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
pull_review.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
pull_test.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
pull.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
release.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
repository.go Add absent repounits to create/edit repo API (#23500) 2023-03-16 12:30:42 -05:00
status.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
user_test.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
user.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
utils_test.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
utils.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
wiki.go Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00