0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-03-03 08:02:17 +01:00
gitea/routers/api/v1/repo
wxiaoguang b39a5bbbd6
Make wiki title supports dashes and improve wiki name related features ()
Close 


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
..
blob.go
branch.go Fix protected branch for API () 2023-04-09 22:52:16 -04:00
collaborators.go
commits.go
file.go Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs () 2023-04-06 16:01:20 -04:00
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Make more functions use ctx instead of db.DefaultContext () 2023-04-14 14:18:28 -04:00
issue_attachment.go Preserve file size when creating attachments () 2023-03-12 03:48:07 -04:00
issue_comment.go
issue_comment_attachment.go Preserve file size when creating attachments () 2023-03-12 03:48:07 -04:00
issue_dependency.go Add API to manage issue dependencies () 2023-03-28 13:23:25 -04:00
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
key.go
label.go
language.go
main_test.go
migrate.go Match api migration behavior to web behavior () 2023-03-19 02:29:14 -04:00
milestone.go
mirror.go
notes.go
patch.go
pull.go Make more functions use ctx instead of db.DefaultContext () 2023-04-14 14:18:28 -04:00
pull_review.go Make more functions use ctx instead of db.DefaultContext () 2023-04-14 14:18:28 -04:00
release.go
release_attachment.go Preserve file size when creating attachments () 2023-03-12 03:48:07 -04:00
release_tags.go
repo.go Add activity feeds API () 2023-04-04 21:35:31 +08:00
repo_test.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go Make wiki title supports dashes and improve wiki name related features () 2023-04-19 13:50:10 -04:00